[Numpy-discussion] Python memory management issues using Linux. Maybe Numpy related.

Ralf Gommers ralf.gommers at googlemail.com
Sun May 22 07:15:11 EDT 2011

On Sun, May 22, 2011 at 6:27 AM, Jeffrey Spencer <jeffspencerd at gmail.com>wrote:

> I have had issues with Linux (Ubuntu 10.04 x86_64) not releasing memory
> back to the OS. I have code here the exhibits the issue:
> http://stackoverflow.com/questions/5975255/memory-allocated-to-python-in-the-os-is-never-released-back-in-linux-even-after-g
> Can you post an actual example that shows your issue? That code doesn't do
anything - it only imports some libraries and defines a class which is not
even instantiated.

> Then I read at http://pushingtheweb.com/2010/06/python-and-tcmalloc/
> that this was a problem fixed by compiling your own version of Python
> using the TCMalloc library which I have now done.

Funny how such a thing never comes up, and then twice in three days:)


> The issue is still
> exhibited so I was keen to know if possibly it was because numpy is
> compiled and linked to the default memory management library (not sure
> if this is true or how this works but would I also need to compile numpy
> linked to the TCMalloc library). Let me know if anyone has any insight
> on this issue. Or if it isn't related to numpy at all.
> --
> ______________________________________________________
> Jeffrey Spencer
> Department of Electronics and Electrical Engineering
> Nonlinear Signal Processing Group
> The University of Melbourne
> jeffspencerd at gmail.com
> (Mob.) 044 991 7726
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20110522/df5f72f5/attachment.html>

More information about the NumPy-Discussion mailing list