From owner-freebsd-current Wed Nov 28 10:15:53 2001 Delivered-To: freebsd-current@freebsd.org Received: from mail12.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id B467537B416 for ; Wed, 28 Nov 2001 10:15:48 -0800 (PST) Received: (qmail 24550 invoked from network); 28 Nov 2001 18:15:46 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 28 Nov 2001 18:15:46 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20011128184046.O2102-100000@gamplex.bde.org> Date: Wed, 28 Nov 2001 10:15:35 -0800 (PST) From: John Baldwin To: Bruce Evans Subject: Re: where is the idle_loop in current ? Cc: current@FreeBSD.ORG, Luigi Rizzo Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 28-Nov-01 Bruce Evans wrote: > On Mon, 26 Nov 2001, John Baldwin wrote: > >> We don't do preemption in the kernel yet, so they need to yield the CPU when >> another thread is available. The page zeroing thread does this wrong as it >> should check procrunnable() instead of switching after doing N pages. The >> idle > > Except it would always find at least itself runnable :-). No b/c it isn't on the runqueue when it does the check. :) Nor is the default idle loop ever on the runqueues. > Bruce -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message