[Tutor] CPU Utilization

Alan Gauld alan.gauld at freenet.co.uk
Thu Jan 12 21:31:07 CET 2006


> shell out to perform the top command, parse the results, and report
> those values to the job controller.

I'd use vmstat rather than top since top is intended to run contuinuously 
whereas vmstat by default just returns a single line snapshot.

I don't know of any native python mechanism for obtaining cpu usage.

Alan G


More information about the Tutor mailing list