From owner-cvs-src-old@FreeBSD.ORG Mon Aug 16 14:24:11 2010 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id EF8F91065694 for ; Mon, 16 Aug 2010 14:24:11 +0000 (UTC) (envelope-from andre@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id DD8908FC1A for ; Mon, 16 Aug 2010 14:24:11 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id o7GEOBaZ038525 for ; Mon, 16 Aug 2010 14:24:11 GMT (envelope-from andre@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id o7GEOBMi038524 for cvs-src-old@freebsd.org; Mon, 16 Aug 2010 14:24:11 GMT (envelope-from andre@repoman.freebsd.org) Message-Id: <201008161424.o7GEOBMi038524@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to andre@repoman.freebsd.org using -f From: Andre Oppermann Date: Mon, 16 Aug 2010 14:24:00 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/vm uma.h uma_core.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 14:24:12 -0000 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