Possible Duplicate:
How to get current CPU and RAM usage in Python?
Is there a way to get the free memory of the system, using python?
os
and sys
don't seem to expose this sort of functionality.
Obviously, one could use subprocess
or os.system
, but it wouldn't be portable, nor reliable without serious testing.