How to find free resident memory in Linux using python

Lawrence D'Oliveiro ldo at geek-central.gen.new_zealand
Mon Oct 4 17:06:57 EDT 2010


In message <slrniaf7ut.2f2t.usenet-nospam at guild.seebs.net>, Seebs wrote:

> On 2010-10-02, Sandy <dksreddy at gmail.com> wrote:
>
>> I want to find how much free memory (RAM) is available in my system
>> using python.
> 
> The question is essentially incoherent on modern systems.

And then there’s the fact that, on most Linux systems, by default you never 
get a failure trying to ask for more RAM. Instead, if the system runs short, 
it wakes up the dreaded OOM-killer.



More information about the Python-list mailing list