public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Roy Dragseth <Roy.Dragseth@cc.uit.no>
To: linux-ia64@vger.kernel.org
Subject: Re: Probing for physical number of cpus.
Date: Mon, 07 Nov 2005 10:20:36 +0000	[thread overview]
Message-ID: <200511071120.37245.Roy.Dragseth@cc.uit.no> (raw)
In-Reply-To: <200510281318.51532.Roy.Dragseth@cc.uit.no>

On Thursday 03 November 2005 22:06, Ashok Raj wrote:
> Actually even of you boot with maxcpus=1, we still create sysfs entries for
> each cpus physically present in the system.
>
> you should be able to look at /sys/devices/system/cpu/cpuX entries
>
> if you compiled with CONFIG_HOTPLUG_CPU enabled, then you could
> echo 1 > online file in the appropriate cpu directory to add more
> cpus.
>
> Let me know if you dont see this behaviour.

Hi, this is more in line of what I was hoping for ;-)

However I don't see this behaviour on my system.  I'm running RH EL 4 with 
this setup:

[root@testing ~]# ls /sys/devices/system/cpu/
cpu0
[root@testing ~]# uname -a
Linux testing.cluster.none 2.6.9-22.EL #1 SMP Wed Oct 5 15:20:11 EEST 2005 
ia64 ia64 ia64 GNU/Linux
[root@testing ~]# cat /proc/cmdline
BOOT_IMAGE=scsi0:\EFI\redhat\vmlinuz-2.6.9-22.EL  console=ttyS0 maxcpus=1 rhgb 
quiet root=LABEL=/1 ro

Upgrading the kernel will not help because I need to be able to probe this 
under the install kernel.

Some background:

This is for the Rocks Cluster Distribution (www.rocksclusters.org), where the 
compute node installation is done using RH kickstart files that is 
automatically generated on, and fetched from, the frontend based on the 
information that is sent from the compute node when it  asks for the 
kickstart file.  For instance, the number of cpus on the node is used to 
configure the queueing system.

Any further hints is greatly appreciated.

Regards,
r.

-- 

  The Computer Center, University of Tromsø, N-9037 TROMSØ Norway.
	      phone:+47 77 64 41 07, fax:+47 77 64 41 00
     Roy Dragseth, High Performance Computing System Administrator
	 Direct call: +47 77 64 62 56. email: royd@cc.uit.no

      parent reply	other threads:[~2005-11-07 10:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-28 11:18 Probing for physical number of cpus Roy Dragseth
2005-10-28 12:43 ` Andreas Schwab
2005-11-03  8:10 ` Roy Dragseth
2005-11-03 21:06 ` Ashok Raj
2005-11-07 10:20 ` Roy Dragseth [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=200511071120.37245.Roy.Dragseth@cc.uit.no \
    --to=roy.dragseth@cc.uit.no \
    --cc=linux-ia64@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox