Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S262964AbUCRVCb (ORCPT ); Thu, 18 Mar 2004 16:02:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S262962AbUCRVCb (ORCPT ); Thu, 18 Mar 2004 16:02:31 -0500 Received: from fw.osdl.org ([65.172.181.6]:41402 "EHLO mail.osdl.org") by vger.kernel.org with ESMTP id S262960AbUCRVAg (ORCPT ); Thu, 18 Mar 2004 16:00:36 -0500 Date: Thu, 18 Mar 2004 12:57:33 -0800 From: "Randy.Dunlap" To: David Lang Cc: mingo@elte.hu, torvalds@osdl.org, hch@infradead.org, drepper@redhat.com, linux-kernel@vger.kernel.org, akpm@osdl.org Subject: Re: sched_setaffinity usability Message-Id: <20040318125733.65c1f33f.rddunlap@osdl.org> In-Reply-To: References: <40595842.5070708@redhat.com> <20040318112913.GA13981@elte.hu> <20040318120709.A27841@infradead.org> <20040318182407.GA1287@elte.hu> Organization: OSDL X-Mailer: Sylpheed version 0.9.10 (GTK+ 1.2.10; i686-pc-linux-gnu) X-Face: +5V?h'hZQPB9kW Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1249 Lines: 31 On Thu, 18 Mar 2004 12:49:12 -0800 (PST) David Lang wrote: | On Thu, 18 Mar 2004, Ingo Molnar wrote: | | > * Linus Torvalds wrote: | > | > > sysconf() is a user-level implementation issue, and so is something | > > like "number of CPU's". Damn, the simplest way to do it is as a | > > environment variable, for christ sake! Just make a magic environment | > > variable called __SC_ARRAY, and make it be some kind of binary | > > encoding if you worry about performance. | > | > i am not arguing for any sysconf() support at all - it clearly belongs | > into glibc. Just doing 'man sysconf' shows that it should be in | > user-space. No argument about that. | > | > But how about the original issue Ulrich raised: how does user-space | > figure out the NR_CPUS value supported by the kernel? (not the current # | > of CPUs, that can be figured out using /proc/cpuinfo) | | Doesn't /proc/config.gz answer this question? I guess it could, but it's another CONFIG option... -- ~Randy - 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/