Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Mar 2003 04:28:14 -0800
From:      "Mike O'Brien" <obrien@leonardo.net>
To:        freebsd-smp@freebsd.org
Subject:   Question about number of CPUs
Message-ID:  <200303121228.h2CCSEK01127@c-24-130-253-104.we.client2.attbi.com>

next in thread | raw e-mail | index | archive | help
	I read over the recent thread about the number of CPUs
detected and reported at boot time.  If I followed this correctly,
dual Xeon processors should be detected as four CPUs due to
hyperthreading, but one person reported that only two were being
detected because the APIC IDs of the two CPUs were expected to be 0
and 2, but were coming back as 0 and 3 instead.  (Presumably the
other pair of CPUs would report ids of 1 and 3.)

	I have the opposite problem.  My dual Xeons are reporting
APIC IDs of 0 and 1.  Yes, hyperthreading is turned on in the BIOS;
I checked.  'dmesg' output follows.

	Any ideas or suggestions?

Copyright (c) 1992-2003 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.8-RC #5: Wed Mar 12 02:47:28 PST 2003
    root@.we1.client2.attbi.com:/usr/obj/usr/src/sys/GENERIC
Timecounter "i8254"  frequency 1193182 Hz
CPU: Intel(R) Xeon(TM) CPU 2.40GHz (2399.33-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0xf27  Stepping = 7
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Hyperthreading: 2 logical CPUs
real memory  = 1073676288 (1048512K bytes)
config> di bt0
config> di adv0
config> q
avail memory = 1039396864 (1015036K bytes)
Changing APIC ID for IO APIC #0 from 0 to 4 on chip
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
Programming 24 pins in IOAPIC #1
Programming 24 pins in IOAPIC #2
FreeBSD/SMP: Multiprocessor motherboard
 cpu0 (BSP): apic id:  0, version: 0x00050014, at 0xfee00000
 cpu1 (AP):  apic id:  1, version: 0x00050014, at 0xfee00000
 io0 (APIC): apic id:  4, version: 0x00178020, at 0xfec00000
 io1 (APIC): apic id:  5, version: 0x00178020, at 0xfec80000
 io2 (APIC): apic id:  6, version: 0x00178020, at 0xfec80400
Preloaded elf kernel "kernel" at 0xc0583000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc058309c.
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 13 entries at 0xc00fde90
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
IOAPIC #0 intpin 16 -> irq 2
IOAPIC #0 intpin 19 -> irq 5
IOAPIC #0 intpin 18 -> irq 9
IOAPIC #0 intpin 23 -> irq 10
IOAPIC #0 intpin 17 -> irq 11
pci0: <PCI bus> on pcib0
agp0: <Intel Generic host to PCI bridge> mem 0xd8000000-0xdfffffff at device 0.0 on pci0
pci0: <unknown card> (vendor=0x8086, dev=0x2551) at 0.1
pcib1: <PCI to PCI bridge (vendor=8086 device=2552)> mem 0xe0000000-0xe7ffffff at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <ATI model 4e44 graphics accelerator> at 0.0 irq 2
pci1: <ATI model 4e64 graphics accelerator> at 0.1
pcib2: <PCI to PCI bridge (vendor=8086 device=2553)> at device 2.0 on pci0
pci2: <PCI bus> on pcib2
pci2: <unknown card> (vendor=0x8086, dev=0x1461) at 28.0
pcib3: <PCI to PCI bridge (vendor=8086 device=1460)> at device 29.0 on pci2
pci3: <PCI bus> on pcib3
pci2: <unknown card> (vendor=0x8086, dev=0x1461) at 30.0
pcib4: <PCI to PCI bridge (vendor=8086 device=1460)> at device 31.0 on pci2
pci4: <PCI bus> on pcib4
uhci0: <Intel 82801DB (ICH4) USB controller USB-A> port 0xb800-0xb81f irq 2 at device 29.0 on pci0
usb0: <Intel 82801DB (ICH4) USB controller USB-A> 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
uhci1: <Intel 82801DB (ICH4) USB controller USB-B> port 0xb000-0xb01f irq 5 at device 29.1 on pci0
usb1: <Intel 82801DB (ICH4) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801DB (ICH4) USB controller USB-C> port 0xb400-0xb41f irq 9 at device 29.2 on pci0
usb2: <Intel 82801DB (ICH4) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: <USB controller> at 29.7 irq 10
pcib5: <Intel 82801BA/BAM (ICH2) Hub to PCI bridge> at device 30.0 on pci0
IOAPIC #0 intpin 20 -> irq 16
IOAPIC #0 intpin 21 -> irq 17
pci5: <PCI bus> on pcib5
pci5: <unknown card> (vendor=0x104c, dev=0x8023) at 3.0 irq 16
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.4.10> port 0xa000-0xa03f mem 0xf8200000-0xf821ffff irq 5 at device 4.0 on pci5
em0:  Speed:100 Mbps  Duplex:Full
pcm0: <Creative EMU10K1> port 0xa400-0xa41f irq 17 at device 5.0 on pci5
pcm0: <unknown ac97 codec> (id=0x454d4328)
isab0: <PCI to ISA bridge (vendor=8086 device=24c0)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH4 ATA100 controller> port 0xf000-0xf00f,0-0x3,0-0x7,0-0x3,0-0x7 irq 2 at device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <unknown card> (vendor=0x8086, dev=0x24c3) at 31.3 irq 11
orm0: <Option ROMs> at iomem 0xc0000-0xccfff,0xd0000-0xd7fff on isa0
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
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model MouseMan+, device ID 0
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=0x300>
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: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 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
SMP: AP CPU #1 Launched!
ad0: 76319MB <WDC WD800JB-00CRA1> [155061/16/63] at ata0-master UDMA100
ad1: 76319MB <WDC WD800JB-00CRA1> [155061/16/63] at ata0-slave UDMA100
acd0: DVD-R <SONY DVD RW DRU-500A> at ata1-master PIO4
Mounting root from ufs:/dev/ad1s1a



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




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