From owner-freebsd-stable@FreeBSD.ORG Wed Dec 24 14:17:24 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6B28106568E for ; Wed, 24 Dec 2008 14:17:24 +0000 (UTC) (envelope-from 0ld@ukr.net) Received: from infocom.km.ua (infocom.km.ua [78.152.160.1]) by mx1.freebsd.org (Postfix) with ESMTP id 2EE188FC20 for ; Wed, 24 Dec 2008 14:17:23 +0000 (UTC) (envelope-from 0ld@ukr.net) Received: from old.ic (dog.infocom.km.ua [78.152.160.4]) by infocom.km.ua (8.14.2/8.14.2/ic) with ESMTP id mBODaA91038254 for ; Wed, 24 Dec 2008 15:36:16 +0200 (EET) (envelope-from 0ld@ukr.net) From: Alexander Melnik <0ld@ukr.net> To: "FreeBSD Stable Mailing List" Date: Wed, 24 Dec 2008 15:36:10 +0200 User-Agent: KMail/1.9.10 MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-r" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200812241536.10563.0ld@ukr.net> Subject: can't disable hyperthreading on 7.1 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Dec 2008 14:17:25 -0000 Hi I have several computers with 2 xeon processors with hyperthreading under FreeBSD 7.1-RC2 and in any case can not turn off hyperthreading: [old@vmat ~]$ cat /boot/loader.conf machdep.hyperthreading_allowed="0" machdep.hlt_logical_cpus="1" [old@vmat ~]$ sysctl machdep.hyperthreading_allowed machdep.hyperthreading_allowed: 0 [old@vmat ~]$ sysctl machdep.hlt_logical_cpus machdep.hlt_logical_cpus: 1 [old@vmat ~]$ sysctl hw.ncpu hw.ncpu: 4 If machdep.hyperthreading_allowed = "0", the hw.ncpu must be equal to 2? [old@vmat ~]$ top -nd 1 last pid: 825; load averages: 0.00, 0.00, 0.00 up 0+00:21:19 15:22:24 17 processes: 1 running, 16 sleeping Mem: 6228K Active, 6984K Inact, 20M Wired, 9520K Buf, 960M Free Swap: 2048M Total, 2048M Free PID USERNAME THR PRI NICE SIZE RES STATE C TIME WCPU COMMAND 762 root 1 4 0 8428K 3936K sbwait 2 0:00 0.00% sshd 767 old 1 8 0 4396K 2212K wait 2 0:00 0.00% bash 765 old 1 44 0 8428K 3952K select 0 0:00 0.00% sshd 571 root 1 44 0 3184K 1200K select 1 0:00 0.00% syslogd 706 root 1 44 0 5876K 3196K select 0 0:00 0.00% sendmail 716 root 1 8 0 3212K 1276K nanslp 2 0:00 0.00% cron 759 root 1 5 0 3184K 1088K ttyin 2 0:00 0.00% getty 758 root 1 5 0 3184K 1088K ttyin 3 0:00 0.00% getty 760 root 1 5 0 3184K 1088K ttyin 0 0:00 0.00% getty 700 root 1 44 0 5752K 3276K select 0 0:00 0.00% sshd 710 smmsp 1 20 0 5876K 3200K pause 2 0:00 0.00% sendmail 297 root 1 96 0 3128K 1208K select 0 0:00 0.00% dhclient 737 root 1 96 0 3240K 1152K select 3 0:00 0.00% inetd 163 root 1 20 0 1380K 804K pause 0 0:00 0.00% adjkerntz 512 root 1 44 0 1888K 564K select 0 0:00 0.00% devd 313 _dhcp 1 44 0 3128K 1320K select 0 0:00 0.00% dhclient 825 old 1 44 0 3496K 1656K CPU0 0 0:00 0.00% top If machdep.hlt_logical_cpus = "1" in the output top in any case should not be seen processors 2 and 3? [old@vmat ~]$ uname -a FreeBSD vmat.ic 7.1-RC2 FreeBSD 7.1-RC2 #0: Wed Dec 24 13:54:22 EET 2008 root@vmat.ic:/usr/obj/usr/src/sys/GENERIC i386 [old@vmat ~]$ dmesg Copyright (c) 1992-2008 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 is a registered trademark of The FreeBSD Foundation. FreeBSD 7.1-RC2 #0: Wed Dec 24 13:54:22 EET 2008 root@vmat.ic:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: Intel(R) Xeon(TM) CPU 2.80GHz (2793.02-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf43 Stepping = 3 Features=0xbfebfbff Features2=0x641d AMD Features=0x20100000 Logical CPUs per core: 2 real memory = 1073479680 (1023 MB) avail memory = 1036804096 (988 MB) ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs cpu0 (BSP): APIC ID: 0 cpu1 (AP): APIC ID: 1 cpu2 (AP): APIC ID: 6 cpu3 (AP): APIC ID: 7 ioapic0: Changing APIC ID to 8 ioapic1: Changing APIC ID to 9 ioapic2: Changing APIC ID to 10 ioapic0 irqs 0-23 on motherboard ioapic1 irqs 32-55 on motherboard ioapic2 irqs 64-87 on motherboard kbd1 at kbdmux0 ath_hal: 0.9.20.3 (AR5210, AR5211, AR5212, RF5111, RF5112, RF2413, RF5413) acpi0: on motherboard acpi0: [ITHREAD] acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 acpi_hpet0: iomem 0xfed00000-0xfed003ff on acpi0 Timecounter "HPET" frequency 14318180 Hz quality 900 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 pcib1: at device 2.0 on pci0 pci1: on pcib1 pcib2: at device 0.0 on pci1 pci2: on pcib2 mpt0: port 0xec00-0xecff mem 0xfe9f0000-0xfe9fffff,0xfe9e0000-0xfe9effff irq 42 at device 4.0 on pci2 mpt0: [ITHREAD] mpt0: MPI Version=1.2.12.0 amr0: mem 0xf80f0000-0xf80fffff irq 32 at device 6.0 on pci2 amr0: [ITHREAD] amr0: delete logical drives supported by controller amr0: Firmware 352D, BIOS 1.10, 64MB RAM pcib3: at device 0.2 on pci1 pci3: on pcib3 em0: port 0xdcc0-0xdcff mem 0xfe7e0000-0xfe7fffff irq 69 at device 7.0 on pci3 em0: [FILTER] em0: Ethernet address: 00:14:22:75:5a:54 pcib4: at device 4.0 on pci0 pci4: on pcib4 pcib5: at device 6.0 on pci0 pci5: on pcib5 uhci0: port 0xbce0-0xbcff irq 16 at device 29.0 on pci0 uhci0: [GIANT-LOCKED] uhci0: [ITHREAD] usb0: on uhci0 usb0: USB revision 1.0 uhub0: on usb0 uhub0: 2 ports with 2 removable, self powered uhci1: port 0xbcc0-0xbcdf irq 19 at device 29.1 on pci0 uhci1: [GIANT-LOCKED] uhci1: [ITHREAD] usb1: on uhci1 usb1: USB revision 1.0 uhub1: on usb1 uhub1: 2 ports with 2 removable, self powered uhci2: port 0xbca0-0xbcbf irq 18 at device 29.2 on pci0 uhci2: [GIANT-LOCKED] uhci2: [ITHREAD] usb2: on uhci2 usb2: USB revision 1.0 uhub2: on usb2 uhub2: 2 ports with 2 removable, self powered ehci0: mem 0xfeb00000-0xfeb003ff irq 23 at device 29.7 on pci0 ehci0: [GIANT-LOCKED] ehci0: [ITHREAD] usb3: EHCI version 1.0 usb3: companion controllers, 2 ports each: usb0 usb1 usb2 usb3: on ehci0 usb3: USB revision 2.0 uhub3: on usb3 uhub3: 6 ports with 6 removable, self powered pcib6: at device 30.0 on pci0 pci6: on pcib6 pci6: at device 3.0 (no driver attached) vgapci0: port 0xc800-0xc8ff mem 0xf0000000-0xf7ffffff,0xfe3f0000-0xfe3fffff irq 17 at device 5.0 on pci6 isab0: at device 31.0 on pci0 isa0: on isab0 atapci0: port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0xfc00-0xfc0f at device 31.1 on pci0 ata0: on atapci0 ata0: [ITHREAD] ata1: on atapci0 ata1: [ITHREAD] fdc0: port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on acpi0 fdc0: [FILTER] fd0: <1440-KB 3.5" drive> on fdc0 drive 0 atkbdc0: port 0x60,0x64 irq 1 on acpi0 atkbd0: irq 1 on atkbdc0 kbd0 at atkbd0 atkbd0: [GIANT-LOCKED] atkbd0: [ITHREAD] sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 sio0: type 16550A sio0: [FILTER] cpu0: on acpi0 p4tcc0: on cpu0 cpu1: on acpi0 p4tcc1: on cpu1 cpu2: on acpi0 p4tcc2: on cpu2 cpu3: on acpi0 p4tcc3: on cpu3 pmtimer0 on isa0 orm0: at iomem 0xc0000-0xcafff,0xcb000-0xcb7ff,0xec000-0xeffff pnpid ORM0000 on isa0 ppc0: at port 0x378-0x37f irq 7 on isa0 ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode ppc0: FIFO with 16/16/8 bytes threshold ppbus0: on ppc0 ppbus0: [ITHREAD] plip0: on ppbus0 plip0: WARNING: using obsoleted IFF_NEEDSGIANT flag lpt0: on ppbus0 lpt0: Interrupt-driven port ppi0: on ppbus0 ppc0: [GIANT-LOCKED] ppc0: [ITHREAD] sc0: at flags 0x100 on isa0 sc0: VGA <16 virtual consoles, flags=0x300> sio1: configured irq 3 not in bitmap of probed irqs 0 sio1: port may not be enabled vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 Timecounters tick every 1.000 msec acd0: CDRW at ata0-master UDMA33 Waiting 5 seconds for SCSI devices to settle amr0: delete logical drives supported by controller amrd0: on amr0 amrd0: 69360MB (142049280 sectors) RAID 5 (optimal) ses0 at amr0 bus 0 target 6 lun 0 ses0: Fixed Processor SCSI-2 device ses0: 166.664MB/s transfers (41.666MHz, offset 31, 32bit) ses0: SAF-TE Compliant Device SMP: AP CPU #2 Launched! SMP: AP CPU #1 Launched! SMP: AP CPU #3 Launched! Trying to mount root from ufs:/dev/amrd0s1a Sorry for my bad English. -- Bye! A.M.