turn off hyperthreading?

Message boards : Number crunching : turn off hyperthreading?

To post messages, you must log in.

AuthorMessage
Profile Gerry Rough
Avatar

Send message
Joined: 2 Jan 06
Posts: 111
Credit: 1,389,340
RAC: 0
Message 37885 - Posted: 16 Mar 2007, 15:47:31 UTC

Many moons ago I learned that hyperthreading was causing some of my heat problems. I dealt with the overheating problems, but now I would really rather just turn off hyperthreading so I don't have to worry about my preferences turning it back on.

Is turning off HT a bad thing for a dedicated cruncher, and if it is not, how do I turn it off? Will I be able to turn it back on if I change my mind later?

(Click for detailed stats)
ID: 37885 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile Feet1st
Avatar

Send message
Joined: 30 Dec 05
Posts: 1755
Credit: 4,690,520
RAC: 0
Message 37887 - Posted: 16 Mar 2007, 16:54:06 UTC

There are two ideas. One is to limit BOINC to one CPU, or to limit it to 50% of CPU. This you control via your General Preferences.

The other is to change the PC to not use hyperthreading. I believe this is done in your BIOS settings... which you get to by hitting that magic key during boot up (is it F1?).

Since the floating point operations are the key to throughput, hyperthreading really only gives you 10-15% more work completed. Least that's what I've seen posted elsewhere. So, turning it off is not a "bad thing". But, will reduce your heat problems, and overall throughput (and generally the only way to retain the throughput is to find a way to deal with the heat). So, no, not a bad thing. Turning off HT will make the PC report as a single CPU system and only crunch one Rosetta task at a time.
Add this signature to your EMail:
Running Microsoft's "System Idle Process" will never help cure cancer, AIDS nor Alzheimer's. But running Rosetta@home just might!
https://boinc.bakerlab.org/rosetta/
ID: 37887 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
BennyRop

Send message
Joined: 17 Dec 05
Posts: 555
Credit: 140,800
RAC: 0
Message 37893 - Posted: 16 Mar 2007, 21:33:14 UTC

One of the Athlon 64 motherboards I've used has DEL being the key to get into the BIOS, and I've seen F10 as the BIOS entry key in the past as well. It'd be nice if everyone standardized on F1..


ID: 37893 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile Gerry Rough
Avatar

Send message
Joined: 2 Jan 06
Posts: 111
Credit: 1,389,340
RAC: 0
Message 37896 - Posted: 17 Mar 2007, 2:06:34 UTC - in response to Message 37893.  

One of the Athlon 64 motherboards I've used has DEL being the key to get into the BIOS, and I've seen F10 as the BIOS entry key in the past as well. It'd be nice if everyone standardized on F1..



Looked it up on a google search and found a site that had F2 as the most common. It worked on my box, but I am certain I used another button on my last main windows box. I will have to put that in my back pocket for future reference.

(Click for detailed stats)
ID: 37896 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile Who?

Send message
Joined: 2 Apr 06
Posts: 213
Credit: 1,366,981
RAC: 0
Message 37948 - Posted: 18 Mar 2007, 4:12:12 UTC - in response to Message 37885.  

Many moons ago I learned that hyperthreading was causing some of my heat problems. I dealt with the overheating problems, but now I would really rather just turn off hyperthreading so I don't have to worry about my preferences turning it back on.

Is turning off HT a bad thing for a dedicated cruncher, and if it is not, how do I turn it off? Will I be able to turn it back on if I change my mind later?


Hyperhthreading optimized the utilization of your execution units, turning it OFF will reduce your number of units per day.

if you have thermal problem, concidere contacting your PC maker, or upgrade to a better heat think and Fan.

Hyperthreading greatly improve the responce time of your machine too, it is sad to turn it off.

who?
Top 1 and Top 2 computers are mine! na!
ID: 37948 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile Angus

Send message
Joined: 17 Sep 05
Posts: 412
Credit: 321,053
RAC: 0
Message 37950 - Posted: 18 Mar 2007, 5:34:12 UTC

