Memory Monitor

Timothy H elfinman at
Wed Jun 26 23:50:25 CEST 2002

In article <3D18E752.7A5A4EAC at>, "Mitch Chapman"
<Mitch.Chapman at> wrote:

> Cameron Laird wrote:
>> Mitch Chapman  <Mitch.Chapman at> wrote:
>> >        os.system("cat /proc/self/status | grep VmSize")
>> Rather than
>>   os.system("grep VmSize /proc/self/status")
>> ?
> No, that's also concise =8)

Concise, but it doesn't work. Then /proc/self/status is reporting the
memory usage for grep, not for the python interpreter+script.

More information about the Python-list mailing list