Date: Tue, 29 Jul 2003 23:42:51 -0400 (EDT) From: Jeff Roberson <jroberson@chesapeake.net> To: Tor.Egge@cvsup.no.freebsd.org Cc: current@freebsd.org Subject: Re: HEADSUP: UMA not reentrant / possible memory leak Message-ID: <20030729234117.U14210-100000@mail.chesapeake.net> In-Reply-To: <20030730012321I.tegge@cvsup.no.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 30 Jul 2003 Tor.Egge@cvsup.no.freebsd.org wrote: > > The indication of this is that the g_bio zone does not return to > > zero USED as it should. > > It looks like z->uz_cachefree is slightly out of date (updated in > zone_timout() every 20th second) and often too low (not taking the > z->uz_full_bucket list into account). > > The enclosed patch recalculates the number of free elements on the > buckets instead of using z->uz_cachefree. > I definitely like this patch. If it works would you please commit it? There are other issues for sure though. UMA can leak pages from zones when they are destroyed. I'm going to look into this asap. Cheers, Jeff
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030729234117.U14210-100000>