CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Turning on Hyperthreading for meshing and setting only physical cores for simulation

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By LuckyTran
  • 1 Post By flotus1

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2019, 06:38
Post Turning on Hyperthreading for meshing and setting only physical cores for simulation
  #1
New Member
 
Aideal Zohary
Join Date: Feb 2019
Location: Malaysia
Posts: 28
Rep Power: 7
AidealZohary is on a distinguished road
Hi guys,

Im having 4 physical cores and 8 virtual cores. I read that HT is not recommended for ansys simulations. Unfortunately i cant turn it of because i dont have the option for this in my BIOS and this i believe is the same case for many out there who accidentally turned on HT.

However, if i set 4 cores for parallel simulation in fluent, will this be equivalent to HT turned off?
AidealZohary is offline   Reply With Quote

Old   October 23, 2019, 08:53
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Run 8 to be safe and not think about it. 4 works too, but if you run on 4, then the nuances of being hyperthreaded will come up from time to time. You'll need to develop a habit of checking your system performance.

Before giving up, check if there are any bios updates for your system. Lenovo was notorious for disabling the option to turn off hyperthreading by locking the user out of the option in the Bios. The company's trademark response was "no one would ever need it." Then Meltdown & Spectre were revealed...
AidealZohary likes this.
LuckyTran is offline   Reply With Quote

Old   October 23, 2019, 08:53
Default
  #3
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,428
Rep Power: 49
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
As long as you don't oversubscribe the cores (i.e. running more threads than physical cores), you should be ok.
One of the main problems with SMT was when operating systems did not properly distinguish between cores and hyperthreads, e.g. assigning two threads to the same physical core. This should be a thing of the past, unless you use bleeding edge hardware or ancient operating systems.
There can still be a small difference in performance between SMT on/off, but it is usually nothing to write home about.
AidealZohary likes this.
flotus1 is offline   Reply With Quote

Old   October 23, 2019, 09:11
Default
  #4
New Member
 
Aideal Zohary
Join Date: Feb 2019
Location: Malaysia
Posts: 28
Rep Power: 7
AidealZohary is on a distinguished road
Hi LuckyTran,

Thanks for the reply. Say if i have the opportunity to disable HT in the future. Should i go for it or it does not actually make much difference? or maybe turn on HT for meshing and then turn it off again for Fluent
AidealZohary is offline   Reply With Quote

Old   October 23, 2019, 09:12
Default
  #5
New Member
 
Aideal Zohary
Join Date: Feb 2019
Location: Malaysia
Posts: 28
Rep Power: 7
AidealZohary is on a distinguished road
Thanks Flotus1!

That was a great relief
AidealZohary is offline   Reply With Quote

Old   October 23, 2019, 09:33
Default
  #6
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
It makes almost no sense to turn hyperthreading on for meshing and then off for simulating. You have to restart your system each time you do this. Either you have HT on or off.


As long as you keep your cores properly loaded (running always on 4 or 8 and not 5/6/7/9+) the difference is somewhere between 0%-20% (more likely <10%). It's hard to say whether you should run on 4 or 8 because it depends on a lot of things. You need a stopwatch.
LuckyTran is offline   Reply With Quote

Old   October 23, 2019, 09:49
Default
  #7
New Member
 
Aideal Zohary
Join Date: Feb 2019
Location: Malaysia
Posts: 28
Rep Power: 7
AidealZohary is on a distinguished road
I see, okay thanks a lot. At first why i thought of turning on HT for meshing was because maybe i can get faster meshing when decreasing the mesh size and then since fluent simulation prefers HT off that would justify the latter. Anyways the question is answered. Thanks again
AidealZohary is offline   Reply With Quote

Reply

Tags
hyperthreading, parallel calculation, processors


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up Lid driven Cavity Benchmark with 1M cells for multiple cores puneet336 OpenFOAM Running, Solving & CFD 11 April 7, 2019 01:58
Fluent Parallelization Problem After AC Power Dropped pawl Hardware 5 November 13, 2016 07:08
[snappyHexMesh] determining displacement for added points CFDnewbie147 OpenFOAM Meshing & Mesh Conversion 1 October 22, 2013 10:53
Cells with t below lower limit Purushothama Siemens 2 May 31, 2010 22:58
Warning 097- AB Siemens 6 November 15, 2004 05:41


All times are GMT -4. The time now is 12:50.