PDA

View Full Version : ps/top question



Scoofy12
03-29-2004, 08:14 AM
I've not run DF on a linux desktop in a while (just a server) so I found something perplexing today:

i ran top, and saw this:

top - 08:08:10 up 5 days, 14:12, 3 users, load average: 2.22, 2.27, 2.38
Tasks: 105 total, 5 running, 100 sleeping, 0 stopped, 0 zombie
Cpu(s): 84.5% user, 6.6% system, 8.9% nice, 0.0% idle
Mem: 506652k total, 500060k used, 6592k free, 154368k buffers
Swap: 747012k total, 101432k used, 645580k free, 111752k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
4933 xds 19 19 63132 53m 2252 R 8.9 10.8 309:09.28 foldtrajlite
2544 root 5 -10 160m 23m 7340 S 7.9 4.8 66:10.90 XFree86
..etc

I thought "hm, why is DF only taking 8.9% CPU and what is the 84.5% going to? I couldnt find any other process in top that looked to be consuming much CPU, so I ran ps:

USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1492 416 ? S Mar23 0:05 init [2]
root 2 0.0 0.0 0 0 ? SW Mar23 0:10 [keventd]
root 3 0.0 0.0 0 0 ? SWN Mar23 0:00 [ksoftirqd_CPU0]
root 4 0.0 0.0 0 0 ? SW Mar23 0:04 [kswapd]
root 5 0.0 0.0 0 0 ? SW Mar23 0:00 [bdflush]
root 6 0.0 0.0 0 0 ? SW Mar23 0:09 [kupdated]
root 8 0.0 0.0 0 0 ? SW Mar23 0:00 [khubd]
root 15 0.0 0.0 0 0 ? SW Mar23 0:00 [kreiserfsd]
root 172 0.0 0.1 1664 628 ? S Mar23 0:00 dhclient -pf /var/run/dhclient.eth0.pid eth0
root 242 0.0 0.0 2348 436 ? S Mar23 0:00 /sbin/klogd
root 250 0.0 0.0 1520 472 ? S Mar23 0:00 /usr/sbin/inetd
root 266 0.0 0.2 4660 1236 ? S Mar23 0:00 /usr/bin/X11/xfs -daemon
root 334 0.0 0.1 2700 952 ? S Mar23 0:00 /bin/bash /etc/rc2.d/S20xprint posix_sh_forced start
root 336 0.0 0.1 2700 952 ? S Mar23 0:00 /bin/bash /etc/rc2.d/S20xprint posix_sh_forced start
root 337 0.0 0.0 1484 348 ? S Mar23 0:00 tee -a /dev/null
root 338 0.0 0.0 1476 412 ? S Mar23 0:00 logger -p lpr.notice -t Xprt_64
root 342 0.0 0.1 4540 580 ? S Mar23 0:00 /usr/X11R6/bin/Xprt -ac -pn -nolisten tcp -audit 4 -fp /usr/X
daemon 346 0.0 0.1 1672 560 ? S Mar23 0:00 /usr/sbin/atd
root 349 0.0 0.1 1756 700 ? S Mar23 0:00 /usr/sbin/cron
root 367 0.0 0.0 1484 404 tty3 S Mar23 0:00 /sbin/getty 38400 tty3
root 368 0.0 0.0 1484 404 tty4 S Mar23 0:00 /sbin/getty 38400 tty4
root 369 0.0 0.0 1484 404 tty5 S Mar23 0:00 /sbin/getty 38400 tty5
root 370 0.0 0.0 1484 404 tty6 S Mar23 0:00 /sbin/getty 38400 tty6
root 2073 0.0 0.1 2492 620 ? S Mar24 0:00 kdm
root 2097 0.0 0.0 1484 404 tty1 S Mar24 0:00 /sbin/getty 38400 tty1
root 2098 0.0 0.2 2584 1052 tty2 S Mar24 0:00 -bash
xds 3459 0.0 0.2 5256 1508 ? S Mar24 0:00 /usr/lib/bonobo-activation/bonobo-activation-server --ac-acti
root 4559 0.2 0.1 2288 984 ? S Mar24 16:56 /bin/sh /usr/bin/x-session-manager
root 4608 0.0 0.8 12948 4340 ? S Mar24 0:00 dcopserver
root 2544 0.9 4.8 170672 24560 ? S< Mar24 66:11 /usr/X11R6/bin/X :0 -dpi 100 -nolisten tcp vt7 -auth /var/lib
root 4408 0.0 0.0 2672 480 ? S Mar24 0:00 ssh-agent
xds 6317 0.0 0.0 2672 352 ? S Mar24 0:00 ssh-agent
xds 8156 0.0 0.6 28740 3276 ? S Mar25 0:00 /usr/lib/evolution/1.4/evolution-wombat --oaf-activate-iid=OA
root 9170 0.0 0.1 3336 616 ? S Mar25 0:00 /usr/sbin/sshd
root 18329 0.0 0.1 1628 700 ? S Mar26 0:00 /sbin/syslogd -r
daemon 20289 0.0 0.0 1708 456 ? S Mar26 0:00 /sbin/portmap
xds 20974 0.0 0.2 3432 1160 ? S Mar26 0:00 /usr/sbin/famd -T 0
xds 21803 0.0 0.7 28156 3868 ? S Mar26 0:01 /usr/lib/gconf2/gconfd-2 13
root 22277 0.0 0.1 3028 884 ? S Mar26 0:00 -:0
xds 22296 0.0 0.1 2276 900 ? S Mar26 0:00 /bin/sh /usr/bin/kde3
xds 22338 0.0 0.0 2924 432 ? S Mar26 0:00 /usr/bin/ssh-agent kde3
xds 22350 0.0 1.3 20616 7076 ? S Mar26 0:00 kdeinit: Running...
xds 22353 0.0 1.4 20324 7340 ? S Mar26 0:00 kdeinit: dcopserver --nosid
xds 22356 0.0 1.6 21600 8120 ? S Mar26 0:00 kdeinit: klauncher
xds 22358 0.0 2.3 26672 11992 ? S Mar26 0:01 kdeinit: kded
xds 22372 0.0 1.9 27728 10040 ? S Mar26 0:01 kdeinit: knotify
xds 22373 0.0 0.0 1480 280 ? S Mar26 0:00 kwrapper ksmserver
xds 22375 0.0 1.8 22604 9336 ? S Mar26 0:01 kdeinit: ksmserver
xds 22377 0.0 2.1 24436 11080 ? S Mar26 0:04 kdeinit: kwin -session 117f000001000108013337000000025540000_
xds 22380 0.0 2.3 24484 11956 ? S Mar26 0:04 kdeinit: kdesktop
xds 22382 0.0 2.5 26616 13128 ? S Mar26 0:32 kdeinit: kicker
xds 22383 0.0 1.5 21044 7648 ? S Mar26 0:00 kdeinit: kio_file file /tmp/ksocket-xds/klauncherpcOPWa.slave
xds 22386 0.0 2.0 24296 10424 ? S Mar26 0:03 kdeinit: klipper
xds 22388 0.0 1.2 23464 6488 ? S Mar26 0:01 /usr/lib/evolution/1.4/evolution-alarm-notify --sm-config-pre
xds 22389 0.0 2.4 26976 12608 ? S Mar26 0:09 kdeinit: konsole -session 117f0000010001080141473000000559300
xds 22395 0.0 1.8 22016 9536 ? S Mar26 0:01 kalarmd --login
xds 22396 0.0 0.2 2580 1032 pts/0 S Mar26 0:00 /bin/bash
xds 22398 0.0 0.2 2588 1260 pts/1 S Mar26 0:00 /bin/bash
xds 22401 0.0 0.2 2580 1332 pts/2 S Mar26 0:00 /bin/bash
xds 22457 1.1 0.6 12308 3516 ? S Mar26 43:03 /usr/bin/artsd -F 10 -S 4096 -a oss -d -s 60 -m artsmessage -
xds 22464 0.0 3.6 54316 18544 ? S Mar26 0:30 evolution
xds 22467 0.0 3.6 54316 18544 ? S Mar26 0:00 evolution
xds 22468 0.0 3.6 54316 18544 ? S Mar26 0:01 evolution
xds 22469 0.0 3.6 54316 18544 ? S Mar26 0:00 evolution
xds 22505 0.0 1.1 20444 5880 ? S Mar26 0:05 xmms
xds 22506 0.0 1.1 20444 5880 ? S Mar26 0:00 xmms
xds 22507 0.0 1.1 20444 5880 ? S Mar26 0:00 xmms
xds 22509 0.0 1.1 20444 5880 ? S Mar26 0:00 xmms
xds 22517 0.0 5.5 53552 28164 ? S Mar26 1:03 /usr/lib/mozilla-firefox/firefox-bin
xds 22535 0.0 5.5 53552 28164 ? S Mar26 0:00 /usr/lib/mozilla-firefox/firefox-bin
xds 22536 0.0 5.5 53552 28164 ? S Mar26 0:00 /usr/lib/mozilla-firefox/firefox-bin
xds 22537 0.0 5.5 53552 28164 ? S Mar26 0:00 /usr/lib/mozilla-firefox/firefox-bin
xds 22574 0.0 1.9 22472 9752 ? S Mar26 0:06 appletproxy --configfile minipager_panelapplet_dtbyiugwgmag8k
xds 22621 0.0 3.6 54316 18544 ? S Mar26 0:00 evolution
root 10298 0.0 0.1 2596 1000 pts/0 S Mar26 0:00 bash
xds 20740 0.0 0.1 2276 900 ? S Mar26 0:00 /bin/sh /usr/bin/x-session-manager
xds 20788 0.0 0.1 2924 632 ? S Mar26 0:00 /usr/bin/ssh-agent x-session-manager
xds 20806 0.0 1.3 20600 6848 ? S Mar26 0:00 kdeinit: Running...
xds 20810 0.0 1.5 20284 7756 ? S Mar26 0:00 kdeinit: dcopserver --nosid
xds 20814 0.0 1.7 21540 8704 ? S Mar26 0:00 kdeinit: klauncher
xds 20816 0.0 2.0 22096 10468 ? S Mar26 0:00 kdeinit: kded
xds 20868 0.0 2.2 27368 11548 ? S Mar26 0:00 kdeinit: knotify
xds 20873 0.0 0.0 1480 280 ? S Mar26 0:00 kwrapper ksmserver
xds 20875 0.0 1.9 21348 9648 ? S Mar26 0:00 kdeinit: ksmserver
xds 20941 0.0 2.2 23528 11304 ? S Mar26 0:00 kdeinit: kwin -session 117f000001000108013337000000025540000_
xds 20945 0.0 1.7 24276 9056 ? S Mar26 0:01 kdeinit: kdesktop
xds 20951 0.0 1.9 25604 9704 ? S Mar26 0:04 kdeinit: kicker
xds 20956 0.0 1.3 20904 7068 ? S Mar26 0:00 kdeinit: kio_file file /tmp/ksocket-xds/klauncherlAZQub.slave
xds 20960 0.0 1.6 23116 8300 ? S Mar26 0:00 kdeinit: klipper
xds 20964 0.0 1.6 22752 8304 ? S Mar26 0:00 korgac --miniicon korganizer
xds 20983 0.0 1.6 21568 8352 ? S Mar26 0:00 kalarmd --login
xds 29687 0.0 1.5 21752 7892 ? S Mar26 0:00 /usr/bin/kdesktop_lock
xds 29690 0.0 13.5 74488 68584 ? SN Mar26 0:00 bsod -root -delay 20 -no-apple2
xds 4919 0.0 0.1 2660 712 ? S Mar26 3:04 SCREEN ./foldit
xds 4920 0.0 0.1 2280 864 pts/5 S Mar26 0:00 /bin/sh ./foldit
xds 4923 0.0 0.1 2280 864 pts/5 S Mar26 0:00 /bin/sh ./tmpfoldit.bat
xds 4929 0.0 0.1 2280 864 pts/5 S Mar26 0:00 /bin/sh ./foldit
xds 4933 8.6 10.8 78016 54832 pts/5 RN Mar26 309:19 ./foldtrajlite -f protein -n native -qf -it -rt
xds 20492 0.0 10.8 78016 54832 pts/5 SN Mar26 0:00 ./foldtrajlite -f protein -n native -qf -it -rt
root 16712 0.0 0.9 20044 5052 ? R 08:09 0:00 kpersonalizer --r --before-session
xds 16713 0.0 0.1 2480 832 pts/2 R 08:09 0:00 ps aux

