PERFORCE change 188468 for review
Edward Tomasz Napierala
trasz at FreeBSD.org
Wed Feb 2 20:52:05 UTC 2011
http://p4web.freebsd.org/@@188468?ac=10
Change 188468 by trasz at trasz_victim on 2011/02/02 20:51:01
Fix misplaced goto target that could cause an infinite loop
and ifdef out debugging printf.
Affected files ...
.. //depot/projects/soc2009/trasz_limits/sys/vm/vm_pageout.c#26 edit
Differences ...
==== //depot/projects/soc2009/trasz_limits/sys/vm/vm_pageout.c#26 (text+ko) ====
@@ -1651,8 +1651,8 @@
* scan the processes for exceeding their rlimits or if
* process is swapped out -- deactivate pages
*/
+ tryagain = 0;
again:
- tryagain = 0;
sx_slock(&allproc_lock);
FOREACH_PROC_IN_SYSTEM(p) {
vm_pindex_t limit, size;
@@ -1738,8 +1738,10 @@
if (rsize > ravailable)
tryagain++;
if (tryagain > 20) {
+#if 0
printf("still too much: rsize = %ju, ravailable = %ju\n",
(uintmax_t)rsize, (uintmax_t)ravailable);
+#endif
tryagain = 0;
}
}
More information about the p4-projects
mailing list