Get Amount of Physical Memory

Helmut Jarausch jarausch at igpm.rwth-aachen.de
Wed May 26 07:36:43 EDT 2004


Bart Nessux wrote:
> Is there a function in Python that will get the amount of physical 
> memory from the machine the interpretor is running on?
> 

For Linux
for L in open("/proc/meminfo") : print L



-- 
Helmut Jarausch

Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany



More information about the Python-list mailing list