From owner-freebsd-questions Tue Mar 23 15:18: 4 1999 Delivered-To: freebsd-questions@freebsd.org Received: from bolero-x.rahul.net (bolero.rahul.net [192.160.13.1]) by hub.freebsd.org (Postfix) with SMTP id DF68A14C39 for ; Tue, 23 Mar 1999 15:18:02 -0800 (PST) (envelope-from dhesi@rahul.net) Received: from waltz.rahul.net by bolero-x.rahul.net with SMTP id AA21479 (5.67b8/IDA-1.5 for ); Tue, 23 Mar 1999 15:17:40 -0800 From: Rahul Dhesi Received: by waltz.rahul.net (5.67b8/jive-a2i-1.0) id AA25480; Tue, 23 Mar 1999 15:17:39 -0800 Date: Tue, 23 Mar 1999 15:17:39 -0800 Message-Id: <199903232317.AA25480@waltz.rahul.net> To: freebsd-questions@freebsd.org Subject: Re: Out of Swap Space hangs system References: X-Newsreader: NN version 6.5.1 (NOV) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Greg Black writes: >> > Is it normal for running out of swap space to hang the system? >> >> Unfortunately, yes. >Right, so far. >> It should not be, especially for a server OS. >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; } -- Rahul Dhesi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message