2 ms·
Nice read, even though I haven't written any Python in a long time. Memory management in modern OSes is very complicated and there isn't a simple answer to "how
by hassy 11y ago
Nice read, even though I haven't written any Python in a long time. Memory management in modern OSes is very complicated and there isn't a simple answer to "how much memory is my process using exactly". [1] Memory growth / usage isn't usually something to worry about unless memory growth is constant under load and/or OOM killer kicks in.
Also consider that `heapy` will probably only report on objects created by your Python code, and not any memory taken up by native code in the interpreter itself or any shared libraries.
1. For example see:
- http://stackoverflow.com/questions/860878/tracking-actively-used-memory-in-linux-programs/872456 http://stackoverflow.com/questions/860878/tracking-actively-...
- https://mail.gnome.org/archives/gnome-list/1999-September/msg00036.html https://mail.gnome.org/archives/gnome-list/1999-September/ms...
- http://bmaurer.blogspot.co.uk/2006/03/memory-usage-with-smaps.html http://bmaurer.blogspot.co.uk/2006/03/memory-usage-with-smap...