From owner-freebsd-smp Wed Mar 12 4:28:57 2003 Delivered-To: freebsd-smp@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D276537B404 for ; Wed, 12 Mar 2003 04:28:53 -0800 (PST) Received: from c-24-130-253-104.we.client2.attbi.com (c-24-130-253-104.we.client2.attbi.com [24.130.253.104]) by mx1.FreeBSD.org (Postfix) with ESMTP id CDAD143F93 for ; Wed, 12 Mar 2003 04:28:52 -0800 (PST) (envelope-from obrien@c-24-130-253-104.we.client2.attbi.com) Received: from localhost (localhost [127.0.0.1]) by c-24-130-253-104.we.client2.attbi.com (8.11.1/8.11.1) with ESMTP id h2CCSEK01127 for ; Wed, 12 Mar 2003 04:28:14 -0800 (PST) (envelope-from obrien@c-24-130-253-104.we.client2.attbi.com) Message-Id: <200303121228.h2CCSEK01127@c-24-130-253-104.we.client2.attbi.com> X-Mailer: exmh version 2.2 06/23/2000 with version: MH 6.8.4 #1[UCI] To: freebsd-smp@freebsd.org Subject: Question about number of CPUs Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 12 Mar 2003 04:28:14 -0800 From: "Mike O'Brien" Sender: owner-freebsd-smp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 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: on motherboard npx0: INT 16 interface pcib0: 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: on pcib0 agp0: mem 0xd8000000-0xdfffffff at device 0.0 on pci0 pci0: (vendor=0x8086, dev=0x2551) at 0.1 pcib1: mem 0xe0000000-0xe7ffffff at device 1.0 on pci0 pci1: on pcib1 pci1: at 0.0 irq 2 pci1: at 0.1 pcib2: at device 2.0 on pci0 pci2: on pcib2 pci2: (vendor=0x8086, dev=0x1461) at 28.0 pcib3: at device 29.0 on pci2 pci3: on pcib3 pci2: (vendor=0x8086, dev=0x1461) at 30.0 pcib4: at device 31.0 on pci2 pci4: on pcib4 uhci0: port 0xb800-0xb81f irq 2 at device 29.0 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 uhci1: port 0xb000-0xb01f irq 5 at device 29.1 on pci0 usb1: 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: port 0xb400-0xb41f irq 9 at device 29.2 on pci0 usb2: 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: at 29.7 irq 10 pcib5: at device 30.0 on pci0 IOAPIC #0 intpin 20 -> irq 16 IOAPIC #0 intpin 21 -> irq 17 pci5: on pcib5 pci5: (vendor=0x104c, dev=0x8023) at 3.0 irq 16 em0: port 0xa000-0xa03f mem 0xf8200000-0xf821ffff irq 5 at device 4.0 on pci5 em0: Speed:100 Mbps Duplex:Full pcm0: port 0xa400-0xa41f irq 17 at device 5.0 on pci5 pcm0: (id=0x454d4328) isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: 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: (vendor=0x8086, dev=0x24c3) at 31.3 irq 11 orm0: