Date: Wed, 24 Mar 1999 18:49:30 -0800 From: Rahul Dhesi <dhesi@rahul.net> To: freebsd-questions@freebsd.org Subject: Re: Out of Swap Space hangs system Message-ID: <199903250249.AA16939@waltz.rahul.net> References: <freebsd-questions.Pine.BSF.4.10.9903241800370.2536-100000@jig.ordway.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Christopher Palmer <cpalmer@jig.ordway.org> writes: >On Tue, 23 Mar 1999, Rahul Dhesi wrote: >> >By all means provide an algorithm to solve it, if it concerns >> >you. I think you'll find it's non-trivial. >> >> Here's one possible algorithm, in pseudo-perl: >> >> for $pid (@all_active_pids) { >> $critical_system_process{$pid} && next; >> &kill($pid); >> &got_enough_swap() && last; >> } >That's a workaround, not a solution. Limiting the amount of virtual >memory users are alotted is an already-implemented workaround. I don't mind if you call it a 'workaround'. I only claim that it an 'algorithm'. And it achieves the objective of breaking deadlock and preventing the system from hanging or panicking. -- Rahul Dhesi <dhesi@spams.r.us.com> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903250249.AA16939>