From owner-freebsd-questions Tue Apr 17 7:47: 5 2001 Delivered-To: freebsd-questions@freebsd.org Received: from everest.wananchi.com (everest.wananchi.com [62.8.64.4]) by hub.freebsd.org (Postfix) with ESMTP id B820D37B422 for ; Tue, 17 Apr 2001 07:46:23 -0700 (PDT) (envelope-from wash@everest.wananchi.com) Received: from wash by everest.wananchi.com with local (Exim 3.22 #2) id 14pWj6-00089Q-00; Tue, 17 Apr 2001 17:45:08 +0300 Date: Tue, 17 Apr 2001 17:45:07 +0300 From: Odhiambo Washington To: simond@irrelevant.org Cc: FBSD-Q Subject: Re: SMP Message-ID: <20010417174507.A31149@everest.wananchi.com> Mail-Followup-To: Odhiambo Washington , simond@irrelevant.org, FBSD-Q References: <20010417173019.D28689@everest.wananchi.com> <20010417153638.B25882@irrelevant.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010417153638.B25882@irrelevant.org>; from "simond@irrelevant.org" on Tue, Apr 17, 2001 at 03:36:38PM +0100 X-Operating-System: FreeBSD everest.wananchi.com 4.3-RC FreeBSD 4.3-RC X-Mailer: Mutt http://www.mutt.org/ X-Location: Nairobi, KE, East Africa. X-Uptime: 5:41PM up 1 day, 5 mins, 4 users, load averages: 0.01, 0.30, 0.44 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * 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 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: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #0 intpin 19 -> irq 2 IOAPIC #0 intpin 21 -> irq 9 pci0: on pcib0 pcib2: at device 1.0 on pci0 pci1: on pcib2 pcib3: at device 15.0 on = pci1 pci2: on pcib3 pcib4: at device 4.0 on p= ci2 pci3: on pcib4 ahc0: 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: 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: 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: at device 18.0 on pci0 isa0: on isab0 atapci0: 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: port 0x2840-0x285f irq 9 a= t device 18.2 on pci0 usb0: 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: port 0x1040-0x104f at de= vice 18.3 on pci0 pci0: at 20.0 pcib1: on motherboard pci4: on pcib1 fdc0: 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: at port 0x60,0x64 on isa0 vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 sc0: 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: 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: on ppbus0 lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: 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: 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: 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