Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107569355
D22038.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
997 B
Referenced Files
None
Subscribers
None
D22038.diff
View Options
diff --git a/sys/vm/vm_swapout.c b/sys/vm/vm_swapout.c
--- a/sys/vm/vm_swapout.c
+++ b/sys/vm/vm_swapout.c
@@ -153,6 +153,11 @@
&swap_idle_threshold2, 0,
"Time before a process will be swapped out");
+static int vm_daemon_timeout = 0;
+SYSCTL_INT(_vm, OID_AUTO, vmdaemon_timeout, CTLFLAG_RW,
+ &vm_daemon_timeout, 0,
+ "Time between vmdaemon runs");
+
static int vm_pageout_req_swapout; /* XXX */
static int vm_daemon_needed;
static struct mtx vm_daemon_mtx;
@@ -374,17 +379,15 @@
int breakout, swapout_flags, tryagain, attempts;
#ifdef RACCT
uint64_t rsize, ravailable;
+
+ if (racct_enable && vm_daemon_timeout == 0)
+ vm_daemon_timeout = hz;
#endif
while (TRUE) {
mtx_lock(&vm_daemon_mtx);
msleep(&vm_daemon_needed, &vm_daemon_mtx, PPAUSE, "psleep",
-#ifdef RACCT
- racct_enable ? hz : 0
-#else
- 0
-#endif
- );
+ vm_daemon_timeout);
swapout_flags = vm_pageout_req_swapout;
vm_pageout_req_swapout = 0;
mtx_unlock(&vm_daemon_mtx);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Jan 17, 12:50 AM (19 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15831329
Default Alt Text
D22038.diff (997 B)
Attached To
Mode
D22038: Make vmdaemon timeout configurable
Attached
Detach File
Event Timeline
Log In to Comment