I can't believe that people still think that they can produce more with HT turned off.

Sad.
Proudly Banned from Predictator@Home and now Cosmology@home as well. Added SETI to the list today. Temporary ban only - so need to work harder :)



"You can't fix stupid" (Ron White)
ID: 37950 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
FluffyChicken
Avatar

Send message
Joined: 1 Nov 05
Posts: 1260
Credit: 369,635
RAC: 0
Message 37954 - Posted: 18 Mar 2007, 10:17:20 UTC - in response to Message 37950.  

I can't believe that people still think that they can produce more with HT turned off.

Sad.


No one in this thread said it did :-P
Team mauisun.org
ID: 37954 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile bob
Avatar

Send message
Joined: 16 Mar 07
Posts: 3
Credit: 733
RAC: 0
Message 37958 - Posted: 18 Mar 2007, 16:24:35 UTC - in response to Message 37885.  

just for information of anyone interested . . .

one of my machines has an AMD 4200+ cpu overclocked by 10%. I'm using a Zalman CNPS9500 AM2 AMD heatsink/fan and cpu runs at 30degrees Celsius. Memory is Patriot DDR2-800 with 4-4-4-12 timing and built in heatsinks. HT is on. The Antec case has 4 120mm fans. M/b temperature is consistently 32degrees Celsius - yes, cpu actually registers lower temp than m/b.

So, no heat problems with ht or overclocking if you have adequate cooling.
ID: 37958 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile Jack Shaftoe
Avatar

Send message
Joined: 30 Apr 06
Posts: 115
Credit: 1,307,916
RAC: 0
Message 37960 - Posted: 18 Mar 2007, 16:39:42 UTC - in response to Message 37950.  
Last modified: 18 Mar 2007, 17:04:13 UTC

I can't believe that people still think that they can produce more with HT turned off.

Sad.


Hmm... If it's such a good thing, why wasn't it included with the C2D's???

Confused.
ID: 37960 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile Angus

Send message
Joined: 17 Sep 05
Posts: 412
Credit: 321,053
RAC: 0
Message 37966 - Posted: 18 Mar 2007, 18:04:15 UTC - in response to Message 37954.  

I can't believe that people still think that they can produce more with HT turned off.

Sad.


No one in this thread said it did :-P


Then why would anyone even bring it up in this context? If you're here to crunch, then ya need everything ya can bring!

Fix the cooling issues, and leave HT on, and run as many CPUs (virtual or otherwise) as ya got!

sheesh.

Proudly Banned from Predictator@Home and now Cosmology@home as well. Added SETI to the list today. Temporary ban only - so need to work harder :)



"You can't fix stupid" (Ron White)
ID: 37966 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile netwraith
Avatar

Send message
Joined: 3 Sep 06
Posts: 80
Credit: 13,483,227
RAC: 0
Message 37981 - Posted: 18 Mar 2007, 22:01:18 UTC

--

Hyperthreading on will effectively split your CPU into two execution units.. more accurately it splits the one executuion unit more or less in half.. (a bit more than half by the way of some additional circuitry).. This allows operating systems that understand how to utilize SMP to use each half as a seperate processor... It does, however, split the amout of credits per hour approximately in half...

So, it depends what you think is better... twice as many WU's completed in a given time at 1/2 credit each... or the normal amount that one P4 will complete at a normal amount of credit...

I personally run HT on, because I feel that it gives me better control of CPU utilization... but most of my HT systems are large (more than two XEONS) and use L4 cache, so it may be that these systems actually produce a bit more with HT on... As with all computers your mileage may vary as we say...


Looking for a team ??? Join BoincSynergy!!


ID: 37981 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile River~~
Avatar

Send message
Joined: 15 Dec 05
Posts: 761
Credit: 285,578
RAC: 0
Message 38019 - Posted: 19 Mar 2007, 16:58:42 UTC - in response to Message 37950.  

I can't believe that people still think that they can produce more with HT turned off.

Sad.


It is possible, at least in theory, and the fact that there are reports where others claim to have ssen this, and the fact that WCG recommend to turn it off, all make the theory plausible.

