Re: [patch] CFS scheduler, v4

S.Çağlar Onur
2007-04-21T20:38:30Z

[-- Attachment #1: Type: text/plain, Size: 13325 bytes --]

Hi Ingo;

20 Nis 2007 Cum tarihinde, Ingo Molnar şunları yazmıştı:
> As usual, any sort of feedback, bugreport, fix and suggestion is more
> than welcome,

I tried hard and found another problem for you :)

With Linus's current git + CFSv4 as soon as i start a guest in VirtualBox [1],
system enters the following loop;

- Whole system freeze ~5 secs.
- System works well ~5 secs
- Whole system freeze ~5 secs.

Again mainline has no issues but its %100 reproducible under CFSv4.

Following "ps aux" and "top" outputs grabbed while system works well, i cannot
do anything else while system freezes except moving mouse for fun :P

[caglar@zangetsu][~]> ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 0 0 ? Ss 22:26 0:00 init [3]
root 2 0.0 0.0 0 0 ? S 22:26 0:00 [migration/0]
root 3 0.3 0.0 0 0 ? SN 22:26 0:11 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< 22:26 0:00 [events/0]
root 5 0.0 0.0 0 0 ? S< 22:26 0:00 [khelper]
root 6 0.0 0.0 0 0 ? S< 22:26 0:00 [kthread]
root 26 0.0 0.0 0 0 ? S< 22:26 0:00 [kblockd/0]
root 27 0.0 0.0 0 0 ? S< 22:26 0:00 [kacpid]
root 124 0.0 0.0 0 0 ? S< 22:26 0:00 [kseriod]
root 137 0.0 0.0 0 0 ? S< 22:26 0:00 [kapmd]
root 145 0.0 0.0 0 0 ? S 22:26 0:00 [pdflush]
root 146 0.0 0.0 0 0 ? S 22:26 0:00 [pdflush]
root 147 0.0 0.0 0 0 ? S< 22:26 0:00 [kswapd0]
root 148 0.0 0.0 0 0 ? S< 22:26 0:00 [aio/0]
root 802 0.0 0.0 0 0 ? S< 22:26 0:00 [kpsmoused]
root 844 0.0 0.0 0 0 ? S< 22:26 0:00 [ata/0]
root 845 0.0 0.0 0 0 ? S< 22:26 0:00 [ata_aux]
root 856 0.0 0.0 0 0 ? S< 22:26 0:01 [scsi_eh_0]
root 857 0.0 0.0 0 0 ? S< 22:26 0:00 [scsi_eh_1]
root 869 0.0 0.0 0 0 ? S< 22:26 0:00
[ksuspend_usbd]
root 872 0.0 0.0 0 0 ? S< 22:26 0:00 [khubd]
root 919 0.0 0.0 0 0 ? S< 22:26 0:00 [khpsbpkt]
root 927 0.0 0.0 0 0 ? S< 22:26 0:00 [knodemgrd_0]
root 982 0.0 0.0 0 0 ? S< 22:26 0:00 [xfslogd/0]
root 983 0.0 0.0 0 0 ? S< 22:26 0:00 [xfsdatad/0]
root 985 0.0 0.0 0 0 ? S< 22:26 0:00 [xfsbufd]
root 986 0.0 0.0 0 0 ? S< 22:26 0:00 [xfssyncd]
root 1050 0.0 0.0 0 0 ? S<s 22:26
0:01 /sbin/udevd --daemon
root 2831 0.0 0.0 0 0 ? S< 22:26 0:00 [kondemand/0]
root 2993 0.0 0.0 0 0 ? S< 22:26 0:00 [tifm/0]
root 3039 0.0 0.0 0 0 ? S< 22:26 0:00 [pccardd]
root 3063 0.0 0.0 0 0 ? S< 22:26 0:00 [ipw2200/0]
root 3127 0.0 0.0 0 0 ? Ss 22:26 0:00 Comar
root 3278 0.0 0.0 0 0 ? S 22:26 0:00 ComarRPC
root 3334 0.0 0.0 0 0 ? Ss 22:26
0:00 /usr/sbin/syslogd -m 15
root 3338 0.0 0.0 0 0 ? Ss 22:26
0:00 /usr/sbin/klogd -c 3 -2
root 3340 0.0 0.0 0 0 ? Ss 22:26
0:00 /sbin/dhcpcd -R -Y -N -t 20 eth1
root 3345 0.0 0.0 0 0 ? Ss 22:26
0:00 /usr/sbin/acpid -c /etc/acpi/events
dbus 3351 0.0 0.0 0 0 ? Ss 22:26
0:00 /usr/bin/dbus-daemon --system
root 3354 0.0 0.0 0 0 ? Ss 22:26
0:00 /usr/sbin/console-kit-daemon
root 3418 0.0 0.0 0 0 ? Ss 22:26
0:00 /usr/sbin/polkitd
hal 3420 0.0 0.0 0 0 ? Ss 22:26
0:00 /usr/sbin/hald --daemon=yes --use-syslog
root 3421 0.0 0.0 0 0 ? S 22:26 0:00 hald-runner
hal 3432 0.0 0.0 0 0 ? S 22:26 0:00
hald-addon-keyboard: listening on /dev/input/event0
hal 3435 0.0 0.0 0 0 ? S 22:26 0:00
hald-addon-keyboard: listening on /dev/input/event1
hal 3436 0.0 0.0 0 0 ? S 22:26 0:00
hald-addon-keyboard: listening on /dev/input/event2
hal 3437 0.0 0.0 0 0 ? S 22:26 0:00
hald-addon-keyboard: listening on /dev/input/event4
root 3444 0.0 0.0 0 0 tty1 Ss+ 22:26
0:00 /sbin/mingetty --noclear tty1
root 3445 0.0 0.0 0 0 tty2 Ss+ 22:26
0:00 /sbin/mingetty --noclear tty2
root 3446 0.0 0.0 0 0 tty3 Ss+ 22:26
0:00 /sbin/mingetty tty3
root 3447 0.0 0.0 0 0 tty4 Ss+ 22:26
0:00 /sbin/mingetty tty4
root 3448 0.0 0.0 0 0 tty5 Ss+ 22:26
0:00 /sbin/mingetty tty5
root 3449 0.0 0.0 0 0 tty6 Ss+ 22:26
0:00 /sbin/mingetty tty6
root 3450 0.0 0.0 0 0 ? S 22:26
0:00 /usr/libexec/hald-addon-cpufreq
hal 3451 0.0 0.0 0 0 ? S 22:26 0:00
hald-addon-acpi: listening on acpid socket /var/run/acpid.socket
root 3576 0.0 0.0 0 0 ? S 22:26 0:00
hald-addon-storage: polling /dev/sr0 (every 2 sec)
root 3582 0.0 0.0 0 0 ? S<s 22:26 0:00 /sbin/auditd
root 3584 0.0 0.0 0 0 ? S<s 22:26 0:00
python /sbin/audispd
nobody 3588 0.0 0.0 0 0 ? Ss 22:26
0:00 /usr/sbin/mdnsd
root 3589 0.0 0.0 0 0 ? Ss 22:26
0:01 /opt/sun-jdk/bin/java -DConfigFile=/opt/zemberek-server/config/conf.ini -Djava.library.path=/opt/zemberek-server/li
root 3591 0.0 0.0 0 0 ? S< 22:26 0:00 [kauditd]
root 3637 0.0 0.0 0 0 ? Ss 22:26
0:00 /usr/kde/3.5/bin/kdm
root 3656 0.0 0.0 0 0 ? Ss 22:26
0:00 /usr/sbin/cupsd
root 3661 8.9 0.0 0 0 tty7 S<s+ 22:26
5:06 /usr/bin/X -br -nolisten tcp :0 vt7 -auth /var/run/xauth/A:0-uzBkHQ
root 3662 0.0 0.0 0 0 ? S 22:26 0:00 -:0
caglar 3713 0.0 0.0 0 0 ? Ss 22:27
0:00 /bin/sh /usr/kde/3.5/bin/startkde
caglar 3740 0.0 0.0 0 0 ? Ss 22:27
0:00 /usr/bin/gpg-agent --daemon
caglar 3744 0.0 0.0 0 0 ? S 22:27
0:00 /usr/bin/dbus-launch --auto-syntax --exit-with-session
caglar 3745 0.0 0.0 0 0 ? Ss 22:27
0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root 3763 0.0 0.0 0 0 ? S 22:27 0:00
start_kdeinit --new-startup +kcminit_startup
caglar 3764 0.0 0.0 0 0 ? Ss 22:27 0:00 kdeinit
Running...
caglar 3767 0.0 0.0 0 0 ? S 22:27 0:00 dcopserver
[kdeinit] --nosid
caglar 3769 0.0 0.0 0 0 ? S 22:27 0:00 klauncher
[kdeinit] --new-startup
caglar 3771 0.0 0.0 0 0 ? S 22:27 0:01 kded
[kdeinit] --new-startup
caglar 3776 0.0 0.0 0 0 ? S 22:27 0:00 kwrapper
ksmserver
caglar 3778 0.0 0.0 0 0 ? S 22:27 0:00 ksmserver
[kdeinit]
caglar 3779 0.0 0.0 0 0 ? S 22:27 0:02 kwin
[kdeinit] -session 10dfd5e1dc000117615244300000037860015_1177150228_731669
caglar 3781 0.0 0.0 0 0 ? S 22:27 0:01 kdesktop
[kdeinit]
caglar 3784 0.1 0.0 0 0 ? S 22:27 0:06 kicker
[kdeinit]
caglar 3790 0.0 0.0 0 0 ? S 22:27
0:00 /usr/kde/3.5/bin/artsd -F 10 -S 4096 -s 3 -m artsmessage -c drkonqi -l
3 -f
caglar 3792 0.0 0.0 0 0 ? S 22:27 0:00 kaccess
[kdeinit]
caglar 3795 0.0 0.0 0 0 ? S 22:27 0:00 kgpg -session
10dfd5e1dc000116939040300000034540016_1177150228_693587
caglar 3797 0.0 0.0 0 0 ? S 22:27 0:00 kmix
[kdeinit] -session 10dfd5e1dc000117381541300000036690022_1177150228_688422
caglar 3799 0.0 0.0 0 0 ? S 22:27 0:03
yakuake -session 10dfd5e1dc000117550619600000038750011_1177150228_688557
caglar 3801 0.1 0.0 0 0 ? S 22:27 0:06
akregator -session 10dfd5e1dc000116863705100000035770011_1177150228_688758
caglar 3803 1.6 0.0 0 0 ? S 22:27 0:57
amarokapp -session 10dfd5e1dc000117589538100000037590019_1177150228_689118
caglar 3806 0.0 0.0 0 0 ? S 22:27 0:00 knotify
[kdeinit]
caglar 3820 2.2 0.0 0 0 ? S 22:27 1:15
kmail -session 10dfd5e1dc000117702739100000037820008_1177150228_689302
caglar 3825 0.0 0.0 0 0 ? S 22:27 0:00 kpowersave
[kdeinit]
caglar 3828 0.0 0.0 0 0 ? S 22:27 0:00 klipper
[kdeinit]
caglar 3840 0.4 0.0 0 0 ? S 22:27 0:15
beagled /usr/lib/beagle/BeagleDaemon.exe --bg
caglar 4027 0.0 0.0 0 0 ? S 22:28 0:00
ruby /usr/kde/3.5/share/apps/amarok/scripts/score_default/score_default.rb
caglar 4423 1.6 0.0 0 0 ? SN 22:29 0:53
beagled-helper /usr/lib/beagle/IndexHelper.exe
caglar 4479 0.0 0.0 0 0 ? S 22:29 0:00 konqueror
[kdeinit] -mimetype inode/directory system:/media/camera
caglar 4780 0.9 0.0 0 0 ? S 22:35 0:27
kopete -caption Kopete -icon kopete -miniicon kopete
caglar 6513 0.0 0.0 0 0 pts/0 Ss 23:10 0:00 /bin/bash
caglar 6642 0.2 0.0 0 0 ? S 23:15
0:01 /usr/share/VirtualBox/VirtualBox
caglar 6655 0.0 0.0 0 0 ? S 23:15 0:00 kio_file
[kdeinit]
file /tmp/ksocket-caglar/klauncher7DO9ja.slave-socket /tmp/ksocket-caglar/kdesktop1c3ZQb.slave-s
caglar 6657 0.0 0.0 0 0 ? S 23:15
0:00 /usr/share/VirtualBox/VBoxSVC --daemonize
caglar 6663 0.0 0.0 0 0 ? S 23:15
0:00 /usr/share/VirtualBox/VBoxXPCOMIPCD
caglar 6684 71.7 0.0 0 0 ? S 23:16
5:40 /usr/share/VirtualBox/VirtualBox -startvm
8c00f6d9-e215-4501-a7aa-4ba19eb55acc
caglar 6730 0.0 0.0 0 0 pts/0 R+ 23:24 0:00 ps aux

