SMP doesn´t work the way i want.

Patrik Hansson <[email protected]>
Newsgroups gmane.os.netbsd.devel.smp
Message-ID <1680028966.1044603943519.JavaMail.webmail@webmail4>
Hello nice people at tech-smp. Have some questions that i hope you could answer.

My setup: 

Tyan Tomcat 1563D with 2x Pentium 200MHz.
NetBSD-current.

My problem: 
I have compiled GENERIC.MPDEBUG and netbsd finds two cpu´s but if i start systat vmstat i can only see one cpu. If i start top i have CPU/0 CPU/1 etc etc. Wy can´t i see both in systat ?

Another thing is the how the system uses the two cpu´s.
when i recompile a kernel only one cpu gets the load, and top reports 50% idle. Is tha normal ?
I can get load on both if i start someting like /usr/pkg/bin/flops twice. Then top reports 0% idle.

Hope my english wasn´t too bad and that you have some answers for me.

Adding dmesg output:

NetBSD 1.6N (GENERIC.MPDEBUG) #1: Thu Feb  6 18:04:49 CET 2003
    padde@router:/usr/src/sys/arch/i386/compile/GENERIC.MPDEBUG
total memory = 73340 KB
avail memory = 62528 KB
using 942 buffers containing 3768 KB of memory
BIOS32 rev. 0 found at 0xfb330
mainbus0 (root)
mainbus0: scanning 0x9fc00 to 0x9fff0 for MP signature
mainbus0: scanning 0xf0000 to 0xffff0 for MP signature
mainbus0: MP floating pointer found in bios at 0xf5bd0
mainbus0: MP config table at 0xf1400, 252 bytes long
mainbus0: Intel MP Specification (Version 1.1) (OEM00000 PROD00000000)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel Pentium (P54C) (586-class), 199.42 MHz, id 0x52c
cpu0: features 3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
cpu0: calibrating local timer
cpu0: apic clock running at 66 MHz
cpu0: kstack at 0xc6d3d000 for 16384 bytes
cpu0: idle pcb at 0xc6d3d000, idle sp at 0xc6d40f98
cpu1 at mainbus0: apid 1 (application processor)
cpu1: starting
cpu1: Intel Dual Pentium (P54C) (586-class), 199.40 MHz, id 0x252c
cpu1: features 3bf<FPU,VME,DE,PSE,TSC,MSR,MCE,CX8,APIC>
cpu1: kstack at 0xc6d49000 for 16384 bytes
cpu1: idle pcb at 0xc6d49000, idle sp at 0xc6d4cf98
mpbios: bus 0 is type PCI   
mpbios: bus 1 is type ISA   
ioapic0 at mainbus0 apid 2 (I/O APIC)
ioapic0: pa 0xfec00000, virtual wire mode, version 11, 24 pins
ioapic0: int0 attached to ExtINT (type 3<type=3=ExtINT> flags 0<pol=0,trig=0>)
ioapic0: int1 attached to isa0 irq 1 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int2 attached to isa0 irq 0 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int3 attached to isa0 irq 3 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int4 attached to isa0 irq 4 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int5 attached to isa0 irq 5 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int6 attached to isa0 irq 6 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int7 attached to isa0 irq 7 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int8 attached to isa0 irq 8 (type 0<type=0> flags 5<pol=1=Act Hi,trig=1=Edge>)
ioapic0: int9 attached to isa0 irq 9 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int13 attached to isa0 irq 13 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int14 attached to isa0 irq 14 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int15 attached to isa0 irq 15 (type 0<type=0> flags 0<pol=0,trig=0>)
ioapic0: int16 attached to isa0 irq 10 (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int17 attached to isa0 irq 12 (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
ioapic0: int19 attached to isa0 irq 11 (type 0<type=0> flags f<pol=3=Act Lo,trig=3=Level>)
local apic: int0 attached to ExtINT (type 3<type=3=ExtINT> flags 0<pol=0,trig=0>)
local apic: int1 attached to NMI (type 1<type=1=NMI> flags 0<pol=0,trig=0>)
pnpbios0 at mainbus0: nodes 13, max len 126
pckbc1 at pnpbios0 index 4 (PNP0303): kbd port
com0 at pnpbios0 index 9 (PNP0501)
com0: io 3f8-3ff, irq 4
com0: ns16550a, working fifo
fdc1 at pnpbios0 index 10 (PNP0700)
fdc1: unknown size: 1 of io mapping
lpt3 at pnpbios0 index 11 (PNP0400)
lpt3: io 378-37b, irq 7
com1 at pnpbios0 index 12 (PNP0501)
com1: io 2f8-2ff, irq 3
com1: ns16550a, working fifo
pckbd0 at pckbc1 (kbd slot)
pckbc1: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard
pmsprobe: reset error 5
pci0 at mainbus0 bus 0: configuration mode 1
pci0: i/o space, memory space enabled, rd/line, rd/mult, wr/inv ok
pchb0 at pci0 dev 0 function 0
pchb0: Intel 82439HX System Controller (TXC) (rev. 0x03)
pcib0 at pci0 dev 7 function 0
pcib0: Intel 82371SB PCI-to-ISA Bridge (PIIX3) (rev. 0x01)
pciide0 at pci0 dev 7 function 1: Intel 82371SB IDE Interface (PIIX3) (rev. 0x00)
pciide0: bus-master DMA support present
pciide0: primary channel wired to compatibility mode
wd0 at pciide0 channel 0 drive 0: <Maxtor 90840D5>
wd0: drive supports 16-sector PIO transfers, LBA addressing
wd0: 8063 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 16514064 sectors
wd0: 32-bit data port
wd0: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 2 (Ultra/33)
pciide0: primary channel interrupting at irq 14
wd0(pciide0:0:0): using PIO mode 4, DMA mode 2 (using DMA data transfers)
pciide0: secondary channel wired to compatibility mode
wd1 at pciide0 channel 1 drive 1: <QUANTUM FIREBALL540A>
wd1: drive supports 8-sector PIO transfers, LBA addressing
wd1: 519 MB, 1056 cyl, 16 head, 63 sec, 512 bytes/sect x 1064448 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2
pciide0: secondary channel interrupting at irq 15
wd1(pciide0:1:1): using PIO mode 4, DMA mode 2 (using DMA data transfers)
uhci0 at pci0 dev 7 function 2: Intel 82371SB USB Host Controller (PIIX3) (rev. 0x01)
uhci0: interrupting at apic 2 int 19 (irq 11)
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
ahc0 at pci0 dev 17 function 0
ahc0: interrupting at apic 2 int 19 (irq 11)
ahc0: aic7850 Single Channel A, SCSI Id=7, 3/255 SCBs
ahc0: Host Adapter Bios disabled.  Using default SCSI device parameters
scsibus0 at ahc0: 8 targets, 8 luns per target
rtk0 at pci0 dev 19 function 0: RealTek 8139 10/100BaseTX
rtk0: interrupting at apic 2 int 17 (irq 12)
rtk0: Ethernet address 00:50:22:83:f9:48
OUI 0x000000 model 0x0000 rev 0 at rtk0 phy 7 not configured
vga1 at pci0 dev 20 function 0: Matrox MGA Millennium II 2164W (rev. 0x00)
wsdisplay0 at vga1 kbdmux 1: console (80x25, vt100 emulation), using wskbd0
wsmux1: connecting to wsdisplay0
isa0 at pcib0
lptprobe: mask ff data 55 failed
lptprobe: mask ff data 55 failed
pcppi0 at isa0 port 0x61
sysbeep0 at pcppi0
isapnp0 at isa0 port 0x279: ISA Plug 'n Play device support
npx0 at isa0 port 0xf0-0xff: using exception 16
isapnp0: no ISA Plug 'n Play devices found
cpu0: prelint0 700<vector=0,delmode=7,dest=0> 0<target=0>
cpu0: prelint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu0: timer0 300c0<vector=c0,delmode=0,masked,dest=0> 0<target=0>
cpu0: pcint0 0<vector=0,delmode=0,dest=0> 0<target=0>
cpu0: lint0 10700<vector=0,delmode=7,masked,dest=0> 0<target=0>
cpu0: lint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu0: err0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
ioapic0: enabling
ioapic0: int1 191<vector=91,delmode=1,dest=0> 0<target=0>
ioapic0: int3 1d1<vector=d1,delmode=1,dest=0> 0<target=0>
ioapic0: int4 1d0<vector=d0,delmode=1,dest=0> 0<target=0>
ioapic0: int7 190<vector=90,delmode=1,dest=0> 0<target=0>
ioapic0: int14 160<vector=60,delmode=1,dest=0> 0<target=0>
ioapic0: int15 161<vector=61,delmode=1,dest=0> 0<target=0>
ioapic0: int17 a170<vector=70,delmode=1,actlo,level,dest=0> 0<target=0>
ioapic0: int19 a162<vector=62,delmode=1,actlo,level,dest=0> 0<target=0>
raidattach: Asked for 8 units
Kernelized RAIDframe activated
IPsec: Initialized Security Association Processing.
scsibus0: waiting 2 seconds for devices to settle...
cd0 at scsibus0 target 6 lun 0: <MATSHITA, CD-R   CW-7502, 4.10> cdrom removable
cd0: sync (100.0ns offset 8), 8-bit (10.000MB/s) transfers
Searching for RAID components...
findroot: can't open dev wd1a (6)
boot device: wd0
root on wd0a dumps on wd0b
mountroot: trying coda...
mountroot: trying msdos...
mountroot: trying cd9660...
isofs: session offset (part 0) 0
mountroot: trying ntfs...
mountroot: trying nfs...
mountroot: trying lfs...
mountroot: trying ext2fs...
mountroot: trying ffs...
root file system type: ffs
cpu1: prelint0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: prelint1 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: timer0 200c0<vector=c0,delmode=0,dest=0> 0<target=0>
cpu1: pcint0 0<vector=0,delmode=0,dest=0> 0<target=0>
cpu1: lint0 10700<vector=0,delmode=7,masked,dest=0> 0<target=0>
cpu1: lint1 400<vector=0,delmode=4,dest=0> 0<target=0>
cpu1: err0 10000<vector=0,delmode=0,masked,dest=0> 0<target=0>
cpu1: CPU 1 running
init: copying out path `/sbin/init' 11
wsdisplay0: screen 1 added (80x25, vt100 emulation)
wsdisplay0: screen 2 added (80x25, vt100 emulation)
wsdisplay0: screen 3 added (80x25, vt100 emulation)
wsdisplay0: screen 4 added (80x25, vt100 emulation)



Patrik Hansson
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.