Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 17 Apr 2001 17:45:07 +0300
From:      Odhiambo Washington <wash@wananchi.com>
To:        simond@irrelevant.org
Cc:        FBSD-Q <freebsd-questions@freebsd.org>
Subject:   Re: SMP
Message-ID:  <20010417174507.A31149@everest.wananchi.com>
In-Reply-To: <20010417153638.B25882@irrelevant.org>;  from "simond@irrelevant.org" on Tue, Apr 17, 2001 at 03:36:38PM %2B0100
References:  <20010417173019.D28689@everest.wananchi.com> <20010417153638.B25882@irrelevant.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--ikeVEW9yuYc//A+q
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

* simond@irrelevant.org <simond@irrelevant.org> [20010417 17:35]: writing o=
n the subject 'Re: SMP'
simond> On Tue, Apr 17, 2001 at 05:30:19PM +0300, Odhiambo Washington wrote:
simond> > Hello,
simond> > For the first time I've built an SMP kernel and the box boots up =
fine,
simond> > detecting the 2 CPUs but I am just wondering at what point the 2n=
d CPU
simond> > comes into play. Is this when the 1st CPU has load of some %age??
simond> > How can I monitor the loads on the CPUs?
simond>=20
simond> Generally I guess the 2nd processor is used whenever two or more pr=
ocesses
simond> are trying to run at once, I just got myself a dual p3/733 system l=
ast week
simond> so I'm still getting the hang of it. The best way I've found is to =
just use
simond> top (1) and will say CPU0 for the state when it's on the first cpu =
and CPU1
simond> for the 2nd.

Thanks for the quick response. I hope you're also running FreeBSD. When I r=
un 'top' all it
tells me is CPU status, no CPU0 or CPU1

And I think/believe I am booting an SMP kernel

[dmesg]

Copyright (c) 1992-2001 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights reserved.
FreeBSD 4.3-RC #1: Thu Apr 12 16:54:02 EAT 2001
    wash@everest.wananchi.com:/usr/obj/usr/src/sys/Kern4.x
Timecounter "i8254"  frequency 1193182 Hz
CPU: Pentium III/Pentium III Xeon/Celeron (447.69-MHz 686-class CPU)
  Origin =3D "GenuineIntel"  Id =3D 0x673  Stepping =3D 3
  Features=3D0x387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE=
,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory  =3D 134152192 (131008K bytes)
avail memory =3D 126832640 (123860K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  1, version: 0x00040011, at 0xfee00000
 cpu1 (AP):  apic id:  0, version: 0x00040011, at 0xfee00000
 io0 (APIC): apic id:  2, version: 0x00170011, at 0xfec00000
Preloaded elf kernel "kernel" at 0xc0388000.
VESA: v2.0, 2048k memory, flags:0x0, mode table:0xc031d6a2 (1000022)
VESA: Cirrus Logic GD-5480 VGA
Pentium Pro MTRR support enabled
md0: Malloc disk
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443GX host to PCI bridge> on motherboard
IOAPIC #0 intpin 19 -> irq 2
IOAPIC #0 intpin 21 -> irq 9
pci0: <PCI bus> on pcib0
pcib2: <Intel 82443GX (440 GX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib2
pcib3: <PCI to PCI bridge (vendor=3D1011 device=3D0023)> at device 15.0 on =
pci1
pci2: <PCI bus> on pcib3
pcib4: <PCI to PCI bridge (vendor=3D104c device=3Dac21)> at device 4.0 on p=
ci2
pci3: <PCI bus> on pcib4
ahc0: <Adaptec aic7896/97 Ultra2 SCSI adapter> port 0x2000-0x20ff mem 0xf41=
00000-0xf4100fff irq 2 at device 12.0 on pci0
aic7896/97: Wide Channel A, SCSI Id=3D7, 32/255 SCBs
ahc1: <Adaptec aic7896/97 Ultra2 SCSI adapter> port 0x2400-0x24ff mem 0xf41=
01000-0xf4101fff irq 2 at device 12.1 on pci0
aic7896/97: Wide Channel B, SCSI Id=3D7, 32/255 SCBs
fxp0: <Intel Pro 10/100B/100+ Ethernet> port 0x2800-0x283f mem 0xf4000000-0=
xf40fffff,0xf4102000-0xf4102fff irq 9 at device 14.0 on pci0
fxp0: Ethernet address 00:90:27:f6:72:c6
isab0: <Intel 82371AB PCI to ISA bridge> at device 18.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 ATA33 controller> port 0x2860-0x286f at device 18.1 o=
n pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x2840-0x285f irq 9 a=
t device 18.2 on pci0
usb0: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
Timecounter "PIIX"  frequency 3579545 Hz
chip1: <Intel 82371AB Power management controller> port 0x1040-0x104f at de=
vice 18.3 on pci0
pci0: <Cirrus Logic GD5480 SVGA controller> at 20.0
pcib1: <Intel 82443GX host to AGP bridge> on motherboard
pci4: <PCI bus> on pcib1
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=3D0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
Waiting 15 seconds for SCSI devices to settle
SMP: AP CPU #1 Launched!
Mounting root from ufs:/dev/da0s1a
da0 at ahc0 bus 0 target 0 lun 0
da0: <SEAGATE ST318275LC 0001> Fixed Direct Access SCSI-2 device=20
da0: 80.000MB/s transfers (40.000MHz, offset 15, 16bit), Tagged Queueing En=
abled
da0: 17366MB (35566480 512 byte sectors: 255H 63S/T 2213C)
da1 at ahc0 bus 0 target 1 lun 0
da1: <SEAGATE ST318275LC 0001> Fixed Direct Access SCSI-2 device=20
da1: 80.000MB/s transfers (40.000MHz, offset 15, 16bit), Tagged Queueing En=
abled
da1: 17366MB (35566480 512 byte sectors: 255H 63S/T 2213C)

[/dmesg.boot]

-Wash

--
Odhiambo Washington Wananchi Online Ltd.,
wash@wananchi.com 1st Flr Loita Hse
Tel: 254 2 313985 Loita Street.,
Fax: 254 2 313922 PO Box 10286, 00100-NAIROBI,KE.

Yes, but every time I try to see things your way, I get a headache.

--ikeVEW9yuYc//A+q
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE63Fbzn7LIsuxjem8RAlOJAJ4oM6fl6URP2x+8e7YISdcCYBGwHACdEx/5
H0C8ksycL+lET8hGUuZ6MaA=
=4CAr
-----END PGP SIGNATURE-----

--ikeVEW9yuYc//A+q--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010417174507.A31149>