Resource usage
Peter Hansen
peter at engcorp.com
Tue Jan 28 19:51:45 EST 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.
-Peter
More information about the Python-list
mailing list