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!

/proc/stat

Status
Not open for further replies.

capitano

Programmer
Jul 30, 2001
88
US
Hi group,

I'm writing a perl script to monitor hardware parameters on a R.H 7.1 Linux machine like load avg, memory load, cpu load, etc. given certain network loads. (http, smtp, ssh traffic, popd, etc.)

I'm planning to write the script to parse most of these piecies of data from the /proc directory -- like from /proc/meminfo and /proc/loadavg and /proc/stat

If I do this:
cat /proc/stat | grep cpu
I get the following lines:
cpu 97910 1030 43523 51827382
cpu0 97910 1030 43523 51827382

My question is if anybody can tell me which column specifies which aspect of CPU usage? Where could I find more information??

thank you!

Bryan Capitano


 
user nice system idle

your user cpu time is 979.1 seconds.

so i can tell that your machine has been up for just over 6 days with a 99% idle time ;)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top