Date: Wed, 21 Sep 2011 01:00:15 +0100 From: RW <rwmaillists@googlemail.com> To: freebsd-questions@freebsd.org Subject: Re: How can I disable hyperthreads, but NOT smp ? Message-ID: <20110921010015.22e2586a@gumby.homeunix.com> In-Reply-To: <4E790572.10602@blueapex.co.uk> References: <1316550882.13474.YahooMailClassic@web121217.mail.ne1.yahoo.com> <4E790572.10602@blueapex.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 20 Sep 2011 22:28:18 +0100 Richard Collyer wrote: > On 20/09/2011 21:34, Jason Usher wrote: > > FreeBSD 6.4-RELEASE system with two physical CPUs, each of which > > are HT capable. From dmesg: > > > > cpu0 (BSP): APIC ID: 0 > > cpu1 (AP): APIC ID: 1 > > cpu2 (AP): APIC ID: 6 > > cpu3 (AP): APIC ID: 7 > > > > I also see this: > > > > machdep.hyperthreading_allowed: 0 > > How can I disable HT completely, but still retain ALL the benefits > > of SMP ? > > > > Thanks. > > It's usually a setting in the BIOS to disable Hyperthreading then > reconfigure the kernel to only use 2 cores (which it might do > automatically). > > Hyperthreading is outside the world of FreeBSD. As far as it knows > there is still 4 "logical processors". It's not completely outside; an OS should still be able to determine which logical CPUs are on the same core. And, presumably machdep.hyperthreading_allowed=0 tells the scheduler not to use the additional logical CPUs. I'm wondering if hyperthreading is unused, but the full set of logical CPU is still displayed, or perhaps 6.4 is failing to recognise the hardware.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110921010015.22e2586a>