Date: Tue, 17 Aug 2010 10:50:27 +1000 From: Lawrence Stewart <lstewart@freebsd.org> To: Andre Oppermann <andre@FreeBSD.org> Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r211396 - head/sys/vm Message-ID: <4C69DCD3.6010707@freebsd.org> In-Reply-To: <201008161424.o7GEO0WV000794@svn.freebsd.org> References: <201008161424.o7GEO0WV000794@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 08/17/10 00:24, Andre Oppermann wrote: > Author: andre > Date: Mon Aug 16 14:24:00 2010 > New Revision: 211396 > URL: http://svn.freebsd.org/changeset/base/211396 > > Log: > Add uma_zone_get_max() to obtain the effective limit after a call > to uma_zone_set_max(). > > The UMA zone limit is not exactly set to the value supplied but > rounded up to completely fill the backing store increment (a page > normally). This can lead to surprising situations where the number > of elements allocated from UMA is higher than the supplied limit > value. The new get function reads back the effective value so that > the supplied limit value can be adjusted to the real limit. > > Reviewed by: jeffr > MFC after: 1 week Cool, thanks! Cheers, Lawrence
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4C69DCD3.6010707>