From owner-freebsd-current@FreeBSD.ORG Thu Jul 10 15:29:13 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 523CA37B401 for ; Thu, 10 Jul 2003 15:29:13 -0700 (PDT) Received: from ns1.xcllnt.net (209-128-86-226.BAYAREA.NET [209.128.86.226]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9E21B43FDF for ; Thu, 10 Jul 2003 15:29:12 -0700 (PDT) (envelope-from marcel@xcllnt.net) Received: from ns1.xcllnt.net (localhost [127.0.0.1]) by ns1.xcllnt.net (8.12.9/8.12.9) with ESMTP id h6AMSev1049390; Thu, 10 Jul 2003 15:28:40 -0700 (PDT) (envelope-from marcel@ns1.xcllnt.net) Received: (from marcel@localhost) by ns1.xcllnt.net (8.12.9/8.12.9/Submit) id h6AMSdVw049389; Thu, 10 Jul 2003 15:28:39 -0700 (PDT) (envelope-from marcel) Date: Thu, 10 Jul 2003 15:28:39 -0700 From: Marcel Moolenaar To: Julian Elischer Message-ID: <20030710222839.GA49321@ns1.xcllnt.net> References: <20030710214339.GA48547@ns1.xcllnt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.1i cc: FreeBSD current users Subject: Re: small scheduler hack/patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 22:29:13 -0000 On Thu, Jul 10, 2003 at 03:03:41PM -0700, Julian Elischer wrote: > > it comes I think from the fact that some hardware treats things as > bitmaps. (?) I have to guess that a bitmap is a natural way to represent sets when the sets aren't large and that this is why we use bitmaps. We have a need to send an IPI to multiple CPUs, which is expressed nicely with bitmaps. > there are lots of cases where the code is doing > foreach cpu > if (cpu->mask & our_mask) > continue; /* skip ourself */ > > > which could easly be > if (cpu->number == PCPU_GET(cpu_number)) Agreed. -- Marcel Moolenaar USPA: A-39004 marcel@xcllnt.net