hyperthreading CPU and broken scheduling?

Dinesh Nair dinesh at alphaque.com
Sun Nov 18 20:25:20 PST 2007


On Sun, 18 Nov 2007 12:29:32 +0200, Manolis Kiagias wrote:

> Wojciech Puchar wrote:
> > i have machune with intel's CPU with hyperthreading.
> >
> > it is detected right, but only first thread is ever used.
> >
> > top shows at least 50% idle no matter what i run!
> >
> > what's wrong?
> To enable hyperthreading, try setting the following in /etc/sysctl.conf:
> 
> machdep.hyperthreading_allowed=1
> 
> and reboot (or execute sysctl machdep.hyperthreading_allowed=1 by hand).

would an SMP kernel be required to properly use hyperthreading, or would
just the above sysctl setting be enough ?

-- 
Regards,                           /\_/\   "All dogs go to heaven."
dinesh at alphaque.com                (0 0)   http://www.openmalaysiablog.com/
+==========================----oOO--(_)--OOo----==========================+
| for a in past present future; do                                        |
|   for b in clients employers associates relatives neighbours pets; do   |
|   echo "The opinions here in no way reflect the opinions of my $a $b."  |
| done; done                                                              |
+=========================================================================+


More information about the freebsd-questions mailing list