Date: Sun, 18 Jul 1999 12:21:56 -0700 (PDT) From: peter@holm.cc To: freebsd-gnats-submit@freebsd.org Subject: kern/12697: Out of swap handling [PATCH] Message-ID: <19990718192156.22B3714E50@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 12697 >Category: kern >Synopsis: Out of swap handling [PATCH] >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Jul 18 12:30:00 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Peter Holm >Release: Current >Organization: >Environment: FreeBSD current.risby.dk 4.0-CURRENT FreeBSD 4.0-CURRENT #15: Sat Jul 17 11:55:26 CEST 1999 pho@current.risby.dk:/usr/src/current/src/sys/compile/PHO i386 >Description: I have tested out of swap handling in current. The situation is that the system just lockes up, "looping" in vm_pageout_scan. I have experimented with some modifications to vm_pageout.c that seems to improve the chances for a recovery drastically. All tests were done on my 128Mb RAM / 256 Mb swap box. The changes consists of: * Killing all running user processes when less than 1024 pages swap left. * Sleeping after each kill to allow the user process to run. * Pausing the vmdaemon when in kill mode. I have tried different strategies for when to stop killing but only this one seems to guaranty recovery. >How-To-Repeat: >Fix: begin 644 patch M*BHJ('-Y<R]V;2]V;5]P86=E;W5T+F-^"5-U;B!*=6P@(#0@,3,Z-3,Z-#D@ M,3DY.0HM+2T@<WES+W9M+W9M7W!A9V5O=70N8PE3870@2G5L(#$W(#$S.C4Q M.C,Y(#$Y.3D**BHJ*BHJ*BHJ*BHJ*BHJ"BHJ*B`Q-30L,34Y("HJ*BH*+2TM M(#$U-"PQ-C(@+2TM+0H@('-T871I8R!I;G0@=FU?<W=A<%]I9&QE7V5N86)L M960],#L*("`C96YD:68*("`**R!S=&%T:6,@:6YT(&MI;&Q?;6]D92`](#`[ M"BL@<W1A=&EC('!I9%]T(&QA<W1?:VEL;&5D7W!I9"`](#`["BL@"B`@4UE3 M0U1,7TE.5"A?=FTL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EF9&5F($1) M4T=.3U-424,*("`)"0EP<FEN=&8H(G-W87!?<&%G97(Z(&]U="!O9B!S=V%P M('-P86-E7&XB*3L**R`C96YD:68*("`)"0ES=V%P7W!A9V5R7V%L;6]S=%]F M=6QL(#T@,3L*("`)"7T*("`)?2!E;'-E('L**BHJ*BHJ*BHJ*BHJ*BHJ"BHJ M*B`T-S`L-#<V("HJ*BH*+2TM(#0W,BPT.#`@+2TM+0H@(`H@(`EI9B`H*&)L M:R`](&)L:7-T7V%L;&]C*'-W87!B;&ES="P@;G!A9V5S*2D@/3T@4U=!4$), M2U].3TY%*2!["B`@"0EI9B`H<W=A<%]P86=E<E]F=6QL("$](#(I('L**R`C M:69D968@1$E!1TY/4U1)0PH@(`D)"7!R:6YT9B@B<W=A<%]P86=E<E]G971S M=V%P<W!A8V4Z(&9A:6QE9%QN(BD["BL@(V5N9&EF"B`@"0D)<W=A<%]P86=E M<E]F=6QL(#T@,CL*("`)"0ES=V%P7W!A9V5R7V%L;6]S=%]F=6QL(#T@,3L* &("`)"7T* ` end >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990718192156.22B3714E50>