From owner-cvs-all Sun Jul 8 0:26:45 2001 Delivered-To: cvs-all@freebsd.org Received: from peter3.wemm.org (c1315225-a.plstn1.sfba.home.com [65.0.135.147]) by hub.freebsd.org (Postfix) with ESMTP id A24B937B403; Sun, 8 Jul 2001 00:26:38 -0700 (PDT) (envelope-from peter@wemm.org) Received: from overcee.netplex.com.au (overcee.wemm.org [10.0.0.3]) by peter3.wemm.org (8.11.0/8.11.0) with ESMTP id f687QcM76749; Sun, 8 Jul 2001 00:26:38 -0700 (PDT) (envelope-from peter@wemm.org) Received: from wemm.org (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 64AED380F; Sun, 8 Jul 2001 00:26:38 -0700 (PDT) (envelope-from peter@wemm.org) X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Greg Lehey Cc: Alfred Perlstein , Matt Dillon , "Justin T. Gibbs" , John Baldwin , Jake Burkholder , cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, Matthew Jacob , Doug Rabson Subject: Re: cvs commit: src/sys/sys systm.h condvar.h src/sys/kern kern_ In-Reply-To: <20010708143050.X80862@wantadilla.lemis.com> Date: Sun, 08 Jul 2001 00:26:38 -0700 From: Peter Wemm Message-Id: <20010708072638.64AED380F@overcee.netplex.com.au> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Greg Lehey wrote: > On Saturday, 7 July 2001 at 21:13:44 -0500, Alfred Perlstein wrote: [..] > > 2) any processes it comes across that are swapped out are woken > > up. this is to avoid letting processes die, however it makes > > for a rude suprise especially when you have dozens of apache > > processes swapped out waiting on thier listening socket, it > > effectively causes much pain as thrashing starts and the > > machine goes down in a firery death. > > the solution is to implement a max on the number of swapped > > out processes that wakeup_one will swap in, and keep it somewhat > > low. > > Hmm. I hadn't noticed that before. We had run into it at work on a number of occasions. This is why we use wakeup_just_one() at Yahoo and dont use the broken freebsd wakeup_one() at all. Cheers, -Peter -- Peter Wemm - peter@FreeBSD.org; peter@yahoo-inc.com; peter@netplex.com.au "All of this is for nothing if we don't go to the stars" - JMS/B5 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message