SMP : How do I know if it's working ok. Use top?

SMP : How do I know if it's working ok. Use top?

Post by David Traver » Wed, 21 Apr 1999 04:00:00



I recompiled the linux kernel but I don't know if SMP has been activated and
is using both processors to full effect.

System is as follows
                                    Supermicro Motherboard
                                    Dual Pentium 2 350Mhz
                                    128MB ECC Registered SDRAM
                                    9.1GB IBM Ultrastar U2W Hard Disk
                                    Plextor UltraSCSI 40x CD-ROM
                                    Netgear 310TX 100BaseT Network Card
                                    APC Backup PRO UPS

Linux Version: Redhat Linux 5.2 with kernel 2.2.1 (will update soon to
2.2.6)

On our HP-UX system, when running top it gives an indication of which
processes are running on which processor and the relative load on each
processor.

When ruuning top on Redhat Linux 5.2 with 2.2 kernel there seems to be no
indication as to which processes are running on which processor.

What am I doing wrong (if anything) and how can I check that SMP is working
properly. I don't want to have bought two processors for them not to being
used to their full potential

Also do processes get allocated to whichever processor has the smallest
load?

Thanks in advance for any advice given.


 
 
 

SMP : How do I know if it's working ok. Use top?

Post by TURBO101 » Wed, 21 Apr 1999 04:00:00


Try xosview, it should tell you if you are using both processors.  You can
also cat /proc/cpuinfo and see if both processors there listed.  Look at the
smp howto, that should help.


> I recompiled the linux kernel but I don't know if SMP has been activated
and
> is using both processors to full effect.

> System is as follows
>                                     Supermicro Motherboard
>                                     Dual Pentium 2 350Mhz
>                                     128MB ECC Registered SDRAM
>                                     9.1GB IBM Ultrastar U2W Hard Disk
>                                     Plextor UltraSCSI 40x CD-ROM
>                                     Netgear 310TX 100BaseT Network Card
>                                     APC Backup PRO UPS

> Linux Version: Redhat Linux 5.2 with kernel 2.2.1 (will update soon to
> 2.2.6)

> On our HP-UX system, when running top it gives an indication of which
> processes are running on which processor and the relative load on each
> processor.

> When ruuning top on Redhat Linux 5.2 with 2.2 kernel there seems to be no
> indication as to which processes are running on which processor.

> What am I doing wrong (if anything) and how can I check that SMP is
working
> properly. I don't want to have bought two processors for them not to being
> used to their full potential

> Also do processes get allocated to whichever processor has the smallest
> load?

> Thanks in advance for any advice given.




 
 
 

SMP : How do I know if it's working ok. Use top?

Post by Marc Mut » Thu, 22 Apr 1999 04:00:00



> I recompiled the linux kernel but I don't know if SMP has been activated and
> is using both processors to full effect.

> System is as follows
>                                     Supermicro Motherboard
>                                     Dual Pentium 2 350Mhz
>                                     128MB ECC Registered SDRAM
>                                     9.1GB IBM Ultrastar U2W Hard Disk
>                                     Plextor UltraSCSI 40x CD-ROM
>                                     Netgear 310TX 100BaseT Network Card
>                                     APC Backup PRO UPS

> Linux Version: Redhat Linux 5.2 with kernel 2.2.1 (will update soon to
> 2.2.6)

> On our HP-UX system, when running top it gives an indication of which
> processes are running on which processor and the relative load on each
> processor.

> When ruuning top on Redhat Linux 5.2 with 2.2 kernel there seems to be no
> indication as to which processes are running on which processor.

> What am I doing wrong (if anything) and how can I check that SMP is working
> properly. I don't want to have bought two processors for them not to being
> used to their full potential

> Also do processes get allocated to whichever processor has the smallest
> load?

> Thanks in advance for any advice given.



You could compile the new kernel w/ make -j 2 ... and see if it takes
considerably less time than make [-j 1] ... :-)

Marc Mutz

 
 
 

SMP : How do I know if it's working ok. Use top?

Post by Miles Gillha » Fri, 23 Apr 1999 04:00:00


cat /proc/cpuinfo

also check /var/log/dmesg for blurb about both cpu

Cheers,

Miles



> > I recompiled the linux kernel but I don't know if SMP has been activated and
> > is using both processors to full effect.

> > System is as follows
> >                                     Supermicro Motherboard
> >                                     Dual Pentium 2 350Mhz
> >                                     128MB ECC Registered SDRAM
> >                                     9.1GB IBM Ultrastar U2W Hard Disk
> >                                     Plextor UltraSCSI 40x CD-ROM
> >                                     Netgear 310TX 100BaseT Network Card
> >                                     APC Backup PRO UPS

> > Linux Version: Redhat Linux 5.2 with kernel 2.2.1 (will update soon to
> > 2.2.6)

