Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S265740AbUFDLdH (ORCPT ); Fri, 4 Jun 2004 07:33:07 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S265742AbUFDLdH (ORCPT ); Fri, 4 Jun 2004 07:33:07 -0400 Received: from holomorphy.com ([207.189.100.168]:16037 "EHLO holomorphy.com") by vger.kernel.org with ESMTP id S265740AbUFDLdC (ORCPT ); Fri, 4 Jun 2004 07:33:02 -0400 Date: Fri, 4 Jun 2004 04:32:53 -0700 From: William Lee Irwin III To: Mikael Pettersson , Paul Jackson , Nick Piggin , rusty@rustcorp.com.au, linux-kernel@vger.kernel.org, akpm@osdl.org, ak@muc.de, ashok.raj@intel.com, hch@infradead.org, jbarnes@sgi.com, joe.korty@ccur.com, manfred@colorfullife.com, colpatch@us.ibm.com, Simon.Derr@bull.net Subject: Re: [PATCH] cpumask 5/10 rewrite cpumask.h - single bitmap based implementation Message-ID: <20040604113252.GA21007@holomorphy.com> Mail-Followup-To: William Lee Irwin III , Mikael Pettersson , Paul Jackson , Nick Piggin , rusty@rustcorp.com.au, linux-kernel@vger.kernel.org, akpm@osdl.org, ak@muc.de, ashok.raj@intel.com, hch@infradead.org, jbarnes@sgi.com, joe.korty@ccur.com, manfred@colorfullife.com, colpatch@us.ibm.com, Simon.Derr@bull.net References: <20040603101010.4b15734a.pj@sgi.com> <1086313667.29381.897.camel@bach> <40BFD839.7060101@yahoo.com.au> <20040603221854.25d80f5a.pj@sgi.com> <16576.16748.771295.988065@alkaid.it.uu.se> <20040604093712.GU21007@holomorphy.com> <16576.17673.548349.36588@alkaid.it.uu.se> <20040604095929.GX21007@holomorphy.com> <16576.23059.490262.610771@alkaid.it.uu.se> <20040604112744.GZ21007@holomorphy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040604112744.GZ21007@holomorphy.com> User-Agent: Mutt/1.5.5.1+cvs20040105i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1107 Lines: 26 On Fri, Jun 04, 2004 at 04:27:44AM -0700, William Lee Irwin III wrote: > If you care to export an architecture-neutral and/or 32/64 -bit > compatible binary representation of a bitmap, please provide the > implementation in lib/bitmap.c; I'm relatively agnostic on the ASCII > vs. whatever issue. Others may not be... > The cpu count for cpumask_t should be visible to userspace as the > dreaded sysconf(_SC_NPROCESSORS_CONF)... don't ask how this is > implemented, you don't want to know. > Thanks. > -- wli Hmm. Okay, I'd better confess. It parses /proc/cpuinfo... except there's no information there about the NR_CPUS used for cpumask_t, but rather only num_cpus_online(). akpm, apps are in trouble. Some interface is needed to export NR_CPUS so the kernel doesn't clobber their memory if they guess too low. Andi, how does libnuma cope with this? -- wli - 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/