From owner-freebsd-smp Thu May 2 10:20: 3 2002 Delivered-To: freebsd-smp@freebsd.org Received: from mail.speakeasy.net (mail12.speakeasy.net [216.254.0.212]) by hub.freebsd.org (Postfix) with ESMTP id 623BE37B41D for ; Thu, 2 May 2002 10:19:41 -0700 (PDT) Received: (qmail 7850 invoked from network); 2 May 2002 17:19:40 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail12.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 2 May 2002 17:19:40 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g42HJeF08274; Thu, 2 May 2002 13:19:40 -0400 (EDT) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <3CD17167.96118A88@mindspring.com> Date: Thu, 02 May 2002 13:18:42 -0400 (EDT) From: John Baldwin To: Terry Lambert Subject: Re: hlt when idle? Cc: freebsd-smp@FreeBSD.org, Andrew Gallatin , Jonathan Mini Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On 02-May-2002 Terry Lambert wrote: > John Baldwin wrote: >> On 02-May-2002 Jonathan Mini wrote: >> > They're really proud of this solution, >> > because (they claim) it reduces contentions of clock-triggered events >> > across >> > processors. >> >> It probably does. > > It definitely does, provided you are guaranteed that the clock > interrupt handler can always execute in less time than the > interval between clock interrupts. Then you don't have to > contend on the global handler lock to ensure it only runs once. Well, with our current interrupts the foo_process() (should be foo_thread()) versions still need the global sched_lock to modify some flag fields and what not. (Some of this could be eliminated by splitting td_flags into two parts, one that needs the lock and one that doesn't.) Thus, if they all fire at once, even if it's broadcast they all contend with each other, wherease if they are broadcast but staggered such as on the alpha they don't in theory contend with each other at all. (Provided the handler is fast enough, which it should be.) > -- Terry -- 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-smp" in the body of the message