• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Question about Hyperthreading

ndee

Lifer
OK, how come Hyperthreading makes some applications faster? If it's split the CPU up into two, how fast are both "CPUs" running? I really can't understand how hyperthreading would make some Applications faster. Does it make it faster cuz the applications will never really need the 3GHz to do a task, so it can execute two tasks at the same time?
 
Somewhat. Forgive my vocabulary, but it's damn early 🙂.
The processor has several units to do calculations and move data around, however, when typical applications do something, they do one thing, and then go on to the next, rather than doing multiple things at a time. Hyperthreading fakes 2 CPUs so that multiple programs can do things at once, or multithreaded programs can, to fill up the various work-doing parts of the CPU, improving performance, since it would otherwise have those parts of the CPU sitting idle.
However, it can also hurt performance.

We have processes A, B, C and D that do near the same thing (say, oh, multiple forum requests). Now, the single CPU does A, does B, does C, then does D. It's doing some work, but you're not really stressing it.
2 CPUs do A and B on one, then C and D. Now, reality isn't quite as neat and tidy, but that's what should happen. Now you're stressing memory and HDs...not too shabby.
4 CPUs each do one A, B, C and D. Really stressing memory and HDs.
1 HT CPU does A and B, and then C and D, like 2 CPUs...but wait! It's trying to do B and hasn't finished with A, so it does a little of A, B waits, now switch and A waits, and back and forth because the CPU is trying to do too much work...the effect of this can be seen in several tests w/ Xeons, where they run much faster with HT off. Indeed some P4 tests are that way, too (like some of the SPEC ones).
 
Back
Top