svn commit: r356611 - head/sys/vm
Gleb Smirnoff
glebius at FreeBSD.org
Fri Jan 10 19:32:09 UTC 2020
Author: glebius
Date: Fri Jan 10 19:32:08 2020
New Revision: 356611
URL: https://svnweb.freebsd.org/changeset/base/356611
Log:
Always multiple vm.pgcache_zone_max to number of CPUs, and rename it
respectively. The tunable controls how big is the size of per-cpu
vm page cache. Previously the value was split for all CPUs in system,
so configuring same value on machines with different count of CPUs
yielded in different cache size available to a particular CPU.
Reviewed by: markj
Obtained from: Netflix
Modified:
head/sys/vm/vm_page.c
Modified: head/sys/vm/vm_page.c
==============================================================================
--- head/sys/vm/vm_page.c Fri Jan 10 18:53:14 2020 (r356610)
+++ head/sys/vm/vm_page.c Fri Jan 10 19:32:08 2020 (r356611)
@@ -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++) {
More information about the svn-src-head
mailing list