summaryrefslogtreecommitdiffstats
path: root/sys/vm
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2014-06-22 21:19:19 +0000
committermav <mav@FreeBSD.org>2014-06-22 21:19:19 +0000
commitc8436ca653b5b865a635c0c2e11757862ab7b1fe (patch)
tree5f76bd6e9ad4b9113745b1feadf3df5475893f1e /sys/vm
parentd2e570bf14cdc6de0348d6a29f0036bbce1f0a57 (diff)
downloadFreeBSD-src-c8436ca653b5b865a635c0c2e11757862ab7b1fe.zip
FreeBSD-src-c8436ca653b5b865a635c0c2e11757862ab7b1fe.tar.gz
MFC r267391:
Introduce new "256 Bucket" zone to split requests and reduce congestion on "128 Bucket" zone lock.
Diffstat (limited to 'sys/vm')
-rw-r--r--sys/vm/uma_core.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 8ff5826..0c28c18 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -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}
};
OpenPOWER on IntegriCloud