diff options
author | alc <alc@FreeBSD.org> | 2007-11-23 00:30:19 +0000 |
---|---|---|
committer | alc <alc@FreeBSD.org> | 2007-11-23 00:30:19 +0000 |
commit | 35af042efcea6eebcea6bcdb67d509b4d8f54810 (patch) | |
tree | f1f5663ea98c29c03e31002d2ae1aa23fa4ee9db | |
parent | 0aec4e0b506e5c497afd67081c3f0e3ab21317c0 (diff) | |
download | FreeBSD-src-35af042efcea6eebcea6bcdb67d509b4d8f54810.zip FreeBSD-src-35af042efcea6eebcea6bcdb67d509b4d8f54810.tar.gz |
Add a read/write sysctl for reconfiguring the maximum number of physical
pages that can be wired.
Submitted by: Eugene Grosbein
PR: 114654
MFC after: 6 weeks
-rw-r--r-- | sys/vm/vm_pageout.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/vm/vm_pageout.c b/sys/vm/vm_pageout.c index 2c26727..d21277b 100644 --- a/sys/vm/vm_pageout.c +++ b/sys/vm/vm_pageout.c @@ -206,6 +206,8 @@ SYSCTL_INT(_vm, OID_AUTO, pageout_lock_miss, int vm_pageout_page_count = VM_PAGEOUT_PAGE_COUNT; int vm_page_max_wired; /* XXX max # of wired pages system-wide */ +SYSCTL_INT(_vm, OID_AUTO, max_wired, + CTLFLAG_RW, &vm_page_max_wired, 0, "System-wide limit to wired page count"); #if !defined(NO_SWAPPING) static void vm_pageout_map_deactivate_pages(vm_map_t, long); |