<br><br><div class="gmail_quote">On Sun, May 22, 2011 at 6:27 AM, Jeffrey Spencer <span dir="ltr"><<a href="mailto:jeffspencerd@gmail.com">jeffspencerd@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I have had issues with Linux (Ubuntu 10.04 x86_64) not releasing memory<br>
back to the OS. I have code here the exhibits the issue:<br>
<br>
<a href="http://stackoverflow.com/questions/5975255/memory-allocated-to-python-in-the-os-is-never-released-back-in-linux-even-after-g" target="_blank">http://stackoverflow.com/questions/5975255/memory-allocated-to-python-in-the-os-is-never-released-back-in-linux-even-after-g</a><br>

<br></blockquote><div>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.<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">

Then I read at <a href="http://pushingtheweb.com/2010/06/python-and-tcmalloc/" target="_blank">http://pushingtheweb.com/2010/06/python-and-tcmalloc/</a><br>
that this was a problem fixed by compiling your own version of Python<br>
using the TCMalloc library which I have now done. </blockquote><div><br>Funny how such a thing never comes up, and then twice in three days:)<br><a href="http://thread.gmane.org/gmane.comp.python.numeric.general/43965">http://thread.gmane.org/gmane.comp.python.numeric.general/43965</a><br>
<br>Ralf<br> <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">The issue is still<br>
exhibited so I was keen to know if possibly it was because numpy is<br>
compiled and linked to the default memory management library (not sure<br>
if this is true or how this works but would I also need to compile numpy<br>
linked to the TCMalloc library). Let me know if anyone has any insight<br>
on this issue. Or if it isn't related to numpy at all.<br>
<br>
<br>
--<br>
______________________________________________________<br>
Jeffrey Spencer<br>
Department of Electronics and Electrical Engineering<br>
Nonlinear Signal Processing Group<br>
The University of Melbourne<br>
<a href="mailto:jeffspencerd@gmail.com">jeffspencerd@gmail.com</a><br>
(Mob.) 044 991 7726<br>
<br>
<br>
_______________________________________________<br>
NumPy-Discussion mailing list<br>
<a href="mailto:NumPy-Discussion@scipy.org">NumPy-Discussion@scipy.org</a><br>
<a href="http://mail.scipy.org/mailman/listinfo/numpy-discussion" target="_blank">http://mail.scipy.org/mailman/listinfo/numpy-discussion</a><br>
</blockquote></div><br>