Re: load

2002-03-27 Thread Thomas Dodd
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

Re: load

2002-03-26 Thread Venkatesh Krishnamurthi
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

Re: load

2002-03-26 Thread vishist mandapaka
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

Re: load

2002-03-26 Thread John Fox
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