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
This commit is contained in:
Alan Cox 2007-11-23 00:30:19 +00:00
parent dba0fd308e
commit 5dfc28704d

View File

@ -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);