i am using Fedora core 3.
i read the /proc/stat file but there were 7 entries along the first line beginning with CPU but it is not specified what information they are providing.
On Mon, 07 Mar 2005 Erik Mouw wrote :
>On Mon, Mar 07, 2005 at 04:20:37AM -0000, sounak chakraborty wrote:
> > we are extracting the memory the swap information from the file
> > /proc/meminfo but for deriving the CPU usage i am not able to track
> > the files which can provide me the information regarding cpu usage
>
>/proc/stat (look at top or vmstat source to figure out how it works).
>
>
>Erik
>
>--
>Erik Mouw
>J.A.K.Mouw@xxxxxxxxxxxxxx mouw@xxxxxxxxxxxx