Date: Tue, 23 Mar 1999 15:17:39 -0800 From: Rahul Dhesi <dhesi@rahul.net> To: freebsd-questions@freebsd.org Subject: Re: Out of Swap Space hangs system Message-ID: <199903232317.AA25480@waltz.rahul.net> References: <freebsd-questions.19990323211859.16523.qmail@alpha.comkey.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Greg Black <gjb@comkey.com.au> 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 <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?199903232317.AA25480>
