Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S263135AbUCSWwp (ORCPT ); Fri, 19 Mar 2004 17:52:45 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S263138AbUCSWwp (ORCPT ); Fri, 19 Mar 2004 17:52:45 -0500 Received: from e31.co.us.ibm.com ([32.97.110.129]:4535 "EHLO e31.co.us.ibm.com") by vger.kernel.org with ESMTP id S263135AbUCSWwo (ORCPT ); Fri, 19 Mar 2004 17:52:44 -0500 Subject: Re: [PATCH] Introduce nodemask_t ADT [0/7] From: Matthew Dobson Reply-To: colpatch@us.ibm.com To: Paul Jackson Cc: LKML , "Martin J. Bligh" , akpm@osdl.org, William Lee Irwin III , Dave Hansen , hch@infradead.org In-Reply-To: <20040318174540.700917ea.pj@sgi.com> References: <1079651064.8149.158.camel@arrakis> <20040318165957.592e49d3.pj@sgi.com> <1079659184.8149.355.camel@arrakis> <20040318174540.700917ea.pj@sgi.com> Content-Type: text/plain Organization: IBM LTC Message-Id: <1079736707.17841.29.camel@arrakis> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 (1.4.5-7) Date: Fri, 19 Mar 2004 14:51:47 -0800 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1111 Lines: 26 On Thu, 2004-03-18 at 17:45, Paul Jackson wrote: > > It's hard to make those types of optimizations on generic masks. > > I would be assuming that by "generic" we meant arrays of unsigned longs > (or one unsigned long or something isomorphic to one or more unsigned > longs ...). > > And I'm assuming that we mean of a size that would allow for putting a > couple of them on a kernel stack ... not _too_ big. Probably NR_CPUS > rough upper limit on the size that was practical to use. > > I wouldn't want to get _too_ generic. Well, if we're going to make a generic bitmap type, it shouldn't have size limitations, as almost any limit we set will be too small eventually... Supporting arbitrary length bitmaps doesn't mean we can't try to optimize for smaller masks, like less than a couple unsigned longs, as well as single unsigned long optimizations. -Matt - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/