Hyperthreading hurts 5.3?
keramida at ceid.upatras.gr
Wed Jan 12 02:36:58 PST 2005
On 2005-01-11 23:52, Timothy Luoma <lists at tntluoma.com> wrote:
>On Jan 11, 2005, at 8:43 PM, Giorgos Keramidas wrote:
>>On 2005-01-11 19:52, "Timothy J. Luoma" <lists at tntluoma.com> wrote:
>>> summary: should I disable hypertheading in the BIOS when running 5.3?
>>> If YES, I wasn't clear if people meant "disable in BIOS" or just some
>>> configuration setting in a *.conf file.
>> FWIW, that should be enough, as far as FreeBSD is concerned.
> sorry to be dense, but which should be enough, BIOS or conf file?
Oh, sorry about that. I must have beel sleepy when I replied and missed
that there were two questions there. I meant that disabling HT from the
BIOS setup should be enough for FreeBSD too.
> is the default to use or not use hyperthreading in the kernel/conf?
AFAICT from reading /usr/src/sys/i386/i386/mp_machdep.c, hyper-threading
support is always enabled in FreeBSD if it is also enabled in the BIOS.
The mp_topology() function contains, among other stuff:
225 struct cpu_group *group;
226 int logical_cpus;
227 int apic_id;
228 int groups;
229 int cpu;
231 /* Build the smp_topology map. */
232 /* Nothing to do if there is no HTT support. */
233 if ((cpu_feature & CPUID_HTT) == 0)
235 logical_cpus = (cpu_procinfo & CPUID_HTT_CORES) >> 16;
236 if (logical_cpus <= 1)
More information about the freebsd-questions