Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2013 15:15:52 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r249309 - head/sys/vm
Message-ID:  <201304091515.r39FFq0V043945@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */
 };
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201304091515.r39FFq0V043945>