[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: CPU Info
cat /proc/stat
Based on those values, you can calculate the system
loads(USER/NICE/SYST) on the various CPU's using an equation.
See the source code of "top" in procps package for the exact equations
or contact me.
HTH
Rohit
Sandeep Sundaram wrote:
>
> Hi,
>
> I am working on an Intel m/c, which has 4 CPUs online, and running
> RH 6.1 .
> I need to write a small program to monitor these CPUs, i.e to check if the
> are functional or not, etc. Where can I obtain the statistics for the same.
>
> TIA
>
> Regards,
> Sandeep Sundaram
>
> _____________________________________________
> Free email with personality! Over 200 domains!
> http://www.MyOwnEmail.com
>
> -----------------------------------------------------------------------
> LIP is all for free speech. But it was created for a purpose - to help
> people discuss technical programming related issues about Linux. If
> your messages are counterproductive to this purpose, your privileges to
> submit messages can and will be revoked.
--
You are in the hall of the mountain king.
===========================================================
R o h i t R o m e h a r s h a n S i n g h
http://www.rohit.cx
WORK:rohitsingh@xxxxxxxxxxxxxxx PLAY:rohit@xxxxxxxx