Gauging system load
annis at biostat.wisc.edu
Thu Feb 15 10:17:16 EST 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.
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