display available memory

A

Alexandre

Hi!
I'd like to display available memory using Python but I haven't found the
easy way to do it...
Any idea please?
Also I need a no specific OS function, as I plan to not only use it under
Windows.
Thanks

Alex
 
T

Tim Roberts

Alexandre said:
I'd like to display available memory using Python but I haven't found the
easy way to do it...
Any idea please?
Also I need a no specific OS function, as I plan to not only use it under
Windows.

There is no system-independent method of doing this. In fact, it's not
easy to find a system-DEPENDENT method of doing this.

That's partly because the whole concept has very little meaning. What do
you mean by "available memory"? Windows and Linux are both virtual memory
systems. The amount of RAM in your machine is irrelevant; the operating
system will just keep giving you more and more memory and rolling the old
stuff out to the swap file.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,183
Messages
2,570,966
Members
47,516
Latest member
ChrisHibbs

Latest Threads

Top