Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132597393
D26424.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
706 B
Referenced Files
None
Subscribers
None
D26424.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D26424: Increase the vm_default max_user_wired value.
Attached
Detach File
Event Timeline
Log In to Comment