public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [Linux-ia64] Detecting SMP in user space
@ 2001-04-19  9:45 Andreas Schwab
  2001-04-19 10:15 ` McCaffity, Ray
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andreas Schwab @ 2001-04-19  9:45 UTC (permalink / raw)
  To: linux-ia64

How can I detect an SMP system in user space even when running an UP
kernel?  Things like `cat /proc/cpuinfo' don't count.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


^ permalink raw reply	[flat|nested] 5+ messages in thread

* RE: [Linux-ia64] Detecting SMP in user space
  2001-04-19  9:45 [Linux-ia64] Detecting SMP in user space Andreas Schwab
@ 2001-04-19 10:15 ` McCaffity, Ray
  2001-04-19 10:28 ` Andreas Schwab
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: McCaffity, Ray @ 2001-04-19 10:15 UTC (permalink / raw)
  To: linux-ia64

How about simply running 'top' or a 'dmesg | grep CPU'?


-----Original Message-----
From: Andreas Schwab [mailto:schwab@suse.de]
Sent: Thursday, April 19, 2001 4:45 AM
To: linux-ia64@linuxia64.org
Subject: [Linux-ia64] Detecting SMP in user space


How can I detect an SMP system in user space even when running an UP
kernel?  Things like `cat /proc/cpuinfo' don't count.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5

_______________________________________________
Linux-IA64 mailing list
Linux-IA64@linuxia64.org
http://lists.linuxia64.org/lists/listinfo/linux-ia64


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Linux-ia64] Detecting SMP in user space
  2001-04-19  9:45 [Linux-ia64] Detecting SMP in user space Andreas Schwab
  2001-04-19 10:15 ` McCaffity, Ray
@ 2001-04-19 10:28 ` Andreas Schwab
  2001-04-19 16:41 ` Michael Madore
  2001-04-20  8:24 ` Andreas Schwab
  3 siblings, 0 replies; 5+ messages in thread
From: Andreas Schwab @ 2001-04-19 10:28 UTC (permalink / raw)
  To: linux-ia64

"McCaffity, Ray" <ray.mccaffity@wcg.com> writes:

|> How about simply running 'top' or a 'dmesg | grep CPU'?

As I already said, I'm running a UP kernel, thus top only ever sees one
CPU.  The latter fails if the boot messages have already been cleared from
the kernel log.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Linux-ia64] Detecting SMP in user space
  2001-04-19  9:45 [Linux-ia64] Detecting SMP in user space Andreas Schwab
  2001-04-19 10:15 ` McCaffity, Ray
  2001-04-19 10:28 ` Andreas Schwab
@ 2001-04-19 16:41 ` Michael Madore
  2001-04-20  8:24 ` Andreas Schwab
  3 siblings, 0 replies; 5+ messages in thread
From: Michael Madore @ 2001-04-19 16:41 UTC (permalink / raw)
  To: linux-ia64

Hi,

Does this work?

/usr/bin/getconf _NPROCESSORS_ONLN


On Thu, Apr 19, 2001 at 11:45:28AM +0200, Andreas Schwab wrote:
> How can I detect an SMP system in user space even when running an UP
> kernel?  Things like `cat /proc/cpuinfo' don't count.
> 
> Andreas.
> 
> -- 
> Andreas Schwab                                  "And now for something
> SuSE Labs                                        completely different."
> Andreas.Schwab@suse.de
> SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
> Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
> 
> _______________________________________________
> Linux-IA64 mailing list
> Linux-IA64@linuxia64.org
> http://lists.linuxia64.org/lists/listinfo/linux-ia64

-- 
Mike Madore
Software Engineer
TurboLinux, Inc.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Linux-ia64] Detecting SMP in user space
  2001-04-19  9:45 [Linux-ia64] Detecting SMP in user space Andreas Schwab
                   ` (2 preceding siblings ...)
  2001-04-19 16:41 ` Michael Madore
@ 2001-04-20  8:24 ` Andreas Schwab
  3 siblings, 0 replies; 5+ messages in thread
From: Andreas Schwab @ 2001-04-20  8:24 UTC (permalink / raw)
  To: linux-ia64

Michael Madore <mmadore@turbolinux.com> writes:

|> Hi,
|> 
|> Does this work?
|> 
|> /usr/bin/getconf _NPROCESSORS_ONLN

This is just another instance of the `cat /proc/cpuinfo' class.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-04-20  8:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-19  9:45 [Linux-ia64] Detecting SMP in user space Andreas Schwab
2001-04-19 10:15 ` McCaffity, Ray
2001-04-19 10:28 ` Andreas Schwab
2001-04-19 16:41 ` Michael Madore
2001-04-20  8:24 ` Andreas Schwab

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox