Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754292AbYJFNQ7 (ORCPT ); Mon, 6 Oct 2008 09:16:59 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752987AbYJFNQw (ORCPT ); Mon, 6 Oct 2008 09:16:52 -0400 Received: from one.firstfloor.org ([213.235.205.2]:57344 "EHLO one.firstfloor.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752618AbYJFNQv (ORCPT ); Mon, 6 Oct 2008 09:16:51 -0400 Date: Mon, 6 Oct 2008 15:22:52 +0200 From: Andi Kleen To: Bodo Eggert <7eggert@gmx.de> Cc: Andi Kleen , Thomas Gleixner , Ingo Molnar , Chuck Ebbert , linux-kernel@vger.kernel.org, Arjan van de Ven Subject: Re: Re: [patch x86/core] x86: allow number of additional hotplug CPUs to be set at compile time Message-ID: <20081006132252.GF3180@one.firstfloor.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1820 Lines: 41 On Mon, Oct 06, 2008 at 12:59:18PM +0200, Bodo Eggert wrote: > I don't have a machine with pluggable CPUs, but I'd imagine if you'd take out > some CPUs, the number of additional CPUs you can plug in will increase by the > same number (forcing me to change the kernel command lince if I do), while the It only costs you some memory to have more hotpluggable CPUs (on my kernel here around 40k/possible CPU), so there's very little "force" in practice unless you set excessive values. Some other architectures invented a "possible_cpus=..." parameter to address this. I presume this could be done on x86 too, but it doesn't seem like a very pressing issue. Even if it was done it would be better to keep additional_cpus for compatibility. > number of slots (and the number of possible CPUs) stays the same unless > somebody offers a new kind of CPU card. Therefore, I'd expect "maxcpus=" to be > the only interface I want for this purpose. Put in a value bigger than the > amount plugged in -> voila. maxcpus=... doesn't affect the cpu_possible_mask. It really is only good for limiting CPUs. > OTOH, looking at Thomas' patch, I'd guess it would not work as expected ... > and looking at the code seems to confirm this. Besides that, I'd possibly > want a way to limit the number of online CPUs at boot saying something like > "onlinecpus=", which would not limit the number of CPUs I can plug in. That is exactly what maxcpus=... does. Anyways I don't see the additional_cpus=... removal patch in tip so hopefully things are fine now -Andi -- ak@linux.intel.com -- 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/