Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Understanding TOP readout.

Status
Not open for further replies.

SM777

Technical User
Mar 7, 2001
208
GB
Is the following top entry a problem?

root 4 0 344M 39M 40372 S 0 0.0 31.9 10:27 HTTPD

It says its using 31.9% of memory and has been running for 10:27 hours? Yet it has said this for the past day or two. Is it hung?

I tried PS AUX and there is no 'Z' next to anything.

Can you also tell me what the 4, 0 344M , 39M, etc values mean. Is it really using up 344M or 39M bytes of memory?
 
Hi,

It looks to me like this :

PRI 4 (task priority)
NI 0 (nice value - scheduling related)
SIZE 344M (The size of the task's code plus data plus stack space)
RSS 39M (The total amount of physical memory used by the task incl library pages)
SHARE 40372 (The amount of shared memory used by the task)
STAT S (Task status - S means sleeping)
%CPU 0.0 (% of total CPU)
%MEM 31.9 (% of total physical memory)
TIME 10:27 (Accumulated CPU time - i.e. not duration)

So, its just sleeping waiting to be 'woken up' by a client request. Thats quiet normal.

On the memory, it all depends what else is running and how much memory you have as to whether its in physical memory or swapped out (status SW). See the example 'top' outputs here --> .

Also see 'man top'

Hope this helps
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top