PERFORCE change 182037 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Sat Aug 7 16:53:51 UTC 2010
http://p4web.freebsd.org/@@182037?ac=10
Change 182037 by trasz at trasz_victim on 2010/08/07 16:53:34
When containers are enabled, run pagedaemon at least every second
to recompute RSS.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/TODO#25 edit
.. //depot/projects/soc2009/trasz_limits/sys/vm/vm_pageout.c#12 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/TODO#25 (text+ko) ====
@@ -62,8 +62,6 @@
container mechanism. This is a part of HRL, and it's outside the scope
of the containers project. This means the code is full of "#ifdef CONTAINERS".
- - RSS is accounted for only when pagedaemon is running, i.e. when memory shortage occurs.
-
- Don't account resources for system processes. It's not as easy as checking
for P_SYSTEM flag, as the flag will be set for AIO kernel processes.
==== //depot/projects/soc2009/trasz_limits/sys/vm/vm_pageout.c#12 (text+ko) ====
@@ -1627,7 +1627,11 @@
while (TRUE) {
mtx_lock(&vm_daemon_mtx);
+#ifdef CONTAINERS
+ msleep(&vm_daemon_needed, &vm_daemon_mtx, PPAUSE, "psleep", hz);
+#else
msleep(&vm_daemon_needed, &vm_daemon_mtx, PPAUSE, "psleep", 0);
+#endif
swapout_flags = vm_pageout_req_swapout;
vm_pageout_req_swapout = 0;
mtx_unlock(&vm_daemon_mtx);
More information about the p4-projects
mailing list