PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 20 0 2112 588 508 S 0 0.0 0:02.94 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd 3 root RT -5 0 0 0 S 0 0.0 0:00.04 migration/0 4 root 15 -5 0 0 0 S 0 0.0 0:00.07 ksoftirqd/0 5 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/0 6 root RT -5 0 0 0 S 0 0.0 0:00.03 migration/1 7 root 15 -5 0 0 0 S 0 0.0 0:00.05 ksoftirqd/1 8 root RT -5 0 0 0 S 0 0.0 0:00.00 watchdog/1 9 root 15 -5 0 0 0 S 0 0.0 0:00.58 events/0 10 root 15 -5 0 0 0 S 0 0.0 0:01.01 events/1 11 root 15 -5 0 0 0 S 0 0.0 0:00.00 khelper 64 root 15 -5 0 0 0 S 0 0.0 0:00.02 kblockd/0 65 root 15 -5 0 0 0 S 0 0.0 0:00.00 kblockd/1 68 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpid 69 root 15 -5 0 0 0 S 0 0.0 0:00.00 kacpi_notify 137 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/0 138 root 15 -5 0 0 0 S 0 0.0 0:00.00 cqueue/1 140 root 15 -5 0 0 0 S 0 0.0 0:00.00 ksuspend_usbd 145 root 15 -5 0 0 0 S 0 0.0 0:00.00 khubd 148 root 15 -5 0 0 0 S 0 0.0 0:00.00 kseriod 189 root 20 0 0 0 0 S 0 0.0 0:00.00 pdflush 190 root 20 0 0 0 0 S 0 0.0 0:01.72 pdflush 191 root 15 -5 0 0 0 S 0 0.0 0:00.53 kswapd0 233 root 15 -5 0 0 0 S 0 0.0 0:00.00 aio/0 234 root 15 -5 0 0 0 S 0 0.0 0:00.00 aio/1 384 root 15 -5 0 0 0 S 0 0.0 0:00.00 kpsmoused 419 root 15 -5 0 0 0 S 0 0.0 0:00.00 ata/0 420 root 15 -5 0 0 0 S 0 0.0 0:00.00 ata/1 421 root 15 -5 0 0 0 S 0 0.0 0:00.00 ata_aux 425 root 15 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_0 426 root 15 -5 0 0 0 S 0 0.0 0:03.47 scsi_eh_1 427 root 15 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_2 428 root 15 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_3 429 root 15 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_4 430 root 15 -5 0 0 0 S 0 0.0 0:00.00 scsi_eh_5 443 root 15 -5 0 0 0 S 0 0.0 0:00.00 ksnapd 454 root 15 -5 0 0 0 S 0 0.0 0:00.77 kjournald 482 root 15 -5 0 0 0 S 0 0.0 0:00.00 kauditd 514 root 16 -4 2960 1364 408 S 0 0.1 0:00.07 udevd 1228 root 15 -5 0 0 0 S 0 0.0 0:00.00 kmpathd/0 1229 root 15 -5 0 0 0 S 0 0.0 0:00.00 kmpathd/1 1306 root 15 -5 0 0 0 S 0 0.0 0:00.00 kjournald 1625 rpc 20 0 2360 848 656 S 0 0.0 0:00.08 rpcbind 1644 rpcuser 20 0 1996 928 744 S 0 0.0 0:00.15 rpc.statd
On Thu, 27 Mar 2008 07:15:47 -0700 "Paula J. Lindsay" paula@scripps.edu wrote:
1 root 20 0 2112 588 508 S 0 0.0 0:02.94init
Your results from top all show 0% cpu usage.
Top is a continuously-reporting command that will give you an ongoing snapshot of what processes are running on your computer and how much CPU power they are using. In its default configuration (when you just run top with no extra parameters) the process at the top of the list will be the one that's using the most CPU power at that moment.
Load top and sit and watch it at the exact moment that your computer is running slow. See what processes tend to be at the top of the list. They may come and go and change a bit, but you should see a pattern or a tendency for certain processes to be at the top of the list.
Whatever is at or near the top of the list and using the largest percentage of CPU power is your culprit.
On Thu, 2008-03-27 at 07:15 -0700, Paula J. Lindsay wrote:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 20 0 2112 588 508 S 0 0.0 0:02.94 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd
[...]
If you leave out the first 5 lines of 'top' (before the list of processes) you're leaving out a lot of important info, such as the system load average, memory occupancy, proportion of time spent in user/system state etc. It's important to include this so we can see what's happening.
poc
Patrick O'Callaghan wrote:
On Thu, 2008-03-27 at 07:15 -0700, Paula J. Lindsay wrote:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1 root 20 0 2112 588 508 S 0 0.0 0:02.94 init 2 root 15 -5 0 0 0 S 0 0.0 0:00.00 kthreadd
[...]
If you leave out the first 5 lines of 'top' (before the list of processes) you're leaving out a lot of important info, such as the system load average, memory occupancy, proportion of time spent in user/system state etc. It's important to include this so we can see what's happening.
poc
This stuff is important
This line show how long my system is up and that is is being loaded. I am doing some image processing on one of the cores as I took this.
top - 11:56:41 up 8 days, 2:51, 4 users, load average: 3.00, 3.02, 3.02
This shows the number of processes and some basic details.
Tasks: 184 total, 5 running, 179 sleeping, 0 stopped, 0 zombie Cpu(s): 8.3%us, 43.2%sy, 48.3%ni, 0.0%id, 0.0%wa, 0.2%hi, 0.0%si, 0.0%st
This is important when things start being bogged down. At home this weekend, my system seemed frozen due to the amount of memory being used. I had used all the ram and almost all the swap. My HDD light was on solid. Before I added the extra 4gig of ram a few weeks ago, my work machine was using upto 7gig of swap from time to time.
Mem: 8201104k total, 8107008k used, 94096k free, 487656k buffers Swap: 8385888k total, 0k used, 8385888k free, 4414100k cached
To get more information about top, type in: man top