Resource usage

Peter Hansen peter at
Wed Jan 29 01:51:45 CET 2003

Grzegorz Dostatni wrote:
> 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.

Not provided by stanard Python modules, so far as I know.  How 
would you do these things on that platform *without* using Python?
The answer to that question will generally lead you to the answer
you need for doing it with Python.


More information about the Python-list mailing list