svn commit: r267751 - stable/10/sys/vm

Alexander Motin mav at FreeBSD.org
Sun Jun 22 21:19:20 UTC 2014


Author: mav
Date: Sun Jun 22 21:19:19 2014
New Revision: 267751
URL: http://svnweb.freebsd.org/changeset/base/267751

Log:
  MFC r267391:
  Introduce new "256 Bucket" zone to split requests and reduce congestion
  on "128 Bucket" zone lock.

Modified:
  stable/10/sys/vm/uma_core.c
Directory Properties:
  stable/10/   (props changed)

Modified: stable/10/sys/vm/uma_core.c
==============================================================================
--- stable/10/sys/vm/uma_core.c	Sun Jun 22 21:18:24 2014	(r267750)
+++ stable/10/sys/vm/uma_core.c	Sun Jun 22 21:19:19 2014	(r267751)
@@ -205,7 +205,7 @@ struct uma_bucket_zone {
 #define	BUCKET_SIZE(n)						\
     (((sizeof(void *) * (n)) - sizeof(struct uma_bucket)) / sizeof(void *))
 
-#define	BUCKET_MAX	BUCKET_SIZE(128)
+#define	BUCKET_MAX	BUCKET_SIZE(256)
 
 struct uma_bucket_zone bucket_zones[] = {
 	{ NULL, "4 Bucket", BUCKET_SIZE(4), 4096 },
@@ -216,6 +216,7 @@ struct uma_bucket_zone bucket_zones[] = 
 	{ NULL, "32 Bucket", BUCKET_SIZE(32), 512 },
 	{ NULL, "64 Bucket", BUCKET_SIZE(64), 256 },
 	{ NULL, "128 Bucket", BUCKET_SIZE(128), 128 },
+	{ NULL, "256 Bucket", BUCKET_SIZE(256), 64 },
 	{ NULL, NULL, 0}
 };
 


More information about the svn-src-stable mailing list