All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Newport <crn@netunix.com>
To: sparclinux@vger.kernel.org
Subject: Re: NR_CPUS and kernel 2.4.30 for sparc64
Date: Wed, 25 May 2005 23:37:39 +0000	[thread overview]
Message-ID: <42950C43.6030106@netunix.com> (raw)
In-Reply-To: <4294E414.80003@wp.pl>

Krzysztof Helt wrote:

> You must set CONFIG_NR_CPUS to one plus the largest "physical cpu"
>
>> number in your machine if you want all processors to be detected
>> properly.  In your case, the correct setting would be 3.
>
>
> This works differnetly than on sparc32 kernel (it works there).
>
It works on Sun4m because all of the processors are confined to a single 
system board.
On Sun4d and Sun4u you can have multiple system boards.
CPU0 is the first CPU slot in the first system board slot. There is no 
universal requirement that any slot is filled [1], so if the only system 
board on an E10k is in slot 15 the 4 possible processors will be numbers 
60 to 63.

Think of it as "how many places do I look to find a possible CPU before 
giving up".
32 is a safe choice on all except the biggest machines and it is wise to 
not change this default unless you have some big iron.

[1] Not strictly true - some versions of the OBP require a CPU to exist 
on board 0 cpu 0.  Some other versions require a CPU to exist in the 
first CPU slot of the first occupied board slot. YMMV. Here be dragons.


  parent reply	other threads:[~2005-05-25 23:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-25 20:46 NR_CPUS and kernel 2.4.30 for sparc64 Krzysztof Helt
2005-05-25 22:44 ` Krzysztof Helt
2005-05-25 23:37 ` Chris Newport [this message]
2005-05-25 23:37 ` Ben Collins

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=42950C43.6030106@netunix.com \
    --to=crn@netunix.com \
    --cc=sparclinux@vger.kernel.org \
    /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.