From owner-freebsd-current@FreeBSD.ORG Wed Jun 14 18:40:36 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C759B16A41A; Wed, 14 Jun 2006 18:40:36 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from fw.zoral.com.ua (ll-227.216.82.212.sovam.net.ua [212.82.216.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id B329743D45; Wed, 14 Jun 2006 18:40:35 +0000 (GMT) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by fw.zoral.com.ua (8.13.4/8.13.4) with ESMTP id k5EIeRIv051413 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 14 Jun 2006 21:40:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.13.6/8.13.6) with ESMTP id k5EIeRlv078639; Wed, 14 Jun 2006 21:40:27 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.13.6/8.13.6/Submit) id k5EIeQJ8078620; Wed, 14 Jun 2006 21:40:26 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 14 Jun 2006 21:40:26 +0300 From: Kostik Belousov To: John Baldwin Message-ID: <20060614184026.GC86300@deviant.kiev.zoral.com.ua> References: <448FC3AF.9060606@bulinfo.net> <449048C7.6090109@FreeBSD.org> <20060614175352.GI28128@groat.ugcs.caltech.edu> <200606141358.47527.jhb@freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="/e2eDi0V/xtL+Mc8" Content-Disposition: inline In-Reply-To: <200606141358.47527.jhb@freebsd.org> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV version 0.88.2, clamav-milter version 0.88.2 on fw.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-0.1 required=5.0 tests=ALL_TRUSTED,SPF_NEUTRAL autolearn=failed version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on fw.zoral.com.ua Cc: Krassimir Slavchev , Paul Allen , Jason Evans , freebsd-current@freebsd.org Subject: Re: memory leak in free() X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2006 18:40:36 -0000 --/e2eDi0V/xtL+Mc8 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jun 14, 2006 at 01:58:46PM -0400, John Baldwin wrote: > On Wednesday 14 June 2006 13:53, Paul Allen wrote: > > From Jason Evans , Wed, Jun 14, 2006 at=20 > 10:35:03AM -0700: > > > This is on a 32-bit system, right? If so, what's happening is that t= he=20 > > > brk-managed space (data segment) is being fragmented, such that the= =20 > > > address space isn't returned to the OS. However, this is not really = a=20 > > > memory leak, since madvise() is called in order to let the kernel kno= w=20 > > > that the unused space need not be swapped out. > >=20 > > And in particular this should manifest itself as 'RES' declining but 'S= IZE' > > in top remaining unchanged. Until an over-commit hating individual man= ages > > to get a patch into the tree, this should not be a concern at all. >=20 > And any such patch would have to have a knob that defaulted to keeping > overcommit on anyway. :-) Ha ! Exactly. My patch has such knob :). Shameless plug: http://kostikbel.narod.ru/overcommit Testing the patch on recent CURRENT, I did notice that jemalloc really likes the swap :). --/e2eDi0V/xtL+Mc8 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFEkFgZC3+MBN1Mb4gRAhFeAKDju8oN1lpebW263VO0PxkfrkcNxQCgtktO /5+K3pIE+bXm88dJcyBZ9s0= =kPcQ -----END PGP SIGNATURE----- --/e2eDi0V/xtL+Mc8--