> > On our HP-UX system, when running top it gives an indication of which
> > processes are running on which processor and the relative load on each
> > processor.

> > When ruuning top on Redhat Linux 5.2 with 2.2 kernel there seems to be no
> > indication as to which processes are running on which processor.

> > What am I doing wrong (if anything) and how can I check that SMP is working
> > properly. I don't want to have bought two processors for them not to being
> > used to their full potential

> > Also do processes get allocated to whichever processor has the smallest
> > load?

> > Thanks in advance for any advice given.


> You could compile the new kernel w/ make -j 2 ... and see if it takes
> considerably less time than make [-j 1] ... :-)

> Marc Mutz

--
---
Avante Computing Pty Ltd
http://www.avante.com.au
Level 1 Plumridge House, 36 Agnes St
PO BOX 1244
Fortitude Valley QLD 4006 Australia
Ph: +61 7 3257 4811, Fax: +61 7 3257 4800
 
 
 

SMP : How do I know if it's working ok. Use top?

Post by Jon Millire » Fri, 23 Apr 1999 04:00:00



> What am I doing wrong (if anything) and how can I check that SMP is working
> properly. I don't want to have bought two processors for them not to being
> used to their full potential

        Try cat /proc/cpuinfo. That will show information about all cpus
the kernel knows about. It will also give a rough estimate of speed (in
Bogo-Mips). The reason I mentions that is because if there is a glitch in
the SMP kernel, one of the cpus will run at full "Bogo-Mips" and the other
will show some ridiculously low number like two or three.

        As for monitoring, the only thing I know of to handle that for you
is a WindowMaker dock-app called wmmom, which purportedly supports
multiple cpus.

 
 
 

SMP : How do I know if it's working ok. Use top?

Post by Curt Timmerma » Fri, 23 Apr 1999 04:00:00


If you run xosview, it will show the load and interrupts on both CPU's.

> I recompiled the linux kernel but I don't know if SMP has been activated and
> is using both processors to full effect.

> System is as follows
>                                     Supermicro Motherboard
>                                     Dual Pentium 2 350Mhz
>                                     128MB ECC Registered SDRAM
>                                     9.1GB IBM Ultrastar U2W Hard Disk
>                                     Plextor UltraSCSI 40x CD-ROM
>                                     Netgear 310TX 100BaseT Network Card
>                                     APC Backup PRO UPS

> Linux Version: Redhat Linux 5.2 with kernel 2.2.1 (will update soon to
> 2.2.6)

> On our HP-UX system, when running top it gives an indication of which
> processes are running on which processor and the relative load on each
> processor.

> When ruuning top on Redhat Linux 5.2 with 2.2 kernel there seems to be no
> indication as to which processes are running on which processor.

> What am I doing wrong (if anything) and how can I check that SMP is working
> properly. I don't want to have bought two processors for them not to being
> used to their full potential

> Also do processes get allocated to whichever processor has the smallest
> load?

> Thanks in advance for any advice given.



 
 
 

SMP : How do I know if it's working ok. Use top?

Post by laurent collo » Wed, 28 Apr 1999 04:00:00



> If you run xosview, it will show the load and interrupts on both CPU's.

xosview is broken with newer 2.2.x SMP kernels since the proc reporting changed
-> endless loop...

Laurent Collot

 
 
 

SMP : How do I know if it's working ok. Use top?

Post by Christophe Kumst » Fri, 30 Apr 1999 04:00:00


Look at : http://i5.ima.umn.edu/~klee/linux-smp.shtml

for patched xosview .
( I use it on a dual-PIII and can see correctly IRQs and CPU Load on
both processors
with RedHat5.2 and kernel v2.2.0 with RT-Linux v2D patch.)



> > If you run xosview, it will show the load and interrupts on both CPU's.

> xosview is broken with newer 2.2.x SMP kernels since the proc reporting changed
> -> endless loop...

> Laurent Collot

-- KUMSTA Christophe

-- real-time system developper
-- RT-Linux (Use the source luke)
 
 
 

1. List of SMP Boards that are known to Work with SMP LINUX.

Greetings,

is there a List of ...
 - Motherboard with multiple Pentium Pros
 - known to run under Linux

especially the GigaByte and Tyan Boards are interessting.

Thanks in advance,

    ar

___________________________________________________________________________
Andreas Rabus

2. JSP pages corrupted with HTML source code

3. How can I know when it is 'ok' to do an stty?

4. stack trace of C/C++ programs (under SunOS)

5. Does anyone know if 'top' is still being maintained?

6. What is the difference between en0 and et0?

7. Socket flush...

8. Don't really know what I'm doing (fstab/mtab settings)

9. Doon't know what the $%^& I'm doing

10. X windows set up 'is this OK screen' not ok

11. OK-it's stupid I know, but...

12. 'top' doesn't work in FreeBSD4.0