From owner-freebsd-smp@FreeBSD.ORG Thu Jan 15 02:50:44 2004 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 557CD16A4CE for ; Thu, 15 Jan 2004 02:50:44 -0800 (PST) Received: from jess.glam.ac.uk (jess.glam.ac.uk [193.63.147.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC1B643D48 for ; Thu, 15 Jan 2004 02:50:39 -0800 (PST) (envelope-from jdhall@glam.ac.uk) Received: from ems3.glam.ac.uk ([193.63.150.66]) by jess.glam.ac.uk with esmtp (Exim 3.35 #1) id 1Ah51R-000398-00 for freebsd-smp@freebsd.org; Thu, 15 Jan 2004 10:46:45 +0000 Received: by ems3.glam.ac.uk with Internet Mail Service (5.5.2657.72) id ; Thu, 15 Jan 2004 10:48:16 -0000 Message-ID: From: "Hall J D (ISeLS)" To: "'freebsd-smp@freebsd.org'" Date: Thu, 15 Jan 2004 10:48:15 -0000 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain; charset="iso-8859-1" Subject: machdep.hlt_logical_cpus missing in 4.9-Release? 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: Thu, 15 Jan 2004 10:50:44 -0000 I've recently installed 4.9-Release (from the ISOs) on a twin Xeon system and compiled a generic SMP kernel (GENERIC with SMP and APIC_IO enabled). The problem I'm having is the system is using the logical HyperThreading CPUs even though I don't want it to. The errata for 4.9-Release says that the logical CPUs are prevented from executing user processes by default, they are not on my system. It also says you can control this behaviour by change the value of the machdep.hlt_logical_cpus sysctl(8) variable. My sysctl doesn't seem to know about this variable. I've checked the archives and someone else had this problem back in November but I can't see any replies other than "machdep.hlt_logical_cpus should be there". Can anyone offer some advise please. Thanks, Jonathan Output from uname -a FreeBSD parker.isd.glam.ac.uk 4.9-RELEASE FreeBSD 4.9-RELEASE #0: Tue Jan 6 10:56:52 GMT 2004 jdhall@parker.isd.glam.ac.uk:/usr/src/sys/compile/GENSMP i386 Output from sysctl -A machdep machdep.consdev: { major = 12, minor = 255 } machdep.adjkerntz: 0 machdep.disable_rtc_set: 0 machdep.bootinfo: Format:S,bootinfo Length:84 Dump:0x01000000942404000000000000000000... machdep.wall_cmos_clock: 0 machdep.cs_recv_delay: 570 machdep.wi_cache_mcastonly: 0 machdep.wi_cache_iponly: 1 machdep.do_dump: 1 machdep.pccard.mem_start: 851968 machdep.pccard.mem_end: 983039 machdep.enable_panic_key: 0 machdep.apm_suspend_delay: 1 machdep.apm_standby_delay: 1 machdep.ispc98: 0 machdep.msgbuf: machdep.msgbuf_clear: 0 machdep.cpu_idle_hlt: 1 machdep.guessed_bootdev: /dev/da0s1a machdep.smp_active: 1 machdep.smp_cpus: 4 machdep.invltlb_ok: 1 machdep.do_page_zero_idle: 1 machdep.forward_irq_enabled: 1 machdep.forward_signal_enabled: 1 machdep.forward_roundrobin_enabled: 1 machdep.hlt_cpus: 0 machdep.panic_on_nmi: 1 machdep.i8254_freq: 1193182 machdep.conrclk: 1843200 machdep.conspeed: 9600 Output from 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 4.9-RELEASE #0: Tue Jan 6 10:56:52 GMT 2004 jdhall@parker.isd.glam.ac.uk:/usr/src/sys/compile/GENSMP Timecounter "i8254" frequency 1193182 Hz CPU: Intel(R) Xeon(TM) CPU 2.66GHz (2666.79-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf29 Stepping = 9 Features=0xbfebfbff Hyperthreading: 2 logical CPUs real memory = 2147418112 (2097088K bytes) avail memory = 2086199296 (2037304K bytes) Programming 16 pins in IOAPIC #0 IOAPIC #0 intpin 2 -> irq 0 Programming 16 pins in IOAPIC #1 Programming 16 pins in IOAPIC #2 Programming 16 pins in IOAPIC #3 FreeBSD/SMP: Multiprocessor motherboard: 4 CPUs cpu0 (BSP): apic id: 0, version: 0x00050014, at 0xfee00000 cpu1 (AP): apic id: 1, version: 0x00050014, at 0xfee00000 cpu2 (AP): apic id: 6, version: 0x00050014, at 0xfee00000 cpu3 (AP): apic id: 7, version: 0x00050014, at 0xfee00000 io0 (APIC): apic id: 8, version: 0x000f0011, at 0xfec00000 io1 (APIC): apic id: 9, version: 0x000f0011, at 0xfec01000 io2 (APIC): apic id: 10, version: 0x000f0011, at 0xfec02000 io3 (APIC): apic id: 11, version: 0x000f0011, at 0xfec03000 Preloaded elf kernel "kernel" at 0xc0550000. Preloaded userconfig_script "/boot/kernel.conf" at 0xc055009c. Warning: Pentium 4 CPU: PSE disabled Pentium Pro MTRR support enabled md0: Malloc disk Using $PIR table, 11 entries at 0xc00f4ab0 npx0: on motherboard npx0: INT 16 interface pcib0: on motherboard IOAPIC #1 intpin 12 -> irq 2 IOAPIC #1 intpin 10 -> irq 5 IOAPIC #1 intpin 14 -> irq 9 IOAPIC #1 intpin 15 -> irq 10 IOAPIC #1 intpin 13 -> irq 11 IOAPIC #1 intpin 1 -> irq 16 pci0: on pcib0 em0: port 0xc800-0xc83f mem 0xfeb80000-0xfeb9ffff irq 2 at device 8.0 on pci0 em0: Speed:N/A Duplex:N/A em1: port 0xd000-0xd03f mem 0xfeba0000-0xfebbffff irq 5 at device 9.0 on pci0 em1: Speed:N/A Duplex:N/A ahd0: port 0xd400-0xd4ff,0xd800-0xd8ff mem 0xfebfa000-0xfebfbfff irq 9 at device 10.0 on pci0 aic7902: Ultra320 Wide Channel A, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs ahd1: port 0xe000-0xe0ff,0xe400-0xe4ff mem 0xfebfc000-0xfebfdfff irq 10 at device 10.1 on pci0 aic7902: Ultra320 Wide Channel B, SCSI Id=7, PCI 33 or 66Mhz, 512 SCBs pci0: at 11.0 irq 11 atapci0: port 0xffa0-0xffaf,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 at device 15.1 on pci0 ata0: at 0x1f0 irq 14 on atapci0 ata1: at 0x170 irq 15 on atapci0 ohci0: mem 0xfebfe000-0xfebfefff irq 16 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 pcib255: on motherboard pci255: on pcib255 pcib1: on motherboard pci1: on pcib1 orm0: