Gauging system load

William Annis annis at biostat.wisc.edu
Thu Feb 15 16:17:16 CET 2001


Bryan Mongeau <bryan at eevolved.com> writes:

> Out of curiosity, does anyone know of a module or a neat trick that will 
> permit me to gauge the system load at a given time?

        What OS?  I have no idea how you'd do this on a PC or a Mac,
but on any unix flavor you should be able to parse the output from
uptime.  And if you're running Solaris, you can grab my PyKstat
package and rip the information right out of the kernel with no
parsing at all.

        http://www.biostat.wisc.edu/~annis/creations/pykstat.html

Under Linux, you can parse the contents of /proc/loadavg.

-- 
William Annis - System Administrator - Biomedical Computing Group
annis at biostat.wisc.edu                       PGP ID:1024/FBF64031
Mi parolas Esperanton - La Internacian Lingvon  www.esperanto.org



More information about the Python-list mailing list