From owner-freebsd-hackers@FreeBSD.ORG Mon Mar 22 14:51:16 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12C78106574A; Mon, 22 Mar 2010 14:51:11 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 5A0388FC22; Mon, 22 Mar 2010 14:51:11 +0000 (UTC) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 0DFB046B82; Mon, 22 Mar 2010 10:51:11 -0400 (EDT) Received: from jhbbsd.localnet (smtp.hudson-trading.com [209.249.190.9]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 4A7168A025; Mon, 22 Mar 2010 10:51:07 -0400 (EDT) From: John Baldwin To: Garrett Cooper Date: Mon, 22 Mar 2010 09:47:53 -0400 User-Agent: KMail/1.12.1 (FreeBSD/7.3-CBSD-20100217; KDE/4.3.1; amd64; ; ) References: <7d6fde3d1003211540n30a7041dmd187b57efd0e9242@mail.gmail.com> In-Reply-To: <7d6fde3d1003211540n30a7041dmd187b57efd0e9242@mail.gmail.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201003220947.53722.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Mon, 22 Mar 2010 10:51:07 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.7 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: FreeBSD-Hackers , Colin Percival Subject: Re: Logical CPUs cannot be disabled via W3520 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Mar 2010 14:51:16 -0000 On Sunday 21 March 2010 6:40:17 pm Garrett Cooper wrote: > Someone on the forums [1] noticed that machdep.hlt_logical_cpus > was unavailable on their system, and I did some poking around and > noticed that it was as well. Should SMT logical CPUs be disable(-able) > via machdep.hlt_logical_cpus as well or is it just classic HTT based > chips? I suspect that it should work for SMT as well. > Thanks, > -Garrett > > $ sysctl machdep. > machdep.acpi_timer_freq: 3579545 > machdep.enable_panic_key: 0 > machdep.adjkerntz: 25200 > machdep.wall_cmos_clock: 1 > machdep.disable_rtc_set: 0 > machdep.acpi_root: 1029056 > machdep.disable_mtrrs: 0 > machdep.idle: acpi > machdep.idle_available: spin, mwait, mwait_hlt, hlt, acpi, > machdep.hlt_cpus: 0 > machdep.prot_fault_translation: 0 > machdep.panic_on_nmi: 1 > machdep.kdb_on_nmi: 1 > machdep.tsc_freq: 2694121808 > machdep.i8254_freq: 1193182 > $ sysctl hw.machine hw.model > hw.machine: amd64 > hw.model: Intel(R) Xeon(R) CPU W3520 @ 2.67GHz > > dmesg snippet: > > CPU: Intel(R) Xeon(R) CPU W3520 @ 2.67GHz (2694.12-MHz K8-class CPU) > Origin = "GenuineIntel" Id = 0x106a5 Family = 6 Model = 1a Stepping = 5 > Features=0xbfebfbff > Features2=0x9ce3bd > AMD Features=0x28100800 > AMD Features2=0x1 > TSC: P-state invariant > real memory = 12884901888 (12288 MB) > avail memory = 12379992064 (11806 MB) > ACPI APIC Table: <091109 APIC2100> > FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs > FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 SMT threads > cpu0 (BSP): APIC ID: 0 > cpu1 (AP): APIC ID: 1 > cpu2 (AP): APIC ID: 2 > cpu3 (AP): APIC ID: 3 > cpu4 (AP): APIC ID: 4 > cpu5 (AP): APIC ID: 5 > cpu6 (AP): APIC ID: 6 > cpu7 (AP): APIC ID: 7 > > [1] http://forums.freebsd.org/showthread.php?t=12527 > -- John Baldwin