From owner-freebsd-questions Wed Mar 24 16: 1:54 1999 Delivered-To: freebsd-questions@freebsd.org Received: from jig.ordway.org (jig.ordway.org [209.98.93.103]) by hub.freebsd.org (Postfix) with ESMTP id 5613E14C80 for ; Wed, 24 Mar 1999 16:01:51 -0800 (PST) (envelope-from cpalmer@jig.ordway.org) Received: from localhost (cpalmer@localhost) by jig.ordway.org (8.8.8/8.8.8) with ESMTP id SAA11558; Wed, 24 Mar 1999 18:01:28 -0600 (CST) (envelope-from cpalmer@jig.ordway.org) Date: Wed, 24 Mar 1999 18:01:28 -0600 (CST) From: Christopher Palmer To: Rahul Dhesi Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Out of Swap Space hangs system In-Reply-To: <199903232317.AA25480@waltz.rahul.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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. Christopher Palmer Assistant Systems Administrator, Ordway Music Theatre cpalmer@jig.ordway.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message