mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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
This commit is contained in:
parent
a6cc4c6e98
commit
ccdaa1ab1c
1 changed files with 1 additions and 1 deletions
|
|
@ -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.");
|
||||
|
|
|
|||
Loading…
Reference in a new issue