Resource usage

Grzegorz Dostatni grzegorz at ee.ualberta.ca
Tue Jan 28 12:47:14 EST 2003


I am writing a proof of concept script in python that will dynamically
allocate cpu's and memory on a 16 cpu computer.  The os is AIX 5.2, python
2.1.2

I've looked at the resource module, so I do know how to do those things
;-)

Here is what I am still lacking

1) How can I get the cpu load? Can I get cpu load per cpu?

2) The amount of free memory?

A pointer to somewhere within the documentation will be greatly
appreciated. I scanned throught the library, but was unable to find
anything that provided these two.

Greg





More information about the Python-list mailing list