Date: Wed, 2 Feb 2011 20:52:04 GMT From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 188468 for review Message-ID: <201102022052.p12Kq4Cg032328@skunkworks.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://p4web.freebsd.org/@@188468?ac=10 Change 188468 by trasz@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; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201102022052.p12Kq4Cg032328>