summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2013-11-19 10:10:44 +0000
committermav <mav@FreeBSD.org>2013-11-19 10:10:44 +0000
commit3e43d6e71a200cf40394cebc1390d3a840d5049f (patch)
treeea3bc7cc4407790d193d1701905d2e4c377b4f8a /sys/vm
parentbdb3c9c41b08909bb3c3c198c3f00076446f04e0 (diff)
downloadFreeBSD-src-3e43d6e71a200cf40394cebc1390d3a840d5049f.zip
FreeBSD-src-3e43d6e71a200cf40394cebc1390d3a840d5049f.tar.gz
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.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/uma_core.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 8710f95..6f816b2 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -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 },
OpenPOWER on IntegriCloud