Scoofy12
03-29-2004, 08:15 AM
....

thats quite a passel of processes, but no big CPU-eaters.
Am I missing something? Is my DF working in top form?



Also, what monitoring programs are there for linux?

Also, since when is there a post size limit? Is this new?

rshepard
03-29-2004, 08:25 AM
It will use very little CPU when trying to contact the network and upload results. And with the network problems we've been seeing, it can hold at that low level for a while; it should eventually return to almost 100% DF however.

GHOST
03-29-2004, 08:50 AM
are you running df in quiet mode?

Scoofy12
03-29-2004, 09:48 AM
no, its not running in quiet mode. previously, i've always run it this way (it runs in a detatched screen session) and had little, if any, impact on performace.

And, I don't think it's just contacting the server or whatever, as it seems that everytime I check it, it has similar results.

Looking at the total CPU time would seem that it is taking most of the CPU time, i'm just wondering about the discrepancy in the CPU percent that it says is user (the 84%) and DF's percent, and what else, if not DF, might be eating the CPU.

maybe i'll try quiet mode and see what happens.

MerePeer
04-01-2004, 06:28 AM
Also, what monitoring programs are there for linux?

If you meant a DF monitor, not a CPU monitor, try out DFProgress. Its over in the DF forum in the thread called DFProgress.
;)