Unix Programming - How to get CPU utilization?

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2004 > How to get CPU utilization?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to get CPU utilization?
Benjamin Wang

2004-01-23, 5:02 pm

Hi,

I need to do some overload control work based on status of CPU usage. The
server I used has more than one CPU, and operating system on it is solaris
5.7. As we know, the process information is stored in the psinfo under
/proc/<pid>. I wonder if I need to access each process CPU usage from psinfo
and then calculate CPU percent usage of the server, and how to get each CPU
usage?

Thanks very much!


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com