Dear gentoo community:
I have got a old gentoo server 
Linux *** 2.4.28-gentoo-r6 #1 Fri Feb 18 08:08:30 CST
2005 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GNU/Linux

I am confused by a ps command problem.

I used 
'ps -F -u root --sort bsdtime' to sort root processes by cumulative cpu
time and got the following.

keventd has a cumulative cpu time of 10 seconds.
and the kswapd has a cpu time 2day 11hours 2 minutes and 7seconds.

but why is keventd listed before kswapd. I am confused as to how ps sort
the cumulative cpu time.

Thanks for any help!

Zhengquan


UID        PID  PPID  C    SZ   RSS PSR STIME TTY          TIME CMD
root         1     0  0   353   436   0  2008 ?        05:56:54 init [3]  
root         2     1  0     0     0   0  2008 ?        00:00:10 [keventd]
root         3     1  0     0     0   0  2008 ?        09:54:58 [ksoftirqd_CPU0]
root         4     1  0     0     0   0  2008 ?        2-11:02:07 [kswapd]
root         5     1  0     0     0   0  2008 ?        00:00:46 [bdflush]
root         6     1  0     0     0   0  2008 ?        06:04:53 [kupdated]
root         8     1  0     0     0   0  2008 ?        00:00:00 [khubd]
root        15     1  0     0     0   0  2008 ?        05:10:19 [kjournald]
root      9311     1  0   477   752   0  2008 ?        00:00:10 /sbin/devfsd 
/dev
root     28165     1  0     0     0   0  2008 ?        00:00:04 [kjournald]
root      8470     1  0     0     0   0  2008 ?        09:32:13 [kjournald]
root     24381     1  0     0     0   0  2008 ?        1-14:42:25 [kjournald]
root     15836     1  0  1357  1788   0  2008 ?        16:32:01 /usr/sbin/cupsd
root     13313     1  0   452   696   0  2008 ?        01:06:56 
/usr/sbin/smartd -p /var/run/smartd.pid
root       246     1  0   425   548   0  2008 ?        00:37:37 /usr/sbin/cron
root     23436     1  0   373   412   0  2008 vc/3     00:00:00 /sbin/agetty 
38400 tty3 linux
root     10731     1  0   362   412   0  2008 vc/4     00:00:00 /sbin/agetty 
38400 tty4 linux
root      2445     1  0   373   412   0  2008 vc/5     00:00:00 /sbin/agetty 
38400 tty5 linux
root     12186     1  0   364   412   0  2008 vc/6     00:00:00 /sbin/agetty 
38400 tty6 linux
root     27503     1  0   366   448   0 Jan09 vc/1     00:00:00 /sbin/agetty 
38400 tty1 linux
root     20777     1  0   464   828   0 Jan23 ?        01:25:06 
/usr/sbin/syslog-ng
root     28532     1  0   356   368   0 Jan23 ?        00:00:00 
/usr/sbin/courierlogger -pid=/var/run/authdaemon.pid -start 
/usr/lib/courier/courier-authlib/authdaemond
root     10491 28532  0   456   448   0 Jan23 ?        00:01:03 
/usr/lib/courier/courier-authlib/authdaemond
root     14333 10491  0   506   676   0 Jan23 ?        00:01:08 
/usr/lib/courier/courier-authlib/authdaemond
root     11516 10491  0   506   676   0 Jan23 ?        00:01:10 
/usr/lib/courier/courier-authlib/authdaemond
root      3605 10491  0   506   716   0 Jan23 ?        00:01:08 
/usr/lib/courier/courier-authlib/authdaemond
root      7602 10491  0   506   680   0 Jan23 ?        00:01:09 
/usr/lib/courier/courier-authlib/authdaemond
root      5834 10491  0   506   680   0 Jan23 ?        00:01:10 
/usr/lib/courier/courier-authlib/authdaemond
root     12017     1  0   663   496   0 Jan23 ?        00:00:00 /usr/sbin/famd 
-T 0 -c /etc/fam.conf
root     10927     1  0   373   452   0 Jan23 ?        00:00:01 
/usr/lib/courier-imap/couriertcpd -address=0 
-stderrlogger=/usr/lib/courier-imap/courierlogger -stderrloggername=imapd 
-maxprocs=40 -maxperip=4 -pid=/var/run/imapd.pid -nodnslookup -noidentlookup 
143 /usr/sbin/imaplogin /usr/lib/courier-imap/courier-imapd.indirect .maildir
root      5277     1  0   347   416   0 Jan23 ?        00:00:03 
/usr/lib/courier-imap/courierlogger imapd
root     11307     1  0   387   456   0 Jan23 ?        00:00:41 
/usr/lib/courier-imap/couriertcpd -address=0 
-stderrlogger=/usr/lib/courier-imap/courierlogger -stderrloggername=imapd-ssl 
-maxprocs=40 -maxperip=4 -pid=/var/run/imapd-ssl.pid -nodnslookup 
-noidentlookup 993 /usr/sbin/couriertls -server -tcpd /usr/sbin/imaplogin 
/usr/lib/courier-imap/courier-imapd.indirect .maildir
root     32456     1  0   361   420   0 Jan23 ?        00:00:03 
/usr/lib/courier-imap/courierlogger imapd-ssl
root     21326     1  0   846  1040   0 Jan23 ?        00:02:47 /usr/sbin/sshd
root      1876     1  0   567   664   0 Jan30 vc/2     00:00:00 /bin/login --   
 
