Date: Fri, 10 Jan 2020 19:32:08 +0000 (UTC) From: Gleb Smirnoff <glebius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r356611 - head/sys/vm Message-ID: <202001101932.00AJW8vW095245@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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++) {
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202001101932.00AJW8vW095245>