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

Alexander Motin mav at FreeBSD.org
Sat Jan 4 23:37:02 UTC 2014


Author: mav
Date: Sat Jan  4 23:37:01 2014
New Revision: 260301
URL: http://svnweb.freebsd.org/changeset/base/260301

Log:
  MFC r258337:
  Add two new UMA bucket zones to store 3 and 9 items per bucket.
  
  These new buckets make bucket size self-tuning more soft and precise.
  Without them there are buckets for 1, 5, 13, 29, ... items.  While at
  bigger sizes difference about 2x is fine, at smallest ones it is 5x and
  2.6x respectively.  New buckets make that line look like 1, 3, 5, 9, 13,
  29, reducing jumps between steps, making algorithm work softer, allocating
  and freeing memory in better fitting chunks.  Otherwise there is quite a
  big gap between allocating 128K and 5x128K of RAM at once.

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	Sat Jan  4 23:35:34 2014	(r260300)
+++ stable/10/sys/vm/uma_core.c	Sat Jan  4 23:37:01 2014	(r260301)
@@ -207,7 +207,9 @@ struct uma_bucket_zone {
 
 struct uma_bucket_zone bucket_zones[] = {
 	{ NULL, "4 Bucket", BUCKET_SIZE(4), 4096 },
+	{ NULL, "6 Bucket", BUCKET_SIZE(6), 3072 },
 	{ NULL, "8 Bucket", BUCKET_SIZE(8), 2048 },
+	{ NULL, "12 Bucket", BUCKET_SIZE(12), 1536 },
 	{ NULL, "16 Bucket", BUCKET_SIZE(16), 1024 },
 	{ NULL, "32 Bucket", BUCKET_SIZE(32), 512 },
 	{ NULL, "64 Bucket", BUCKET_SIZE(64), 256 },


More information about the svn-src-all mailing list