root     10105     1  0  1511  3884   0 Mar27 ?        00:00:48 SCREEN
root       635 10105  0   698  1384   0 Mar27 pts/1    00:00:01 -/bin/bash
root     30443     1  0  1040   748   0 Mar31 ?        00:00:01 SCREEN
root      3907 30443  0   691  1024   0 Mar31 pts/6    00:00:00 -/bin/bash
root      5244 30443  0   696  1028   0 Mar31 pts/7    00:00:00 -/bin/bash
root      5442 30443  0   691  1024   0 Mar31 pts/8    00:00:00 -/bin/bash
root      5249 30443  0   694  1028   0 Mar31 pts/9    00:00:00 -/bin/bash
root     17407 30443  0   690  1016   0 Mar31 pts/10   00:00:00 -/bin/bash
root     17527   246  0   506   712   0 Apr01 ?        00:00:00 /usr/sbin/cron
root      2262   246  0   506   676   0 Apr05 ?        00:00:00 /usr/sbin/cron
root     22682   246  0   506   676   0 Apr06 ?        00:00:00 /usr/sbin/cron
root     16279   246  0   506   712   0 Apr07 ?        00:00:00 /usr/sbin/cron
root     28555     1  0   915  1056   0 Apr07 ?        00:00:01 SCREEN
root     22936 28555  0   693  1304   0 Apr07 pts/12   00:00:00 -/bin/bash
root     15033 28555  0   684  1024   0 Apr07 pts/13   00:00:00 -/bin/bash
root      2852 28555  0   683  1056   0 Apr07 pts/14   00:00:00 -/bin/bash
root      6294   246  0   506   716   0 Apr08 ?        00:00:00 /usr/sbin/cron
root     13490   246  0   506   712   0 Apr09 ?        00:00:00 /usr/sbin/cron
root     14662     1  0  5011  6220   0 Apr09 ?        00:01:21 
/usr/sbin/apache2 -D SSL -D PHP5 -D DEFAULT_VHOST -D USERDIR -d 
/usr/lib/apache2 -f /etc/apache2/httpd.conf -E 
/var/log/apache2/startuperror.log -k start
root      8675   246  0   506   800   0 Apr10 ?        00:00:00 /usr/sbin/cron
root     19386     1  0  1178  3196   0 Apr10 ?        00:00:01 SCREEN
root     28344 19386  0   696  1624   0 Apr10 pts/19   00:00:00 -/bin/bash
root      7656 19386  0   694  1624   0 Apr10 pts/20   00:00:00 -/bin/bash
root     16226 19386  0   697  1644   0 Apr10 pts/21   00:00:00 -/bin/bash
root     17092     1  0  1183  1444   0 Apr10 ?        00:00:13 
/usr/lib/postfix/master
root     22530   246  0   506   800   0 Apr11 ?        00:00:00 /usr/sbin/cron
root     31366   246  0   506   800   0 Apr12 ?        00:00:00 /usr/sbin/cron
root      6242   246  0   506   800   0 Apr13 ?        00:00:00 /usr/sbin/cron
root     11524   246  0   506   800   0 01:00 ?        00:00:00 /usr/sbin/cron
root     17496 21326  0  1553  1936   0 09:12 ?        00:00:00 sshd: jwanka 
[priv]
root      2355 21326  0  1601  2188   0 09:48 ?        00:00:00 sshd: 
r...@pts/0 
root     21053  2355  0   694  1632   0 09:48 pts/0    00:00:00 -bash
root     14330 21053  0   625   932   0 09:49 pts/0    00:00:00 screen -r 
10105.pts-0.ccl
root     14769 11307  0   679  1428   0 09:52 ?        00:00:00 
/usr/sbin/couriertls -server -tcpd /usr/sbin/imaplogin 
/usr/lib/courier-imap/courier-imapd.indirect .maildir
root      2292 10105  0   685  1632   0 10:52 pts/2    00:00:00 -/bin/bash
root     19138 10105  0   686  1628   0 10:53 pts/3    00:00:00 -/bin/bash
root      2115 11307  0   686  1428   0 11:28 ?        00:00:00 
/usr/sbin/couriertls -server -tcpd /usr/sbin/imaplogin 
/usr/lib/courier-imap/courier-imapd.indirect .maildir
root      4729  2292  0   513   876   0 11:29 pts/2    00:00:00 ps -F -u root 
--sort time


-- 
Zhengquan

Reply via email to