On the computer where I am testing, I have nothing related to cgroups.
Here a 'ps aux' in case I am missing something.
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 10652 836 ? Ss avril09 0:03 init [2]
root 2 0.0 0.0 0 0 ? S avril09 0:00 [kthreadd]
root 3 0.0 0.0 0 0 ? S avril09 0:07 [ksoftirqd/0]
root 5 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/0:0H]
root 7 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/u:0H]
root 8 0.0 0.0 0 0 ? S avril09 0:00 [migration/0]
root 9 0.0 0.0 0 0 ? S avril09 0:00 [rcu_bh]
root 10 0.0 0.0 0 0 ? S avril09 1:05 [rcu_sched]
root 11 0.0 0.0 0 0 ? S avril09 0:01 [watchdog/0]
root 12 0.0 0.0 0 0 ? S avril09 0:01 [watchdog/1]
root 13 0.0 0.0 0 0 ? S avril09 0:15 [ksoftirqd/1]
root 14 0.0 0.0 0 0 ? S avril09 0:00 [migration/1]
root 16 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/1:0H]
root 17 0.0 0.0 0 0 ? S avril09 0:01 [watchdog/2]
root 18 0.0 0.0 0 0 ? S avril09 0:17 [ksoftirqd/2]
root 19 0.0 0.0 0 0 ? S avril09 0:00 [migration/2]
root 21 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/2:0H]
root 22 0.0 0.0 0 0 ? S avril09 0:01 [watchdog/3]
root 23 0.0 0.0 0 0 ? S avril09 0:17 [ksoftirqd/3]
root 24 0.0 0.0 0 0 ? S avril09 0:00 [migration/3]
root 26 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/3:0H]
root 27 0.0 0.0 0 0 ? S avril09 0:01 [watchdog/4]
root 28 0.0 0.0 0 0 ? S avril09 0:00 [ksoftirqd/4]
root 29 0.0 0.0 0 0 ? S avril09 0:00 [migration/4]
root 30 0.0 0.0 0 0 ? S avril09 0:00 [kworker/4:0]
root 31 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/4:0H]
root 32 0.0 0.0 0 0 ? S avril09 0:01 [watchdog/5]
root 33 0.0 0.0 0 0 ? S avril09 0:08 [ksoftirqd/5]
root 34 0.0 0.0 0 0 ? S avril09 0:00 [migration/5]
root 36 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/5:0H]
root 37 0.0 0.0 0 0 ? S avril09 0:01 [watchdog/6]
root 38 0.0 0.0 0 0 ? S avril09 0:10 [ksoftirqd/6]
root 39 0.0 0.0 0 0 ? S avril09 0:00 [migration/6]
root 40 0.0 0.0 0 0 ? S avril09 0:00 [kworker/6:0]
root 41 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/6:0H]
root 42 0.0 0.0 0 0 ? S avril09 0:01 [watchdog/7]
root 43 0.0 0.0 0 0 ? S avril09 0:08 [ksoftirqd/7]
root 44 0.0 0.0 0 0 ? S avril09 0:00 [migration/7]
root 45 0.0 0.0 0 0 ? S avril09 0:00 [kworker/7:0]
root 46 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/7:0H]
root 47 0.0 0.0 0 0 ? S< avril09 0:00 [cpuset]
root 48 0.0 0.0 0 0 ? S< avril09 0:00 [khelper]
root 49 0.0 0.0 0 0 ? S avril09 0:00 [kdevtmpfs]
root 50 0.0 0.0 0 0 ? S< avril09 0:00 [netns]
root 51 0.0 0.0 0 0 ? S avril09 0:00 [bdi-default]
root 52 0.0 0.0 0 0 ? S< avril09 0:00 [kintegrityd]
root 53 0.0 0.0 0 0 ? S< avril09 0:00 [kblockd]
root 54 0.0 0.0 0 0 ? S avril09 0:31 [kworker/0:1]
root 55 0.0 0.0 0 0 ? S avril09 0:00 [khungtaskd]
root 56 0.0 0.0 0 0 ? S avril09 0:00 [kswapd0]
root 57 0.0 0.0 0 0 ? SN avril09 0:00 [ksmd]
root 58 0.0 0.0 0 0 ? SN avril09 0:04 [khugepaged]
root 59 0.0 0.0 0 0 ? S avril09 0:00 [fsnotify_mark]
root 60 0.0 0.0 0 0 ? S< avril09 0:00 [crypto]
root 64 0.0 0.0 0 0 ? S< avril09 0:00 [deferwq]
root 66 0.0 0.0 0 0 ? S avril09 0:00 [kworker/0:2]
root 67 0.0 0.0 0 0 ? S avril09 0:08 [kworker/5:1]
root 131 0.0 0.0 0 0 ? S avril09 0:00 [khubd]
root 202 0.0 0.0 0 0 ? S< avril09 0:00 [ata_sff]
root 206 0.0 0.0 0 0 ? S avril09 0:00 [scsi_eh_0]
root 207 0.0 0.0 0 0 ? S avril09 0:00 [scsi_eh_1]
root 208 0.0 0.0 0 0 ? S avril09 0:00 [scsi_eh_2]
root 209 0.0 0.0 0 0 ? S avril09 0:00 [scsi_eh_3]
root 210 0.0 0.0 0 0 ? S avril09 0:00 [scsi_eh_4]
root 211 0.0 0.0 0 0 ? S avril09 0:00 [scsi_eh_5]
root 214 0.0 0.0 0 0 ? S avril09 0:00 [kworker/u:4]
root 215 0.0 0.0 0 0 ? S avril09 0:00 [kworker/u:5]
root 218 0.0 0.0 0 0 ? S avril09 0:12 [kworker/1:1]
root 219 0.0 0.0 0 0 ? S avril09 0:08 [kworker/7:1]
root 226 0.0 0.0 0 0 ? S avril09 0:13 [kworker/3:1]
root 230 0.0 0.0 0 0 ? S avril09 0:00 [kworker/5:2]
root 232 0.0 0.0 0 0 ? S< avril09 0:06 [kworker/0:1H]
root 241 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/5:1H]
root 247 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/4:1H]
root 251 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/1:1H]
root 252 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/6:1H]
root 253 0.0 0.0 0 0 ? S avril09 0:00 [kworker/2:1]
root 254 0.0 0.0 0 0 ? S avril09 0:08 [kjournald]
root 258 0.0 0.0 0 0 ? S avril09 0:08 [kworker/6:1]
root 267 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/3:1H]
root 337 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/2:1H]
root 394 0.0 0.0 0 0 ? S< avril09 0:00 [kworker/7:1H]
root 402 0.0 0.0 21836 1784 ? Ss avril09 0:00 udevd --daemon
root 583 0.0 0.0 0 0 ? S< avril09 0:00 [kpsmoused]
root 584 0.0 0.0 0 0 ? S avril09 0:00 [kworker/1:2]
root 691 0.0 0.0 0 0 ? S avril09 0:06 [kworker/4:2]
root 746 0.0 0.0 0 0 ? S< avril09 0:00 [kvm-irqfd-clean]
root 748 0.0 0.0 0 0 ? S< avril09 0:00 [hd-audio0]
root 772 0.0 0.0 96268 4048 ? Ss 17:28 0:00 sshd: lalexandre [priv]
10084 777 0.0 0.0 96268 1892 ? S 17:28 0:00 sshd: lalexandre@pts/1
10084 778 0.0 0.0 24008 4748 pts/1 Ss+ 17:28 0:00 -bash
root 953 0.0 0.0 0 0 ? S avril09 0:05 [flush-8:0]
root 1037 0.0 0.0 0 0 ? S 17:33 0:00 [flush-0:22]
root 1043 0.0 0.0 18900 1280 pts/4 R+ 17:35 0:00 ps aux
root 1687 0.0 0.0 0 0 ? S avril09 0:00 [kjournald]
root 1973 0.0 0.0 18972 940 ? Ss avril09 0:00 /sbin/rpcbind -w
statd 2004 0.0 0.0 23344 1344 ? Ss avril09 0:00 /sbin/rpc.statd
root 2009 0.0 0.0 0 0 ? S< avril09 0:00 [rpciod]
root 2011 0.0 0.0 0 0 ? S< avril09 0:00 [nfsiod]
root 2020 0.0 0.0 29500 696 ? Ss avril09 0:00 /usr/sbin/rpc.idmapd
root 2397 0.0 0.0 118444 1804 ? Sl avril09 0:06 /usr/sbin/rsyslogd -c5
root 2399 0.0 0.0 3936 80 ? Ss avril09 0:00 /usr/sbin/acpi_fakekeyd
daemon 2513 0.0 0.0 16672 148 ? Ss avril09 0:00 /usr/sbin/atd
root 2615 0.0 0.0 4248 832 ? Ss avril09 0:00 /usr/sbin/acpid
ntp 2656 0.0 0.0 41064 2404 ? Ss avril09 0:17 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 115:122
root 2894 0.0 0.0 61128 2016 ? Ssl avril09 0:06 /usr/sbin/automount --pid-file /var/run/autofs.pid
102 2900 0.0 0.0 32816 1956 ? Ss avril09 0:00 /usr/bin/dbus-daemon --system
root 2951 0.0 0.0 120364 2752 ? Ss avril09 0:21 /usr/sbin/sssd -D -f
root 2961 0.0 0.0 149132 10352 ? SL avril09 1:57 /usr/lib/sssd/sssd/sssd_be --domain LDAP --debug-to-files
root 2963 0.0 0.0 104652 3452 ? S avril09 0:06 /usr/lib/sssd/sssd/sssd_nss --debug-to-files
root 2964 0.0 0.0 104560 3432 ? S avril09 0:05 /usr/lib/sssd/sssd/sssd_pam --debug-to-files
root 2966 0.0 0.0 58108 3868 ? S avril09 0:02 /opt/cisco/vpn/bin/vpnagentd
avahi 2990 0.0 0.0 36660 2336 ? S avril09 1:34 avahi-daemon: running [auric.local]
avahi 2993 0.0 0.0 36108 468 ? S avril09 0:00 avahi-daemon: chroot helper
root 2994 0.0 0.0 156116 5264 ? Ssl avril09 0:01 /usr/sbin/NetworkManager
root 3091 0.0 0.0 134436 4536 ? Sl avril09 0:00 /usr/lib/policykit-1/polkitd --no-debug
root 3095 0.0 0.0 80868 3228 ? S avril09 0:00 /usr/sbin/modem-manager
105 3161 0.0 0.0 46804 1264 ? Ss avril09 0:00 /usr/sbin/exim4 -bd -q30m
root 3181 0.0 0.0 0 0 ? S< avril09 0:00 [krfcommd]
root 3245 0.0 0.0 20408 1052 ? Ss avril09 0:00 /usr/sbin/cron
root 3284 0.0 0.0 77856 3488 ? Ss avril09 0:08 /usr/sbin/cupsd -C /etc/cups/cupsd.conf
colord 3286 0.0 0.0 150028 4580 ? Sl avril09 0:00 /usr/lib/x86_64-linux-gnu/colord/colord
colord 3307 0.0 0.0 361500 10408 ? Sl avril09 0:00 /usr/lib/x86_64-linux-gnu/colord/colord-sane
root 3422 0.0 0.0 16256 936 tty1 Ss+ avril09 0:00 /sbin/getty 38400 tty1
root 3423 0.0 0.0 16256 944 tty2 Ss+ avril09 0:00 /sbin/getty 38400 tty2
root 3424 0.0 0.0 16256 936 tty3 Ss+ avril09 0:00 /sbin/getty 38400 tty3
root 3425 0.0 0.0 16256 932 tty4 Ss+ avril09 0:00 /sbin/getty 38400 tty4
root 3426 0.0 0.0 16256 944 tty5 Ss+ avril09 0:00 /sbin/getty 38400 tty5
root 3427 0.0 0.0 16256 932 tty6 Ss+ avril09 0:00 /sbin/getty 38400 tty6
root 3428 0.0 0.0 0 0 ? R avril09 0:13 [kworker/2:2]
root 3434 0.0 0.0 0 0 ? S avril09 0:00 [kworker/3:2]
114 3445 0.0 0.0 32280 1176 ? Ss avril09 0:00 /usr/bin/dbus-daemon --fork --print-pid 5 --print-address 7 --session
root 3449 0.0 0.0 129204 3324 ? Sl avril09 0:00 /usr/lib/accountsservice/accounts-daemon
root 3453 0.0 0.0 193108 4112 ? Sl avril09 0:00 /usr/sbin/console-kit-daemon --no-daemon
114 3635 0.0 0.0 53664 2388 ? S avril09 0:00 /usr/lib/gvfs/gvfsd
rtkit 3683 0.0 0.0 105168 1332 ? SNl avril09 0:06 /usr/lib/rtkit/rtkit-daemon
114 3687 0.0 0.0 218500 3468 ? Sl avril09 0:00 /usr/lib/at-spi2-core/at-spi-bus-launcher
114 3691 0.0 0.0 32008 1604 ? S avril09 0:00 /usr/bin/dbus-daemon --config-file=/etc/at-spi2/accessibility.conf --nofork --print-address 3
root 3711 0.0 0.0 9960 3712 ? S avril09 0:00 /sbin/dhclient -d -4 -sf /usr/lib/NetworkManager/nm-dhcp-client.action -pf /var/run/dhclient-eth0.pid -lf /var/lib/dhcp/dhclient-1912e92e-6ddc-
root 3792 0.0 0.0 0 0 ? S avril09 0:00 [nfsv4.0-svc]
root 3854 0.0 0.0 49852 1172 ? Ss avril09 0:00 /usr/sbin/sshd
root 5233 0.0 0.0 21832 1456 ? S avril09 0:00 udevd --daemon
root 5234 0.0 0.0 21832 1444 ? S avril09 0:00 udevd --daemon
root 20780 0.0 0.0 96268 4052 ? Ss avril12 0:00 sshd: lalexandre [priv]
10084 20785 0.0 0.0 96268 1892 ? S avril12 0:00 sshd: lalexandre@pts/3
10084 20786 0.0 0.0 23856 4480 pts/3 Ss avril12 0:00 -bash
root 20894 0.0 0.0 96268 4052 ? Ss avril12 0:00 sshd: lalexandre [priv]
10084 20899 0.0 0.0 96404 1892 ? S avril12 0:00 sshd: lalexandre@pts/4
10084 20900 0.0 0.0 23956 4696 pts/4 Ss avril12 0:00 -bash
root 21028 0.0 0.0 64908 2184 pts/4 S avril12 0:00 sudo bash
root 21029 0.0 0.0 19448 2208 pts/4 S avril12 0:00 bash
root 21044 0.0 0.0 64908 2200 pts/3 S avril12 0:00 sudo bash
root 21045 0.0 0.0 19448 2204 pts/3 S+ avril12 0:00 bash
Thank you
Le 16.04.2013 13:03, Kristof Provost a écrit :
On 2013-04-16 10:35:05 (+0200), Alexandre Laurent <alexandre.laurent@xxxxxxx> wrote:My problem is that in some cases it is not working at all. It works fine if I am running both programs in the same instance of the terminal, or from a script (so, same instance of interpreter). But this is not working if I am running the instances in separate SSH session. When I say it is not working, both instances will take 24s to run and the CPU usage is just shared between the tasks.Is it possible that you're running systemd or something else which is configuring cgroups? Regards, Kristof
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies