Date: Fri, 14 Aug 2020 18:48:48 +0000 (UTC) From: Conrad Meyer <cem@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r364237 - head/sys/vm Message-ID: <202008141848.07EImmH5090650@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: cem Date: Fri Aug 14 18:48:48 2020 New Revision: 364237 URL: https://svnweb.freebsd.org/changeset/base/364237 Log: vm_pageout: Correct threshold calculation on single-CPU systems Reported by: Michael Butler X-MFC-With: r364129 Modified: head/sys/vm/vm_pageout.c Modified: head/sys/vm/vm_pageout.c ============================================================================== --- head/sys/vm/vm_pageout.c Fri Aug 14 16:44:10 2020 (r364236) +++ head/sys/vm/vm_pageout.c Fri Aug 14 18:48:48 2020 (r364237) @@ -2216,7 +2216,7 @@ get_pageout_threads_per_domain(void) * Semi-arbitrarily constrain pagedaemon threads to less than half the * total number of threads in the system as an insane upper limit. */ - half_cpus_per_dom = (mp_ncpus / vm_ndomains) / 2; + half_cpus_per_dom = howmany(mp_ncpus / vm_ndomains, 2); if (pageout_threads_per_domain < 1) { printf("Invalid tuneable vm.pageout_threads_per_domain value: "
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202008141848.07EImmH5090650>