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
--
Robin Laing