doc's inaccuracy? about machdep.hlt_logical_cpus

John Baldwin jhb at FreeBSD.org
Thu Dec 16 12:31:07 PST 2004


On Thursday 16 December 2004 06:11 am, Andriy Tkachuk wrote:
> Hi folks.
>
> ant# uname -r
> 5.3-STABLE
>
> man smp
> ...
>      FreeBSD supports hyperthreading on Intel CPU's on the i386 platform.
>      Since using logical CPUs can cause performance penalties under certain
>      loads, the logical CPUs can be disabled by setting the
>      machdep.hlt_logical_cpus sysctl to one.
>      ^^^^^^^^^^^^^^^^^^^^^^^^
>
> ant# sysctl -a | grep machdep.hlt
> machdep.hlt_cpus: 0
>
> is this the one that is mentioned in smp(4) ?

No.  The sysctl only shows up if you have a CPU that has more than one logical 
core, so if your CPU doesn't have logical cores, the sysctl won't exist.

-- 
John Baldwin <jhb at FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org


More information about the freebsd-smp mailing list