From owner-svn-src-head@FreeBSD.ORG Tue Aug 17 00:50:32 2010 Return-Path: Delivered-To: svn-src-head@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D0BB81065695; Tue, 17 Aug 2010 00:50:32 +0000 (UTC) (envelope-from lstewart@freebsd.org) Received: from lauren.room52.net (lauren.room52.net [210.50.193.198]) by mx1.freebsd.org (Postfix) with ESMTP id 8E0A48FC16; Tue, 17 Aug 2010 00:50:32 +0000 (UTC) Received: from lawrence1.loshell.room52.net (ppp59-167-184-191.static.internode.on.net [59.167.184.191]) by lauren.room52.net (Postfix) with ESMTPSA id D83337E8A1; Tue, 17 Aug 2010 10:50:30 +1000 (EST) Message-ID: <4C69DCD3.6010707@freebsd.org> Date: Tue, 17 Aug 2010 10:50:27 +1000 From: Lawrence Stewart User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-AU; rv:1.9.2.8) Gecko/20100810 Lightning/1.0b2 Thunderbird/3.1.2 MIME-Version: 1.0 To: Andre Oppermann References: <201008161424.o7GEO0WV000794@svn.freebsd.org> In-Reply-To: <201008161424.o7GEO0WV000794@svn.freebsd.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on lauren.room52.net Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org Subject: Re: svn commit: r211396 - head/sys/vm X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2010 00:50:32 -0000 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