Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* SMP problem....maybe ??
@ 1999-12-09  4:02 Rich Payne
  1999-12-09  4:21 ` Greg Lindahl
  1999-12-09  4:37 ` Jay.Estabrook
  0 siblings, 2 replies; 4+ messages in thread
From: Rich Payne @ 1999-12-09  4:02 UTC (permalink / raw)
  To: axp-list, linux-alpha; +Cc: axp-hardware


So I notices something rather strange today, now I only have Tsunami based
SMP machines so I can't speak for other SMP hardware, however:

I noticed that regardless of how many processors are present in the box
(this is either UP2000 or DP264) /proc/cpuinfo reports "cpus detected 2",
followed by "CPUs probed x" where x is the real number of CPUs, now it
does this even on a machine with 1 cpu and a uni kernel!

Now this value comes from hwrpb->nr_processors, which seems to be related
to the INIT_HWRPB struct in aboot (am I even close here ?)

So I guess the question is does anybody know why this is reporting 2 on
SMP Tsunami machines? regardless of what's really there?

thanks,
--rdp

P.S. In case your interested, this all start with a problem of somebody
porting some code over to AlphaLinux, they wanted to know the # of CPUs in
the box so tried get_nprocs() and get_nprocs_conf() both of which return 0
on Alpha as they seem to parse /proc/cpuinfo and count the number of
instances of the word 'processor'. So the Alphas are always running with 0
CPUs!


Rich Payne
rpayne@alphalinux.org			www.alphalinux.org



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

* RE: SMP problem....maybe ??
  1999-12-09  4:02 SMP problem....maybe ?? Rich Payne
@ 1999-12-09  4:21 ` Greg Lindahl
  1999-12-09 20:50   ` Bill Nottingham
  1999-12-09  4:37 ` Jay.Estabrook
  1 sibling, 1 reply; 4+ messages in thread
From: Greg Lindahl @ 1999-12-09  4:21 UTC (permalink / raw)
  To: axp-list

> So I guess the question is does anybody know why this is reporting 2 on
> SMP Tsunami machines? regardless of what's really there?

Didn't Jay say that SRM was guilty last time this was asked?

-- g


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

* Re: SMP problem....maybe ??
  1999-12-09  4:02 SMP problem....maybe ?? Rich Payne
  1999-12-09  4:21 ` Greg Lindahl
@ 1999-12-09  4:37 ` Jay.Estabrook
  1 sibling, 0 replies; 4+ messages in thread
From: Jay.Estabrook @ 1999-12-09  4:37 UTC (permalink / raw)
  To: axp-list


>>> Rich Payne said:
> 
> 
> I noticed that regardless of how many processors are present in the box
> (this is either UP2000 or DP264) /proc/cpuinfo reports "cpus detected 2",
> followed by "CPUs probed x" where x is the real number of CPUs, now it
> does this even on a machine with 1 cpu and a uni kernel!
> 
> Now this value comes from hwrpb->nr_processors, which seems to be related
> to the INIT_HWRPB struct in aboot (am I even close here ?)

Oh, yes, you *are* close... ;-}

> So I guess the question is does anybody know why this is reporting 2 on
> SMP Tsunami machines? regardless of what's really there?

Yes, there is/was a bug in the CPU detection code, which goes away with
2.2.14 (the patch has been in there since pre9 or so, IIRC).

The HWRPB may say there's 2 or 4 CPUs, for a given architecture, in the
"nr_processors" field, and one is required to look deeper, at the per-CPU
data, to determine how many are really there.

TSUNAMI machines will always say 2 CPUs, I believe; RAWHIDE may say 4.

--Jay++

---------------------------------------------------------------
Jay A Estabrook                       Alpha Engineering - LINUX
Compaq Computer Corp. - MRO1-2/K20    (508) 467-2080
200 Forest Street, Marlboro MA 01752  Jay.Estabrook@compaq.com
---------------------------------------------------------------


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

* Re: SMP problem....maybe ??
  1999-12-09  4:21 ` Greg Lindahl
@ 1999-12-09 20:50   ` Bill Nottingham
  0 siblings, 0 replies; 4+ messages in thread
From: Bill Nottingham @ 1999-12-09 20:50 UTC (permalink / raw)
  To: axp-list

On 8 Dec 1999 23:22:43 -0500, Greg Lindahl <glindahl@hpti.com> wrote:
>> So I guess the question is does anybody know why this is reporting 2 on
>> SMP Tsunami machines? regardless of what's really there?
>
>Didn't Jay say that SRM was guilty last time this was asked?

IIRC, this will be fixed in 2.2.14.

Bill


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

end of thread, other threads:[~1999-12-09 20:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-12-09  4:02 SMP problem....maybe ?? Rich Payne
1999-12-09  4:21 ` Greg Lindahl
1999-12-09 20:50   ` Bill Nottingham
1999-12-09  4:37 ` Jay.Estabrook

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