From owner-freebsd-ia64 Tue Feb 13 0:44:44 2001 Delivered-To: freebsd-ia64@freebsd.org Received: from io.rchrd1.on.wave.home.com (cr66388-a.rchrd1.on.wave.home.com [24.114.165.24]) by hub.freebsd.org (Postfix) with ESMTP id 9DC7E37B503; Tue, 13 Feb 2001 00:44:41 -0800 (PST) Received: from io.rchrd1.on.wave.home.com (localhost [127.0.0.1]) by io.rchrd1.on.wave.home.com (Postfix) with ESMTP id B335DBABD; Tue, 13 Feb 2001 01:43:02 -0500 (EST) X-Mailer: exmh version 2.2 06/23/2000 with nmh-1.0.3 To: freebsd-alpha@FreeBSD.ORG Cc: freebsd-ia64@freebsd.org Subject: new runq code was Re: HEADS UP ... In-Reply-To: Your message of "Sun, 11 Feb 2001 19:28:20 EST." <20010212002820.84796BABD@cr66388-a.rchrd1.on.wave.home.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 13 Feb 2001 01:43:02 -0500 From: Jake Burkholder Message-Id: <20010213064302.B335DBABD@io.rchrd1.on.wave.home.com> Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Another thing I forgot to mention about this is that I tried to allow for using a 64 bit status word for keeping track of the run queues. The way it works is that we have some power of 2 number of run queues, and bit array to keep track of which has processes on it; a set bit means non-empty. (same as the old run queue code, just generalized) If its better for some archs it should be possible to have a machine/runq.h which uses some number of 64 bit words for the bit array, rather than 32 bits. The rqb_word_t type would be u_int64_t, there's a RQB_FFS() macro that can be defined to ffs64() etc. Might be worth thinking about if you're looking to optimize. Jake To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ia64" in the body of the message