From owner-freebsd-python@FreeBSD.ORG Sat Oct 21 14:43:14 2006 Return-Path: X-Original-To: freebsd-python@freebsd.org Delivered-To: freebsd-python@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 61DF216A4A0 for ; Sat, 21 Oct 2006 14:43:14 +0000 (UTC) (envelope-from hyeshik@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.173]) by mx1.FreeBSD.org (Postfix) with ESMTP id 63D5B43D62 for ; Sat, 21 Oct 2006 14:43:07 +0000 (GMT) (envelope-from hyeshik@gmail.com) Received: by ug-out-1314.google.com with SMTP id m2so857776uge for ; Sat, 21 Oct 2006 07:43:06 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ie4U9eEujB3OnGK/QibmCnkQJWTLl32Zm3fSh49HRJqhnDtDpb6L+aq38Owjdcmdiw2J9cVia/lsGeBFrb1F3jwHKOEnpWXd/LnH62IjNUpH8exiPxAQXOSnJqGQ+dg32OgXOYFhrc+lAc3C9daKUEHjOGUuVjRyiHJ18RFcEiI= Received: by 10.66.220.17 with SMTP id s17mr3857262ugg; Sat, 21 Oct 2006 07:43:06 -0700 (PDT) Received: by 10.67.40.18 with HTTP; Sat, 21 Oct 2006 07:43:06 -0700 (PDT) Message-ID: <4f0b69dc0610210743m56a9dd6bg4c22d0fa978614a7@mail.gmail.com> Date: Sat, 21 Oct 2006 23:43:06 +0900 From: "Hye-Shik Chang" To: "Nguyen Tam Chinh" In-Reply-To: <20061019213339.R953@it.hackers> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20061019213339.R953@it.hackers> Cc: freebsd-python@freebsd.org Subject: Re: Python memory allocator: Free memory X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Oct 2006 14:43:14 -0000 On 10/20/06, Nguyen Tam Chinh 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