PDA

View Full Version : hyperthreading


lumiwa
December 14th, 2008, 18:41
Hi!

I have a standalone computer with FreeBSD 7.0 and kernel is compiled with SMP option and hyperthreading is on by default (I tought that I need to put machdep.hyperthreading_allowed=1 in sysctl.conf).
And my question is: Do I need hyperthreading enabled on the standalone machine or performance would be better if I disable it?

Thanks in advance.

brd@
December 14th, 2008, 19:24
From the security side, you really only need to disable hyperthreading on a machine that multiple people will be using simultaneously, i.e. a shell server.

Performance is a whole nother ball of worms. It will probably be better with it enabled, but some apps can't really take advantage of it well. Threaded programming is hard, etc etc.

lumiwa
December 14th, 2008, 22:34
From the security side, you really only need to disable hyperthreading on a machine that multiple people will be using simultaneously, i.e. a shell server.

Performance is a whole nother ball of worms. It will probably be better with it enabled, but some apps can't really take advantage of it well. Threaded programming is hard, etc etc.

Thank you very much.