Re: Hyperthreading in 6.x ... still frowned upon?



At 11:36 AM 5/3/2006, Chuck Swiger wrote:
Marc G. Fournier wrote:
In 4.x, it was a 'shut it off' sort of deal .. my new amd64 don't appear to have it enabled, but my older i386 server that I just upgraded to 6.x does:

user pid %cpu %mem vsz rss tt state start time command
root 14 104.0 0.0 0 8 ?? RL 11:38AM 0:55.02 [idle: cpu0]
root 11 99.1 0.0 0 8 ?? RL 11:38AM 0:00.00 [idle: cpu3]
root 13 99.1 0.0 0 8 ?? RL 11:38AM 0:00.00 [idle: cpu1]
root 12 98.0 0.0 0 8 ?? RL 11:38AM 0:54.54 [idle: cpu2]

Is it still something that I should disable, and, if so, how in 6.x?
You should test it for the workloads you have, but most of the time, HT isn't especially helpful. AMD64 CPUs come in dual-core format rather than HT-enabled. If you've seen "HT" or "HTT" applied to an AMD system, it's likely an abbreviation for "HyperTransport" or "HyperTransport Technology".

An Intel technical rep that gave a presentation on upcoming Intel VT technology in processors (Virtualization Technology) that I attended indicated that Hyperthreading was really designed to start getting programmers to program threading into their applications in preparation of dual core processors that we now have. Hyperthreading will likely be removed in future processors now that dual core technology is standard. In some instances it created a slight performance boost.

Hyperthreading is known to hurt performance under high loads because it diminishes the amount of cache available for each thread. Many times, having no Hyperthreading but more CPU cache available increases performance under high loads.

I typically disable Hyperthreading on all my servers as they are dual processor or dual core/dual processor or better anyway. I tend to get better results (with my applications) without Hyperthreading. I've been experimenting with leaving it on with my workstation as it's not a dual core or dual processor.

The reason hyperthreading frowned upon in multiuser scenarios of FreeBSD is due to a vulnerability found in Hyperthreading:

http://lists.freebsd.org/pipermail/freebsd-security/2005-May/002903.html


Hyperthreading needs to be disabled in the BIOS. Often is referred to as a "Virtual Processor" in the BIOS.


Vinny Abello
Network Engineer
Server Management
vinny@xxxxxxxxxxxxx
(973)300-9211 x 125
(973)940-6125 (Direct)
PGP Key Fingerprint: 3BC5 9A48 FC78 03D3 82E0 E935 5325 FBCB 0100 977A

Tellurian Networks - The Ultimate Internet Connection
http://www.tellurian.com (888)TELLURIAN

"Courage is resistance to fear, mastery of fear - not absence of fear" -- Mark Twain

_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Intel strikes back with a parallel x86 design
    ... > Intel's bedfellow on the basis of a compelling roadmap. ... > Intel claims they aren't developing Hyperthreading anymore. ... a dual core chip is more efficient than a hyperthreaded chip ...
    (comp.arch)
  • Re: Dual Core and Photoshop CS
    ... Since Photoshop runs on top of XP, it can only use what XP tells it to use. ... If XP Pro would see two processors in a Dual Core chip, I would think that it would allocate different processes to them, much like it does with HT. ... However, if Photoshop doesn't know how to use the "two" processors that XP thinks are there with HT, why would it suddenly get smarter on a Dual Core machine? ... But you won't get a big win out of HyperThreading because you still ...
    (comp.graphics.apps.photoshop)
  • Re: OS question
    ... that the CPU in your system is hyperthreaded, ... performance compared to older, slower memory... ... The D is for Dual Core. ... What is "hyperthreading" and why would its ...
    (alt.sys.pc-clone.dell)
  • Re: Dual Core and Photoshop CS
    ... >>>If Dual Core works like HT on Intel processors, ... >>>my Intel 3.2 GHz Prescott. ... >> Hecate - The Real One ... There are situations where hyperthreading can really make a huge ...
    (comp.graphics.apps.photoshop)
  • Re: Hyperthreading or dual core
    ... Go for a single processor, dual core, with hyperthreading turned off. ... The cost of dual cores is now on par with single core chips, ... performance computing later this month. ... How much does SW benefit from a Dual core processor compared to a Pent.4 ...
    (comp.cad.solidworks)