From owner-freebsd-stable@FreeBSD.ORG Sat Nov 1 04:36:50 2003 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9D52616A4CE for ; Sat, 1 Nov 2003 04:36:50 -0800 (PST) Received: from mizar.origin-it.net (mizar.origin-it.net [194.8.96.234]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17F6F43FCB for ; Sat, 1 Nov 2003 04:36:49 -0800 (PST) (envelope-from helge.oldach@atosorigin.com) Received: from matar.hbg.de.int.atosorigin.com (dehsfw3e.origin-it.net [194.8.96.68])hA1CaifA053366 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 1 Nov 2003 13:36:47 +0100 (CET) (envelope-from helge.oldach@atosorigin.com) Received: from galaxy.hbg.de.ao-srv.com (galaxy.hbg.de.ao-srv.com [161.89.20.4])ESMTP id hA1CahIn079636 for ; Sat, 1 Nov 2003 13:36:43 +0100 (CET) (envelope-from helge.oldach@atosorigin.com) Received: (from hmo@localhost) by galaxy.hbg.de.ao-srv.com (8.9.3p2/8.9.3/hmo30mar03) id NAA21769 for stable@freebsd.org; Sat, 1 Nov 2003 13:36:42 +0100 (MET) Message-Id: <200311011236.NAA21769@galaxy.hbg.de.ao-srv.com> To: stable@freebsd.org Date: Sat, 1 Nov 2003 13:36:42 +0100 (MET) From: Helge Oldach X-Address: Atos Origin GmbH, Friesenstraße 13, D-20097 Hamburg, Germany X-Phone: +49 40 7886 7464, Fax: +49 40 7886 9464, Mobile: +49 160 4782517 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: CPU1 never used despite HTT? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Nov 2003 12:36:50 -0000 Hi, I am running a Xeon with hyperthreading support. Until last week's HTT modifications, according to ps(1) and top(1) both logicals CPUs were in use. (Processes in CPU0 and CPU1 state; "C" column showing "0" or "1".) This has changed with a recent -STABLE kernel which includes last week's changes to HTT (removing "options HTT"). I am only seeing processes on CPU0 and in "0" state in the "C" column. I am not sure whether the second logical CPU is indeed unused, but concluding from rough performance indicators that might be the case: "make -j2 buildworld" takes as long as "make -j1 buildworld". According to dmesg, the second CPU is indeed launched (see below). Note that this is virtually a GENERIC kernel. The only differences to the shipping GENERIC are: 21,22c21,22 < cpu I386_CPU < cpu I486_CPU --- > #cpu I386_CPU > #cpu I486_CPU 64,65c64,65 < #options SMP # Symmetric MultiProcessor Kernel < #options APIC_IO # Symmetric (APIC) I/O --- > options SMP # Symmetric MultiProcessor Kernel > options APIC_IO # Symmetric (APIC) I/O 238a239 > pseudo-device vlan 10 # VLAN support What's wrong? Helge 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.9-STABLE #1637: Wed Oct 29 13:21:23 CET 2003 toor@localhost:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz CPU: Intel(R) XEON(TM) CPU 1.80GHz (1794.19-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 Features=0x3febfbff Hyperthreading: 2 logical CPUs real memory = 536805376 (524224K bytes) avail memory = 516759552 (504648K bytes) Changing APIC ID for IO APIC #0 from 0 to 2 on chip Changing APIC ID for IO APIC #1 from 0 to 3 on chip Changing APIC ID for IO APIC #2 from 0 to 4 on chip Programming 16 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 Programming 16 pins in IOAPIC #1 Programming 16 pins in IOAPIC #2 FreeBSD/SMP: Multiprocessor motherboard: 2 CPUs cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00050014, at 0xfee00000 io0 (APIC): apic id: 2, version: 0x000f0011, at 0xfec00000 io1 (APIC): apic id: 3, version: 0x000f0011, at 0xfec01000 io2 (APIC): apic id: 4, version: 0x000f0011, at 0xfec02000 Preloaded elf kernel "kernel" at 0xc0550000. Warning: Pentium 4 CPU: PSE disabled Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 9 entries at 0xc00fc490 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #1 intpin 3 -> irq 2 IOAPIC #1 intpin 7 -> irq 7 IOAPIC #1 intpin 11 -> irq 10 pci0: on pcib0 pci0: (vendor=0x1028, dev=0x000c) at 4.0 irq 2 pci0: (vendor=0x1028, dev=0x0008) at 4.1 irq 7 pci0: (vendor=0x1028, dev=0x000d) at 4.2 irq 10 pci0: at 14.0 atapci0: port 0x8b0-0x8bf,0x8d8-0x8db,0x8d0-0x8d7,0x8c8-0x8cb,0x8c0-0x8c7 at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ohci0: mem 0xfe100000-0xfe100fff irq 5 at device 15.2 on pci0 usb0: OHCI version 1.0, legacy support usb0: SMM does not respond, resetting usb0: on ohci0 usb0: USB revision 1.0 uhub0: (0x1166) OHCI root hub, class 9/0, rev 1.00/1.00, addr 1 uhub0: 4 ports with 4 removable, self powered isab0: at device 15.3 on pci0 isa0: on isab0 pcib1: on motherboard pci1: on pcib1 pcib2: on motherboard pci2: on pcib2 pcib3: on motherboard IOAPIC #1 intpin 12 -> irq 11 IOAPIC #1 intpin 13 -> irq 13 pci3: on pcib3 bge0: mem 0xfcf10000-0xfcf1ffff irq 11 at device 6.0 on pci3 bge0: Ethernet address: 00:06:5b:8d:20:5e miibus0: on bge0 brgphy0: on miibus0 brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto bge1: mem 0xfcf00000-0xfcf0ffff irq 13 at device 8.0 on pci3 bge1: Ethernet address: 00:06:5b:8d:20:5f miibus1: on bge1 brgphy1: on miibus1 brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseTX, 1000baseTX-FDX, auto pcib4: on motherboard IOAPIC #1 intpin 14 -> irq 16 pci4: on pcib4 pcib8: at device 8.0 on pci4 IOAPIC #1 intpin 15 -> irq 17 pci5: on pcib8 pci5: (vendor=0x9005, dev=0x00c5) at 6.0 irq 16 pci5: (vendor=0x9005, dev=0x00c5) at 6.1 irq 17 aac0: mem 0xf0000000-0xf7ffffff irq 16 at device 8.1 on pci4 aac0: i960RX 100MHz, 118MB cache memory, optional battery present aac0: Kernel 2.7-1, Build 3170, S/N bc10d3 aac0: Supported Options=75c pcib5: on motherboard pci6: on pcib5 pcib6: on motherboard pci7: on pcib6 pcib7: on motherboard pci8: on pcib7 orm0: