svn commit: r249309 - head/sys/vm

Gleb Smirnoff glebius at FreeBSD.org
Tue Apr 9 15:15:53 UTC 2013


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 */
 };
 


More information about the svn-src-head mailing list