From owner-freebsd-smp@FreeBSD.ORG Tue Jun 10 06:56:01 2003 Return-Path: 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 CF82737B401; Tue, 10 Jun 2003 06:56:01 -0700 (PDT) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 61F8543F85; Tue, 10 Jun 2003 06:55:59 -0700 (PDT) (envelope-from pete@he.iki.fi) Received: from PETEX31 (h81.vuokselantie10.fi [193.64.42.129]) by silver.he.iki.fi (8.12.9/8.11.4) with SMTP id h5ADtrDX014987; Tue, 10 Jun 2003 16:55:53 +0300 (EEST) (envelope-from pete@he.iki.fi) Message-ID: <020b01c32f57$ff6d28b0$812a40c1@PETEX31> From: "Petri Helenius" To: "Brendon and Wendy" , References: <200306092217.08270.wendy.humphrey@comcast.net> Date: Tue, 10 Jun 2003 16:55:47 +0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 cc: freebsd-smp@freebsd.org Subject: Re: Twin CPU machine running with only one cpu? X-BeenThere: freebsd-smp@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: FreeBSD SMP implementation group List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jun 2003 13:56:02 -0000 The CPUs you see are the two logical cores of one of your CPUs. The kernel HLTs one of them by default due to performance issues when running certain loads on hypethreading. Pete ----- Original Message ----- From: "Brendon and Wendy" To: Cc: Sent: Tuesday, June 10, 2003 8:17 AM Subject: Twin CPU machine running with only one cpu? > Dear All, > > Just installed 5.1 RC1 on my Dual Prestonia Xeon box. Works great. In fact > this is the first time i've had much success with the 5.x branch. > > Anyway, heres my question. Despite the fact that I've recompiled my kernel > with SMP and IOAPIC enabled, I seem to have only one CPU running. At boot > time the kernel reports starting CPU#1 at the end of boot time. The machdep.* > systctls claim that I have two cpus, but no matter what I do I cannot get the > CPU load over 48% (for instance running two c programs that loop infinitely > with no delay)! > > Running top shows the "C" column that one only normally gets in SMP mode. > However all processes are assigned to CPU zero. Is it possible that the > system is using two cores on one CPU only? HTT is disabled in the BIOS... > > I've tried with/without ACPI. MPS 1.1/1.4/upgrading to this evenings current > with no change (did not do a buildworld after current might start one when > this mail is sent). > > The machine is a SuperMicro p4dce+. It has run SMP normally in 4.8 as well as > older revisions of 5.x (where is tended to panic a lot!). > > Exerpts from boot process, top and sysctl are below..... > > Thanks for any clues or suggestions. > > > Regards, > Brendon > > /------------------------------------------------------------------------------------------------------------- > / top > /------------------------------------------------------------------------------------------------------------- > > last pid: 1232; load averages: 0.01, 0.11, 0.13 up 0+00:18:34 > 22:12:15 > 43 processes: 3 running, 40 sleeping > CPU states: 0.5% user, 0.0% nice, 0.5% system, 0.2% interrupt, 98.8% idle > Mem: 105M Active, 116M Inact, 58M Wired, 1120K Cache, 60M Buf, 215M Free > Swap: 1003M Total, 1003M Free > > PID USERNAME PRI NICE SIZE RES STATE C TIME WCPU CPU COMMAND > 1158 brendy 96 0 26948K 22716K select 0 0:02 0.05% 0.05% kdeinit > 955 root 96 0 276M 31060K RUN 0 0:09 0.00% 0.00% XFree86 > 1160 brendy 96 0 36444K 31620K select 0 0:07 0.00% 0.00% kmail > 1112 brendy 96 0 27180K 22352K select 0 0:04 0.00% 0.00% kdeinit > 1182 brendy 96 0 35776K 31140K select 0 0:02 0.00% 0.00% kdeinit > 1140 brendy 60 -36 8308K 7512K select 0 0:02 0.00% 0.00% artsd > 1150 brendy 96 0 29116K 24360K select 0 0:01 0.00% 0.00% kdeinit > 1148 brendy 96 0 27924K 23748K select 0 0:01 0.00% 0.00% kdeinit > 1146 brendy 96 0 27180K 22500K select 0 0:01 0.00% 0.00% kdeinit > 953 root 96 0 2336K 1672K select 0 0:01 0.00% 0.00% top > 1213 brendy 96 0 28172K 23336K RUN 0 0:00 0.00% 0.00% kdeinit > 1154 brendy 96 0 26316K 21720K select 0 0:00 0.00% 0.00% kdeinit > 1156 brendy 96 0 25596K 20736K select 0 0:00 0.00% 0.00% kdeinit > 1142 brendy 96 0 29284K 23956K select 0 0:00 0.00% 0.00% kdeinit > 1145 brendy 96 0 25496K 20556K select 0 0:00 0.00% 0.00% kdeinit > 1103 brendy 96 0 23676K 18376K select 0 0:00 0.00% 0.00% kdeinit > 1106 brendy 96 0 23372K 18044K select 0 0:00 0.00% 0.00% kdeinit > > /------------------------------------------------------------------------------------------------------------- > / dmesg > /------------------------------------------------------------------------------------------------------------- > 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 5.1-CURRENT #1: Mon Jun 9 21:41:13 PDT 2003 > root@bigboot.humphrey.world:/usr/obj/usr/src/sys/SMP > Preloaded elf kernel "/boot/kernel/kernel" at 0xc0794000. > Preloaded elf module "/boot/kernel/linux.ko" at 0xc07941f4. > Preloaded elf module "/boot/kernel/acpi.ko" at 0xc07942a0. > Timecounter "i8254" frequency 1193182 Hz > Timecounter "TSC" frequency 1982523548 Hz > CPU: Intel(R) XEON(TM) CPU 2.00GHz (1982.52-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0xf24 Stepping = 4 > > Features=0x3febfbff > Hyperthreading: 2 logical CPUs > real memory = 536805376 (511 MB) > avail memory = 513204224 (489 MB) > Programming 24 pins in IOAPIC #0 > IOAPIC #0 intpin 2 -> irq 0 > FreeBSD/SMP: Multiprocessor System Detected: 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: 0x00178020, at 0xfec00000 > Pentium Pro MTRR support enabled > npx0: on motherboard > npx0: INT 16 interface > acpi0: on motherboard > pcibios: BIOS version 2.10 > Using $PIR table, 9 entries at 0xc00fded0 > acpi0: power button is handled as a fixed feature programming model. > Timecounter "ACPI-fast" frequency 3579545 Hz > acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 > acpi_cpu0: port 0x530-0x537 on acpi0 > acpi_cpu1: port 0x530-0x537 on acpi0 > acpi_cpu2: port 0x530-0x537 on acpi0 > acpi_cpu3: port 0x530-0x537 on acpi0 > acpi_tz0: on acpi0 > acpi_button0: on acpi0 > pcib0: port 0x4000-0x40f7,0xcf8-0xcff on acpi0 > pci0: on pcib0 > IOAPIC #0 intpin 19 -> irq 2 > IOAPIC #0 intpin 23 -> irq 3 > agp0: mem 0xe0000000-0xe3ffffff at device 0.0 > on pci0 > pcib1: at device 1.0 on pci0 > pci1: on pcib1 > IOAPIC #0 intpin 22 -> irq 5 > pci1: at device 0.0 (no driver attached) > pcib2: at device 2.0 on pci0 > pcib2: could not get PCI interrupt routing table for \\_SB_.PCI0.HUBA - > AE_NOT_FOUND > pci2: on pcib2 > pcib3: at device 31.0 on pci2 > ACPI-0188: *** Error: No object was returned from > [\\_SB_.PCI0.HUBA.HUBB._PRT] (Node 0xc401e0c0), AE_NOT_EXIST > pcib3: could not get PCI interrupt routing table for \\_SB_.PCI0.HUBA.HUBB - > AE_NOT_EXIST > pci3: on pcib3 > pci3: at device 0.0 (no driver > attached) > pcib4: at device 30.0 on pci0 > pci4: on pcib4 > IOAPIC #0 intpin 17 -> irq 7 > IOAPIC #0 intpin 16 -> irq 10 > pcm0: port 0xc000-0xc01f irq 7 at device 1.0 on pci4 > pcm0: > fxp0: port 0xc800-0xc83f > mem 0xe7000000-0xe70fffff,0xe7105000-0xe7105fff irq 10 at device 4.0 on pci4 > fxp0: Ethernet address 00:30:48:23:23:ca > miibus0: on fxp0 > inphy0: on miibus0 > inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > fwohci0: mem > 0xe7100000-0xe7103fff,0xe7104000-0xe71047ff irq 10 at device 7.0 on pci4 > fwohci0: OHCI version 1.0 (ROM=1) > fwohci0: No. of Isochronous channel is 4. > fwohci0: EUI64 00:30:95:26:b0:03:35:68 > fwohci0: Phy 1394a available S400, 3 ports. > fwohci0: Link S400, max_rec 2048 bytes. > firewire0: on fwohci0 > if_fwe0: on firewire0 > if_fwe0: Fake Ethernet address: 02:30:95:03:35:68 > sbp0: on firewire0 > fwohci0: Initiate bus reset > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port 0xf000-0xf00f at device 31.1 on > pci0 > ata0: at 0x1f0 irq 14 on atapci0 > ata1: at 0x170 irq 15 on atapci0 > uhci0: port 0xd000-0xd01f irq > 2 at device 31.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 > uscanner0: EPSON EPSON Scanner, rev 1.10/1.00, addr 2 > pci0: at device 31.3 (no driver attached) > uhci1: port 0xd400-0xd41f irq > 3 at device 31.4 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 > atkbdc0: port 0x64,0x60 irq 1 on acpi0 > atkbd0: flags 0x1 irq 1 on atkbdc0 > kbd0 at atkbd0 > psm0: irq 12 on atkbdc0 > psm0: model IntelliMouse, device ID 3 > orm0: