SMP question: Different CPU steppings OK?

SMP question: Different CPU steppings OK?

Post by Lam Da » Mon, 23 Dec 1996 04:00:00



I just built a new box with:

-  Tyan Tomcat 3D with 512K cache
-  2 Pentium 100, an old one with stepping 5 and a new one with
   stepping 6
-  32M EDO memory
-  53c825 controller with 2G wide SCSI drive.

Building the 2.1.6 kernel takes 12 minutes regardless of the number of
CPUs.  I was expecting some speedup with dual CPUs, but found none.

The motherboard manual says, "When using two Pentiums, Intel
recommends that the chips have the same s-spec number..."  What's
this "s-spec"?  Is it the same as "stepping"?  What is the stepping
number anyway?  Do I really have to have the same stepping for both
CPUs?

I understand that SMP is built into the 2.X.X kernels, that is,
there's no SMP configuration option.  (I also tried Windows NT 4.0
with my new box.  It didn't see the second CPU at all.  I recall
there's a patch that must be applied separately from the regular
installation.)

Please help.  Any comments will be appreciated.  Here are the contents
of /proc/cpuinfo in 3 different cases:

1.  One CPU
processor       : 0
cpu             : 586
model           : Pentium 75+
vendor_id       : GenuineIntel
stepping        : 5
fdiv_bug        : no
hlt_bug         : no
fpu             : yes
fpu_exception   : yes
cpuid           : yes
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8
bogomips        : 39.73

2.  Two CPUs
processor       : 0
cpu             : 586
model           : Pentium 75+
vendor_id       : GenuineIntel
stepping        : 5
fdiv_bug        : no
hlt_bug         : no
fpu             : yes
fpu_exception   : yes
cpuid           : yes
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8 apic
bogomips        : 39.73

3.  Two CPUs, slots reversed
processor       : 0
cpu             : 586
model           : Pentium 75+
vendor_id       : GenuineIntel
stepping        : 6
fdiv_bug        : no
hlt_bug         : no
fpu             : yes
fpu_exception   : yes
cpuid           : yes
wp              : yes
flags           : fpu vme de pse tsc msr mce cx8 apic
bogomips        : 39.73

What's the "apic" flag?  The Tyan motherboard manual uses the same
acronym without explaining it.

--
Lam Dang

 
 
 

SMP question: Different CPU steppings OK?

Post by Wolfgang Grenz » Mon, 23 Dec 1996 04:00:00


: -  2 Pentium 100, an old one with stepping 5 and a new one with
:    stepping 6
: Building the 2.1.6 kernel takes 12 minutes regardless of the number of
: CPUs.  I was expecting some speedup with dual CPUs, but found none.
with two p133 it takes you ~7 min for recent Kernels. You have to enable
SMP-support by uncommenting :
#SMP = 1
in /usr/src/linux/Makefile

: The motherboard manual says, "When using two Pentiums, Intel
: recommends that the chips have the same s-spec number..."  What's
: this "s-spec"?  Is it the same as "stepping"?  What is the stepping
: number anyway?  Do I really have to have the same stepping for both
: CPUs?
dont know, i use SSS Pentiums whith the same stepping. You drive it with one
CPU. Cat /proc/cpuinfo has to report two cpus and you get ~105bogomips with
2xp133.

W.
--


  Ein UART 16550A ist ein Muss fuer DFUE. SCSI ist der Koenigsweg.

 
 
 

SMP question: Different CPU steppings OK?

Post by Wolfgang Grenz » Mon, 23 Dec 1996 04:00:00



: : Building the 2.1.6 kernel takes 12 minutes regardless of the number of
                 ^^^^^
mumpf just seen it. 2.1.6 wont work with SMP, it hangs at boot. All 2.1.x
prior 2.1.16 wont work with SMP enabled. Get the latest patches, or use
2.0.x.

W.

--


  Ein UART 16550A ist ein Muss fuer DFUE. SCSI ist der Koenigsweg.

 
 
 

SMP question: Different CPU steppings OK?

Post by Lam Da » Mon, 23 Dec 1996 04:00:00






>: : Building the 2.1.6 kernel takes 12 minutes regardless of the number of
>                  ^^^^^
> mumpf just seen it. 2.1.6 wont work with SMP, it hangs at boot. All 2.1.x
> prior 2.1.16 wont work with SMP enabled. Get the latest patches, or use
> 2.0.x.

> W.

Sorry it's a typo.  I meant 2.1.16.

Following the advice in your earlier post, I uncommented SMP=1 in
/usr/src/linux/Makefile.  Now the kernel recognizes both CPUs as seen
in the boot messages and /proc/cpuinfo.  Thanks.

But I still don't see a speed gain in building 2.1.16.  I used "make -j
4" in both cases; I didn't see a lot of disk activity (light and sound)
in either case.  Any other suggestions?

--
Lam Dang

 
 
 

SMP question: Different CPU steppings OK?

Post by Lam Da » Mon, 23 Dec 1996 04:00:00




Quote:

> Just calling make with a '-j 4' won't work, because the top level
> kernel Makefile defines make as 'make' and the '-j 4' never gets
> passed down to lower level Makefiles.

> Edit your top level Makefile and change:

> MAKE       =make

> to

> MAKE       =make -j 4

> and then you should see the speed gain. ;)

I did, and you're right.  For the same kernel build, it now takes 7:15
instead of between 11:30 and 12:00.  I'm happy.  Many thanks.

I also tried "make -j" without a number as Wofgang suggested.  Now the
disk wouldn't stop, probably because I've got only 32M of memory.
Then I tried "make -j -l 0.75" to cut down on the number of jobs based
on load.  The disk didn't thrash, but there was no speedup.

I still want to know what "s-spec" and "stepping" numbers are.
Obviously different stepping numbers don't seem to matter for SMP.

--
Lam Dang

 
 
 

SMP question: Different CPU steppings OK?

Post by Kevin Fenz » Mon, 23 Dec 1996 04:00:00


Lam> Sorry it's a typo.  I meant 2.1.16.

Lam> Following the advice in your earlier post, I uncommented SMP=1 in
Lam> /usr/src/linux/Makefile.  Now the kernel recognizes both CPUs as
Lam> seen in the boot messages and /proc/cpuinfo.  Thanks.

Lam> But I still don't see a speed gain in building 2.1.16.  I used
Lam> "make -j 4" in both cases; I didn't see a lot of disk activity
Lam> (light and sound) in either case.  Any other suggestions?

Just calling make with a '-j 4' won't work, because the top level
kernel Makefile defines make as 'make' and the '-j 4' never gets
passed down to lower level Makefiles.

Edit your top level Makefile and change:

MAKE    =make

to

MAKE    =make -j 4

and then you should see the speed gain. ;)


kevin
--


WWW -> http://scrye.com/~kevin/


 
 
 

SMP question: Different CPU steppings OK?

Post by Wolfgang Grenz » Mon, 23 Dec 1996 04:00:00


: But I still don't see a speed gain in building 2.1.16.  I used "make -j
: 4" in both cases; I didn't see a lot of disk activity (light and sound)
: in either case.  Any other suggestions?
Hm maybe make is the Problem mine ignores digits given to -j in bash.
Try "time make -j zImage". You should see lots of gccs in memory and much
disk activity. Hope there is enough swap-space. Tough guys edit the top-level
Makefile:
Make = make -j
and type make -j zImage so all jobs run simultaneously even in sub-
directories.
Much memory needed ~120MB so your UW hostadapter can play at his best..

W.
--


  Ein UART 16550A ist ein Muss fuer DFUE. SCSI ist der Koenigsweg.

 
 
 

SMP question: Different CPU steppings OK?

Post by Rene Hoejbjerg Lars » Mon, 23 Dec 1996 04:00:00




Quote:

> I understand that SMP is built into the 2.X.X kernels, that is,
> there's no SMP configuration option.  (I also tried Windows NT 4.0
> with my new box.  It didn't see the second CPU at all.  I recall
> there's a patch that must be applied separately from the regular
> installation.)

You have to manually enable SMP support in the top-level Makefile of you
kernel source tree. For some reason they didn't make this a normal
configuration option. Don't know about NT though.
--
         /'"`\  zzzZ    | My PGP Public Key is available at:
        ( - - )         | <http://www.veryComputer.com/;
----oooO--(_)--Oooo-------------------------------------------
   Math and * don't mix: Do not drink and derive!
 
 
 

SMP question: Different CPU steppings OK?

Post by bill davids » Wed, 25 Dec 1996 04:00:00



| But I still don't see a speed gain in building 2.1.16.  I used "make -j
| 4" in both cases; I didn't see a lot of disk activity (light and sound)
| in either case.  Any other suggestions?

make zImage modules MAKE='make -j 3'

-j3 gives me 198% cpu with dual PPro-200 and 64M. I've heard people
speak of larger values, but trying them didn't help measurably.

Even with all that a kernel and module build can take 3-6 minutes
from make clean. It depends on how many things you put in your
kernel ;-)
--

  What do you mean I shouldn't do thing like that at my age?
  At my age if you don't do things like that you might die of natural causes!

 
 
 

SMP question: Different CPU steppings OK?

Post by mbroom » Thu, 26 Dec 1996 04:00:00





> > I understand that SMP is built into the 2.X.X kernels, that is,
> > there's no SMP configuration option.  (I also tried Windows NT 4.0
> > with my new box.  It didn't see the second CPU at all.  I recall
> > there's a patch that must be applied separately from the regular
> > installation.)

> You have to manually enable SMP support in the top-level Makefile of you
> kernel source tree. For some reason they didn't make this a normal
> configuration option. Don't know about NT though.

When you install NT, it automaticaly installs the smp support if it
finds 2 CPUs.
 
 
 

SMP question: Different CPU steppings OK?

Post by Lam Da » Fri, 27 Dec 1996 04:00:00




Quote:> When you install NT, it automaticaly installs the smp support if it
> finds 2 CPUs.

You're right.  When I reinstalled NT 4.0 with both CPUs present, I got
SMP.  If I installed SP2 _and_ networking (TCP/IP and RAS), however,
it would crash soon after the NT logo showed up.  With only SP1, it's
working all right.

I'm quite happy with the whole thing now.  I've got both Linux 2.X.X
and NT 4.0 running SMP.  The NT Task Manager can create load and graph
how each of the CPUs responds to varying load at the thread
level.  It's fun playing around with this SMP stuff.  And I didn't
have to spend a lot for it either.

Thank you all for your help.

--
Lam Dang

 
 
 

SMP question: Different CPU steppings OK?

Post by Sean V. Cas » Fri, 27 Dec 1996 04:00:00


Quote:>You're right.  When I reinstalled NT 4.0 with both CPUs present, I got
>SMP.  If I installed SP2 _and_ networking (TCP/IP and RAS), however,
>it would crash soon after the NT logo showed up.  With only SP1, it's
>working all right.

Quite a few people (including myself) have gotten the blue screen of
death with SP2.  Sometimes it's during IPL, or simply formatting a
floppy.  I down graded to SP1 and everything is fine.  I've read half
a dozen posts indicating the problem is often due to auto protect
(active) virus checking programs, and when removed, the abends stop.
I was running NT NAV V.2 when I had all my problems.

M$ needs to get their act together.  Releasing a SP that crashes their
"mission critical" OS isn't going to please many admins or users.

P.S.  I spent approx $700 for NT Svr V.4 (for home use when I'm not
using my favorite OS - Linux).  Contacted M$ for "complementary"
installation support for this problem.  They wouldn't talk to me
unless I gave them my Visa for a $190 support charge.  And Bill Gates
expects to have NT on every desktop?  

 
 
 

1. SMP & CPU stepping

I'm running SMP on kernel 2.4.1-pre9.  I just added a second processor and noticed that the stepping was different -- one being a boxed CPU and the other being an OEM.  The stepping is 2 and 3, respectively.  I've looked for various information as to whether or not I'll run into problems since the stepping is not the same.  So far, all seems stable, even on this developmental kernel.

Any help is appreciated.

-Matt

2. Compile errors HELP!

3. Stepping and SMP question

4. problem setting X on Linux Redhat 6.0

5. 2.2.x single CPU is ok, SMP crashes

6. Competition

7. SMP: Two different CPU's ?

8. Problem with kernel-module version mismatch

9. 2.5.37: different bogomips values for identical cpu's in smp system?

10. SMP: Tyan Tomcat III dual, only one CPU active in /proc/smp

11. So what's the deal with SMP and stepping numbers?

12. Different Applicatin on different CPU'S

13. Stepping on a Dual PII set of CPU's