Re: HEADSUP: UMA not reentrant / possible memory leak

From: <Tor.Egge_at_cvsup.no.freebsd.org>
Date: Wed, 30 Jul 2003 01:23:21 GMT
> 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.

- Tor Egge


Received on Tue Jul 29 2003 - 16:23:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:17 UTC