Date: Fri, 30 Sep 2022 02:04:06 GMT From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: d19687c97de4 - stable/13 - vm_overcommit: put into __read_mostly section Message-ID: <202209300204.28U2466c099037@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d19687c97de473e0841c4fb0cc4984be8a44292c commit d19687c97de473e0841c4fb0cc4984be8a44292c Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2022-09-13 10:00:12 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2022-09-30 00:29:09 +0000 vm_overcommit: put into __read_mostly section (cherry picked from commit ccdaa1ab1c5fec116d02cad37626d13fbdf77352) --- sys/vm/swap_pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 36d2bd0adf0e..67dc093f1e94 100644 --- a/sys/vm/swap_pager.c +++ b/sys/vm/swap_pager.c @@ -169,7 +169,7 @@ SYSCTL_PROC(_vm, OID_AUTO, swap_total, CTLTYPE_U64 | CTLFLAG_RD | CTLFLAG_MPSAFE &swap_total, 0, sysctl_page_shift, "A", "Total amount of available swap storage."); -int vm_overcommit = 0; +int vm_overcommit __read_mostly = 0; SYSCTL_INT(_vm, VM_OVERCOMMIT, overcommit, CTLFLAG_RW, &vm_overcommit, 0, "Configure virtual memory overcommit behavior. See tuning(7) " "for details.");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209300204.28U2466c099037>