Python memory allocator: Free memory

Hye-Shik Chang hyeshik at gmail.com
Sat Oct 21 07:43:14 PDT 2006


On 10/20/06, Nguyen Tam Chinh <chinhngt at sectorb.msk.ru> wrote:
> Hello,
>
> I noticed that the free memory patch
> (http://sourceforge.net/tracker/index.php?func=detail&aid=1123430&group_id=5470&atid=305470)
> was included in Python-2.5 and it works well in Linux now.
> I built the Python-2.5 port today in FreeBSD (6.2-PRELENG, today ports
> tree) but the problem with free allocated memory still exist.
> Do you have any information about this case?
>

That works on FreeBSD by default.  But FreeBSD's malloc has
its own cache system similar to the pymalloc and it may hold
some amt of memory after it has been freed by pymalloc side.
Try some more allocation and deallocations then you can notice
that the arena-freeing malloc is working.

Hye-Shik


More information about the freebsd-python mailing list