summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoralc <alc@FreeBSD.org>2007-11-23 00:30:19 +0000
committeralc <alc@FreeBSD.org>2007-11-23 00:30:19 +0000
commit35af042efcea6eebcea6bcdb67d509b4d8f54810 (patch)
treef1f5663ea98c29c03e31002d2ae1aa23fa4ee9db
parent0aec4e0b506e5c497afd67081c3f0e3ab21317c0 (diff)
downloadFreeBSD-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.c2
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);
OpenPOWER on IntegriCloud