[SciPy-user] How to free unused memory by Python

william ratcliff william.ratcliff@gmail....
Mon Sep 3 08:35:31 CDT 2007


I never used it, but have you tried using valgrind?


Cheers,
William

On 9/3/07, massimo sandal <massimo.sandal@unibo.it> wrote:
>
> Anne Archibald ha scritto:
> > If it is memory exhaustion, all this business about "not freeing
> > memory back to the OS" is a red herring. No matter how old your
> > version of python and how little memory it ever releases back to the
> > OS, new objects will be allocated from the memory the python process
> > already has. If your process keeps growing indefinitely, that's not
> > malloc, that's your code keeping references to more and more data so
> > that it cannot be free()d. Perhaps look into tools for debugging
> > memory leaks in python?
>
> I'd love to find one. I have memory leaks here and there in my code (no
> doubt due to dangling references) but it is often damn hard to debug
> them. I asked on comp.lang.python but I found no useful answers. If you
> know of a memory debugging tool for python, let us know!
>
> m.
>
> --
> Massimo Sandal
> University of Bologna
> Department of Biochemistry "G.Moruzzi"
>
> snail mail:
> Via Irnerio 48, 40126 Bologna, Italy
>
> email:
> massimo.sandal@unibo.it
>
> tel: +39-051-2094388
> fax: +39-051-2094387
>
> _______________________________________________
> SciPy-user mailing list
> SciPy-user@scipy.org
> http://projects.scipy.org/mailman/listinfo/scipy-user
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20070903/734bf5c7/attachment.html 


More information about the SciPy-user mailing list