Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Jan 2012 18:08:24 +0000
From:      "b. f." <bf1783@googlemail.com>
To:        Marco Beishuizen <mbeis@xs4all.nl>, Mark Blackman <mark@exonetric.com>, freebsd-questions@FreeBSD.org
Subject:   Re: no hyperthreading in FreeBSD 9?
Message-ID:  <CAGFTUwPmWaGpKcp=7efxxvGbmg4b5=BN_z07doLEMOnLA%2Be14A@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
>
> > Hi,
> >
> > I just upgraded from 8-STABLE to 9-STABLE on my dual Xeon (nocona). Now I have in my boot messages:
> > ...
> > root: /etc/rc.d/sysctl: WARNING: sysctl machdep.hlt_logical_cpus does not exist.
> > root: /etc/rc.d/sysctl: WARNING: sysctl machdep.hyperthreading_allowed does not exist.
> > ...
> >
> > So isn't hyperthreading not available anymore in FreeBSD 9?

I'm not sure what you mean by this double negative.  If you mean "Is
hyperthreading still available on FreeBSD?", the answer is yes.  If
you mean "Can hyperthreading still be disabled on FreeBSD?" the answer
is still yes-- only some problematic and redundant means of disabling
it that were present in earlier versions of FreeBSD have been removed.
 (The primary commit is:

http://svnweb.freebsd.org/base?view=revision&revision=222853

.)  You can still use machdep.hyperthreading_allowed, but it is now
only a (loader) tunable, and not also a sysctl, so you can only set it
at boot time (via loader.conf(5), or by using "set ..." on the
loader(8) command line), and you cannot change it on the fly after the
system is up and running.

>
> http://svnweb.freebsd.org/base/release/9.0.0/UPDATING?r1=222852&r2=222853&;
>
> Seems to imply HT is enabled by default and new sysctls are used to take
> logical CPUs offline.
>

Yes -- although that has been the case for a while, and the OIDs are
not all sysctls (some are (loader) tunables or device hints (cf.
device.hints(5)), and they are not new.

b.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGFTUwPmWaGpKcp=7efxxvGbmg4b5=BN_z07doLEMOnLA%2Be14A>