[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting CPU load (from /proc/?)

cjw44@flatline.org.uk (Colin Watson) writes:

> You could try 'vmstat 1', which will poll every second. Ignoring the
> first line, which is an "up to the time vmstat was started" figure, the
> last field in each line is the percentage of time the CPU is idle.

Cool!  Where could I get its source code?
Or would anyone tell me if there is a system call or C function to get
the percentage of time the CPU has been idle?

Arcady Genkin
Don't read everything you believe.

Reply to: