-   Linux - Newbie (
-   -   SleepAVG in /proc/[pid]/status (

aloktiagi 08-12-2009 12:24 AM

SleepAVG in /proc/[pid]/status
what does SleepAVG in proc/[pid]/status signify


MensaWater 08-13-2009 09:26 AM

It's the sleep average. The amount of time the process has been in "sleep" status as opposed to any other status.

Many processes sleep a significant amount of the time so seeing a high SleepAVG isn't necessarily indicative of a problem.

aloktiagi 08-14-2009 12:04 AM

thanks for the reply

so 100 minus the SleepAVG can give the CPU time used by the process?

MensaWater 08-14-2009 07:02 AM

Not exactly.
This is just a measure of how much of its own life the process has been sleeping. It is used mainly to determine how much priority to give to the process. A process that sleeps most of the time would be given a lower priority than one which sleeps very little.

cpu time is a slightly different concept. You can get more statistics out of /proc/<pid>/stat. These include things like user time, kernel time etc... If you type "man proc" and search within the man page for "time" you'll see utime etc... explained.

Also typing "man ps" would give you all the different options you can see for processes including time fields.

All times are GMT -5. The time now is 02:01 AM.