vishist mandapaka wrote:
> Hi,
> The granularity of my access should be around once every 5 sec. But one
> min, I am unable to read that file through a program. I want to read the
> load of the system through a C program..
Why not? open("/proc/loadavg",O_RDONLY) should work.
then read a few b
Hi,
You might take a look at the procps package (top, uptime, etc.) to see how
they do it.
Venkatesh
>
> Hi,
> The granularity of my access should be around once every 5 sec. But one
> min, I am unable to read that file through a program. I want to read the
> load of the system through a C
Hi,
The granularity of my access should be around once every 5 sec. But one
min, I am unable to read that file through a program. I want to read the
load of the system through a C program..
thanks
vishit.
___
Redhat-devel-list mailing list
[EMAIL P
You didn't say how granular you need to get, so I am not sure if this will
help you:
look at the contents of /proc/loadavg
This file contains the average CPU utilization for 1, 5 & 15 minutes.
On Tuesday 26 March 2002 05:53 pm, you wrote:
Hi,
I want to determine the load on the machine thro