Date: Mon, 16 Aug 2010 14:24:00 +0000 (UTC) From: Andre Oppermann <andre@FreeBSD.org> To: cvs-src-old@freebsd.org Subject: cvs commit: src/sys/vm uma.h uma_core.c Message-ID: <201008161424.o7GEOBMi038524@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
andre 2010-08-16 14:24:00 UTC
FreeBSD src repository
Modified files:
sys/vm uma.h uma_core.c
Log:
SVN rev 211396 on 2010-08-16 14:24:00Z by andre
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
Revision Changes Path
1.36 +12 -0 src/sys/vm/uma.h
1.159 +18 -0 src/sys/vm/uma_core.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008161424.o7GEOBMi038524>
