From ccdaa1ab1c5fec116d02cad37626d13fbdf77352 Mon Sep 17 00:00:00 2001 From: Konstantin Belousov Date: Tue, 13 Sep 2022 13:00:12 +0300 Subject: vm_overcommit: put into __read_mostly section Suggested by: mjg Reviewed by: brooks, imp (previous version) Discussed with: markj Sponsored by: The FreeBSD Foundation MFC after: 2 weeks Differential revision: https://reviews.freebsd.org/D36540 --- sys/vm/swap_pager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/vm') diff --git a/sys/vm/swap_pager.c b/sys/vm/swap_pager.c index 071296ad6443..d71d2ff27e6a 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, "QU", "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."); -- cgit v1.2.3