aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Smirnoff <glebius@FreeBSD.org>2020-01-10 19:32:08 +0000
committerGleb Smirnoff <glebius@FreeBSD.org>2020-01-10 19:32:08 +0000
commit9328cbc047a607ed479c15720b3e881944af9e56 (patch)
tree12fc8cff7c8a0e749bbf77d3dda9cfb0d297c2ee
parentca4387843e0a61599446f6aa63102c7717016e7b (diff)
Notes
-rw-r--r--sys/vm/vm_page.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/vm/vm_page.c b/sys/vm/vm_page.c
index 2425d8e5a4f8a..1c6a1515e0472 100644
--- a/sys/vm/vm_page.c
+++ b/sys/vm/vm_page.c
@@ -228,7 +228,8 @@ vm_page_init_cache_zones(void *dummy __unused)
int cache, domain, maxcache, pool;
maxcache = 0;
- TUNABLE_INT_FETCH("vm.pgcache_zone_max", &maxcache);
+ TUNABLE_INT_FETCH("vm.pgcache_zone_max_pcpu", &maxcache);
+ maxcache *= mp_ncpus;
for (domain = 0; domain < vm_ndomains; domain++) {
vmd = VM_DOMAIN(domain);
for (pool = 0; pool < VM_NFREEPOOL; pool++) {