From owner-svn-src-head@FreeBSD.ORG Tue Apr 9 15:15:53 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9D6869C5; Tue, 9 Apr 2013 15:15:53 +0000 (UTC) (envelope-from glebius@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 86480127; Tue, 9 Apr 2013 15:15:53 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r39FFr64043946; Tue, 9 Apr 2013 15:15:53 GMT (envelope-from glebius@svn.freebsd.org) Received: (from glebius@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r39FFq0V043945; Tue, 9 Apr 2013 15:15:52 GMT (envelope-from glebius@svn.freebsd.org) Message-Id: <201304091515.r39FFq0V043945@svn.freebsd.org> From: Gleb Smirnoff Date: Tue, 9 Apr 2013 15:15:52 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r249309 - head/sys/vm X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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, 09 Apr 2013 15:15:53 -0000 Author: glebius Date: Tue Apr 9 15:15:52 2013 New Revision: 249309 URL: http://svnweb.freebsd.org/changeset/base/249309 Log: Since now we support 256 items per slab, we need more bits for us_freecount. This grows uma_slab_head on 32-bit arches, but growth isn't significant. Taking kmem zones as example, only the 32 byte zone is affected, ipers is reduced from 113 to 112. In collaboration with: kib Modified: head/sys/vm/uma_int.h Modified: head/sys/vm/uma_int.h ============================================================================== --- head/sys/vm/uma_int.h Tue Apr 9 13:16:11 2013 (r249308) +++ head/sys/vm/uma_int.h Tue Apr 9 15:15:52 2013 (r249309) @@ -246,7 +246,7 @@ struct uma_slab_head { SLIST_ENTRY(uma_slab) us_hlink; /* Link for hash table */ u_int8_t *us_data; /* First item */ u_int8_t us_flags; /* Page flags see uma.h */ - u_int8_t us_freecount; /* How many are free? */ + u_int16_t us_freecount; /* How many are free? */ u_int8_t us_firstfree; /* First free item index */ };