All of lore.kernel.org
 help / color / mirror / Atom feed
From: Max Krasnyansky <maxk@qualcomm.com>
To: Ingo Molnar <mingo@elte.hu>
Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org,
	lizf@cn.fujitsu.com, jeff.chua.linux@gmail.com,
	Glauber Costa <gcosta@redhat.com>
Subject: Re: [PATCH] Resurect proper handling of maxcpus= kernel option
Date: Mon, 11 Aug 2008 11:40:00 -0700	[thread overview]
Message-ID: <48A08780.1060308@qualcomm.com> (raw)
In-Reply-To: <20080811181642.GS4524@elte.hu>

Ingo Molnar wrote:
> * Max.Krasnyansky@qualcomm.com <Max.Krasnyansky@qualcomm.com> wrote:
> 
>> From: Max Krasnyansky <maxk@qualcomm.com>
>>
>> For some reason we had redundant parsers registered for maxcpus=. One 
>> in init/main.c and another in arch/x86/smpboot.c So I nuked the one in 
>> arch/x86.
>>
>> Also 64-bit kernels used to handle maxcpus= as documented in 
>> Documentation/cpu-hotplug.txt. CPUs with 'id > maxcpus' are 
>> initialized but not booted. 32-bit version for some reason ignored 
>> them even though all the infrastructure for booting them later is 
>> there.
>>
>> In the current mainline both 64 and 32 bit versions are broken. I'm 
>> too lazy to look through git history but I'm guessing it happened as 
>> part of the i386 and x86_64 unification.
> 
> yes in essence. 32-bit always had maxcpus as a hard restriction in the 
> number of CPUs. This got extended to 64-bit as well, via commit 
> 89b08200ad:
> 
>     x86: make x86_64 accept the max_cpus parameter
> 
> in v2.6.25. Two major kernel releases and nobody noticed - it's a rarely 
> used option.

btw I think it's rarely used because many people do not realize it's there.
There are at least a couple of use cases that came up recently.
- Busted cpu. You can boot the machine with maxcpus=1 and then bring up cpus
one by one to see which one is busted.
- Recently reported regression that 16cpu box booted fine with NRCPUS=8 but
failed with NRCPUS=16. Again we can boot with maxcpus=8 and bring other cpus
later to see when/where we fail.

Things like that.

Max


      parent reply	other threads:[~2008-08-11 18:40 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-08-06 20:00 [PATCH] Resurect proper handling of maxcpus= kernel option Max.Krasnyansky
2008-08-06 20:23 ` Max Krasnyansky
2008-08-07  4:00 ` Li Zefan
2008-08-07  5:48   ` Jeff Chua
2008-08-07 17:22     ` Max Krasnyansky
2008-08-07 17:21   ` Max Krasnyansky
2008-08-08  2:13     ` Li Zefan
2008-08-11 18:16 ` Ingo Molnar
2008-08-11 18:28   ` Max Krasnyansky
2008-08-11 18:38     ` Ingo Molnar
2008-08-11 18:46       ` Max Krasnyansky
2008-08-11 18:40   ` Max Krasnyansky [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=48A08780.1060308@qualcomm.com \
    --to=maxk@qualcomm.com \
    --cc=akpm@linux-foundation.org \
    --cc=gcosta@redhat.com \
    --cc=jeff.chua.linux@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lizf@cn.fujitsu.com \
    --cc=mingo@elte.hu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.