One example, if a single WU uses a lot more than half the cache, at any level, then turning HT off will reduce cache misses. The increase in speed due to better use of the cache will offset the increased productivity of HT in all cases, and in extremecases may lose more than HT has saved.

Another example, is if a single WU can run in main memory without using the swapfile, but the addition of a second WU brings the swapfile into use.

In either of these cases, and in several other examples, turning HT off would increase speed. For that reason, my advice is to try it for a few days, or at most for a week, and see what the actual throughput is with HT on and HT off, and with your typical mix of projects and your typical use of the box for non-BOINC work.

Interestingly, the new memory management features of the client will step the number of tasks down when the swapfile comes into play, meaning that if it was swapfile issues that stopped you using HT before, you should try it again and let BOINC choose whether to use one thread or two.

River~~
ID: 38019 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile Neil
Avatar

Send message
Joined: 7 Mar 07
Posts: 25
Credit: 135,539
RAC: 0
Message 40466 - Posted: 7 May 2007, 5:37:53 UTC - in response to Message 37966.  
Last modified: 7 May 2007, 5:38:38 UTC


ID: 40466 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile dcdc

Send message
Joined: 3 Nov 05
Posts: 1832
Credit: 119,688,048
RAC: 10,544
Message 40473 - Posted: 7 May 2007, 9:54:42 UTC - in response to Message 37960.  

Hmm... If it's such a good thing, why wasn't it included with the C2D's???

Confused.

I believe some form of HT is going to be re-introduced with the nehalem core.

My guess is that rather than having two virtual cores per physical core, it'll swap threads between two or more physical cores to make best use of them... just a mildly educated guess though!
ID: 40473 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile Christoph Jansen
Avatar

Send message
Joined: 6 Jun 06
Posts: 248
Credit: 267,153
RAC: 0
Message 42982 - Posted: 1 Jul 2007, 18:55:25 UTC

Hi everybody,

here is an article on the effect of hyperthreading under a number of different conditions, although it describes its effect in the special MATLAB environment. I thought after there has been so much discussion on the topic it might be interesting for some here to see a light shed on it from various perspectives.

Somewhen in the next week or so there will be a German version toohere, for now it is also in English until the final edits have been made.

Regards,

Christoph
"I know that you believe you understand what you think I said, but I'm not sure you realize that what you heard is not what I meant." R.M. Nixon
ID: 42982 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote
Profile AgnosticPope

Send message
Joined: 16 Dec 05
Posts: 18
Credit: 148,821
RAC: 0
Message 43013 - Posted: 2 Jul 2007, 4:25:32 UTC

How much you do (or do not) get out of hyperthreading can also be affected by cache size. The newer Xeons come with up to 4 MB of on-chip cache per two cores (8 MB with 4 cores at the rate of 4 MB per two cores). I don't get as much out of hyperthreading on my old Xeons which had only 512 KB of cache. It is all a matter of the "hit rate" before the CPU has to stop and wait for some RAM to get fetched.

How much the cache size affects throughput is very task-specific. If you are running a computational task that takes very small amounts of memory to contain both the program and data values, the entire task can be sucked up into cache and execute without interruption if the cache is large enough. If the task is very memory-intensive, even a 4 MB cache will not be enough to make the task perform very well in a hyperthreaded environment, and in that case you would be better off disabling hyperthreading and using all the cache for a single task instead of trying to timeshare the cache between two hyperthreaded tasks (or, in the case of the newer CPUs, between four tasks on two cores).

Anyway, if heat is your motivation, then you probably would be better off just limiting your CPU utilization in your user preferences. Keep hyperthreading on and let one virtual CPU churn away on whatever task(s) you please. That will have a bigger impact on heat dissapation than just turning hyperthreading off, and will still leave the other thread(s) to do "regular work" for you.

== Bill

ID: 43013 · Rating: 0 · rate: Rate + / Rate - Report as offensive    Reply Quote

Message boards : Number crunching : turn off hyperthreading?



©2024 University of Washington
https://www.bakerlab.org