[caglar@zangetsu][~]> top
top - 23:24:27 up 58 min, 3 users, load average: 13.59, 13.00, 7.75
Tasks: 102 total, 1 running, 101 sleeping, 0 stopped, 0 zombie
Cpu(s): 99.4%us, 0.4%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.2%hi, 0.0%si, 0.0%st
Mem: 2067672k total, 1935300k used, 132372k free, 288k buffers
Swap: 2096440k total, 0k used, 2096440k free, 961236k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6684 caglar 20 0 625m 570m 15m S 99.2 28.3 5:56.17 VirtualBox
844 root 1 -19 0 0 0 S 0.2 0.0 0:00.56 ata/0
6731 caglar 20 0 2312 1124 856 R 0.2 0.1 0:00.04 top
1 root 20 0 1608 556 484 S 0.0 0.0 0:00.92 init
2 root RT 0 0 0 0 S 0.0 0.0 0:00.00 migration/0
3 root 39 19 0 0 0 S 0.0 0.0 0:11.85 ksoftirqd/0
4 root 1 -19 0 0 0 S 0.0 0.0 0:00.07 events/0
5 root 1 -19 0 0 0 S 0.0 0.0 0:00.02 khelper
6 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 kthread
26 root 1 -19 0 0 0 S 0.0 0.0 0:00.04 kblockd/0
27 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 kacpid
124 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 kseriod
137 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 kapmd
145 root 20 0 0 0 0 S 0.0 0.0 0:00.00 pdflush
146 root 20 0 0 0 0 S 0.0 0.0 0:00.27 pdflush
147 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 kswapd0
148 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 aio/0
802 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 kpsmoused
845 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 ata_aux
856 root 1 -19 0 0 0 D 0.0 0.0 0:01.04 scsi_eh_0
857 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 scsi_eh_1
869 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 ksuspend_usbd
872 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 khubd
919 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 khpsbpkt
927 root 1 -19 0 0 0 S 0.0 0.0 0:00.00 knodemgrd_0
982 root 1 -19 0 0 0 S 0.0 0.0 0:00.30 xfslogd/0
983 root 1 -19 0 0 0 S 0.0 0.0 0:00.10 xfsdatad/0

[1] http://www.virtualbox.org/
Cheers
--
S.Çağlar Onur <caglar@pardus.org.tr>
http://cekirdek.pardus.org.tr/~caglar/

Linux is like living in a teepee. No Windows, no Gates and an Apache in house!

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]