Page MenuHomeFreeBSD

D26424.diff
No OneTemporary

D26424.diff

Index: head/sys/vm/vm_pageout.c
===================================================================
--- head/sys/vm/vm_pageout.c
+++ head/sys/vm/vm_pageout.c
@@ -2295,7 +2295,7 @@
static void
vm_pageout_init(void)
{
- u_int freecount;
+ u_long freecount;
int i;
/*
@@ -2328,8 +2328,13 @@
if (vm_pageout_update_period == 0)
vm_pageout_update_period = 600;
+ /*
+ * Set the maximum number of user-wired virtual pages. Historically the
+ * main source of such pages was mlock(2) and mlockall(2). Hypervisors
+ * may also request user-wired memory.
+ */
if (vm_page_max_user_wired == 0)
- vm_page_max_user_wired = freecount / 3;
+ vm_page_max_user_wired = 4 * freecount / 5;
}
/*

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 19, 7:12 AM (2 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
23915525
Default Alt Text
D26424.diff (706 B)

Event Timeline