Date: Wed, 14 Jun 2006 21:40:26 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: John Baldwin <jhb@freebsd.org> Cc: Krassimir Slavchev <krassi@bulinfo.net>, Paul Allen <nospam@ugcs.caltech.edu>, Jason Evans <jasone@freebsd.org>, freebsd-current@freebsd.org Subject: Re: memory leak in free() Message-ID: <20060614184026.GC86300@deviant.kiev.zoral.com.ua> In-Reply-To: <200606141358.47527.jhb@freebsd.org> References: <448FC3AF.9060606@bulinfo.net> <449048C7.6090109@FreeBSD.org> <20060614175352.GI28128@groat.ugcs.caltech.edu> <200606141358.47527.jhb@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--/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 <jasone@freebsd.org>, 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060614184026.GC86300>