]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r211396 (originally committed by andre):
authorlstewart <lstewart@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 6 Nov 2010 09:56:14 +0000 (09:56 +0000)
committerlstewart <lstewart@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Sat, 6 Nov 2010 09:56:14 +0000 (09:56 +0000)
commitfd0573bc390738a65c98603dd2415278d7b0b445
tree4a1294d55ba8e001d4288d310e058034f82c7d6f
parentc0b493dd9bc0c8821aaf43d2939cde14ae4eba0e
MFC r211396 (originally committed 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

git-svn-id: svn://svn.freebsd.org/base/stable/8@214861 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/vm/uma.h
sys/vm/uma_core.c