From owner-cvs-src@FreeBSD.ORG Mon Nov 1 19:31:20 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5B52616A4F2 for ; Mon, 1 Nov 2004 19:31:20 +0000 (GMT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25ACC43D41 for ; Mon, 1 Nov 2004 19:31:20 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 6384 invoked from network); 1 Nov 2004 19:31:19 -0000 Received: from dsl027-160-063.atl1.dsl.speakeasy.net (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) encrypted SMTP for ; 1 Nov 2004 19:31:19 -0000 Received: from [10.50.41.235] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.12.11/8.12.11) with ESMTP id iA1JV42R061830; Mon, 1 Nov 2004 14:31:15 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: Alfred Perlstein Date: Mon, 1 Nov 2004 14:41:33 -0500 User-Agent: KMail/1.6.2 References: <200410311932.i9VJWvmo058193@repoman.freebsd.org> <20041101045331.GP16728@cs.rice.edu> <20041101105113.GS24892@elvis.mu.org> In-Reply-To: <20041101105113.GS24892@elvis.mu.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200411011441.33067.jhb@FreeBSD.org> X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on server.baldwin.cx cc: Alan Cox cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: Alan Cox cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/vm vm_zeroidle.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Nov 2004 19:31:20 -0000 On Monday 01 November 2004 05:51 am, Alfred Perlstein wrote: > * Alan Cox [041031 20:53] wrote: > > On Sun, Oct 31, 2004 at 07:13:17PM -0800, Alfred Perlstein wrote: > > > * Alan Cox [041031 11:33] wrote: > > > > alc 2004-10-31 19:32:57 UTC > > > > > > > > FreeBSD src repository > > > > > > > > Modified files: > > > > sys/vm vm_zeroidle.c > > > > Log: > > > > Introduce a Boolean variable wakeup_needed to avoid repeated, > > > > unnecessary calls to wakeup() by vm_page_zero_idle_wakeup(). > > > > > > > > Revision Changes Path > > > > 1.31 +9 -2 src/sys/vm/vm_zeroidle.c > > > > > > Why not switch to a cv? > > > > Calling cv_signal repeatedly would be no better than calling wakeup() > > repeatedly. Either way, a Boolean variable is desirable to prevent > > unnecessary calls. > > Yah, I figured there would be something in the cv code to optimize > the "no waiters" case. There is, though sometimes it might think there are waiters when there actually aren't any. -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org