Closed GoogleCodeExporter closed 8 years ago
psutil.phymem_usage() is deprecated. You should use psutil.virtual_memory()
instead.
After you did that try this script:
https://code.google.com/p/psutil/source/browse/examples/free.py
It will provide the same results as free cli utility.
Closing this out as invalid.
Side note: next time please use the mailing list.
Original comment by g.rodola
on 17 Jun 2013 at 5:00
My apologies - I did read that phymem_usage() was deprecated. Using
psutil.virtual_memory() works fine and reports the same on both Ubuntu 11.04
and CentOS 6.4.
Thanks,
-Frank
Original comment by frank.pl...@gmail.com
on 17 Jun 2013 at 6:10
No worries. ;)
Original comment by g.rodola
on 17 Jun 2013 at 6:11
Original issue reported on code.google.com by
frank.pl...@gmail.com
on 17 Jun 2013 at 4:55