From owner-freebsd-hackers@FreeBSD.ORG Tue Mar 10 15:58:06 2015 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 02197E52 for ; Tue, 10 Mar 2015 15:58:06 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.22]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mout.gmx.net", Issuer "TeleSec ServerPass DE-1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F578263 for ; Tue, 10 Mar 2015 15:58:05 +0000 (UTC) Received: from [192.168.0.143] ([95.91.226.153]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0McUnM-1YDpZd0156-00HhcU; Tue, 10 Mar 2015 16:52:37 +0100 Message-ID: <54FF1343.1020705@gmx.de> Date: Tue, 10 Mar 2015 16:52:35 +0100 From: "lokadamus@gmx.de" User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: "Pokala, Ravi" , Rui Paulo Subject: Re: detecting hyperthreading References: <9F2E1411-B517-4BC8-AF61-BB15EE35083C@me.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:YN9ynNoPdAe7EVkk8Frvki7RowOAJCL+kTwo/4veiJk6ysfto82 o2Gbe8x21vsJmeLzT9G4UFG3syGYfmHc9yRPSobWLam9mKYO3bcxuxO6gG8k/Gns/D/qQF/ kKVXvHiUcr2LIWBe8SQsI2NLF0nkPAP5/Mw5aNXxoCHOKY9wfG9xbqtavDea7vMQl3knL6I DbSy0bViK2DpFS0Hcejlw== X-UI-Out-Filterresults: notjunk:1; Cc: "freebsd-hackers@freebsd.org" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Mar 2015 15:58:06 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 On 03/10/15 02:24, Pokala, Ravi wrote: > -----Original Message----- From: Rui Paulo Date: > 2015-03-09, Monday at 18:19 To: Ravi Pokala > Cc: "freebsd-hackers@freebsd.org" > Subject: Re: detecting hyperthreading > >> I think that sysctl didn't fully control hyperthreading: you can >> disable it on the BIOS and FreeBSD never exported that >> information. If you used that tunable, it would simply disable >> the Pentium 4 Hyperthreading. > > I never tried to *change* it at runtime; I just used it's > *existence* as an indicator that HT was enabled. (Aside - why did > it not exist at all when HT was disabled, as opposed to always > existing and just having zero/non-zero values?) > > -Ravi > >> -- Rui Paulo > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To > unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > Have you look at dmesg? My system is a P4 with HTT. dmesg |more Copyright (c) 1992-2014 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 10.1-RELEASE-p6 #0: Tue Feb 24 18:57:59 UTC 2015 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC i386 FreeBSD clang version 3.4.1 (tags/RELEASE_34/dot1-final 208032) 20140512 CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (3000.00-MHz 686-class CPU) Origin = "GenuineIntel" Id = 0xf29 Family = 0xf Model = 0x2 Stepping = 9 Features=0xbfebfbff Features2=0x4400 real memory = 4294967296 (4096 MB) avail memory = 3396710400 (3239 MB) Event timer "LAPIC" quality 400 ACPI APIC Table: <7536MS A7536200> FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs FreeBSD/SMP: 1 package(s) x 1 core(s) x 2 HTT threads cpu0 (BSP): APIC ID: 0 cpu1 (AP/HT): APIC ID: 1 ioapic0: Changing APIC ID to 2 ioapic0 irqs 0-23 on motherboard ... and so on ... Greeting