CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

max cpu performance on interFoam

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 29, 2020, 00:42
Default max cpu performance on interFoam
  #1
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8
joshmccraney is on a distinguished road
Hi FOAMers!

I am running 16 cores in parallel over 128 gb of ram in 8 memory channels. Runrunning openfoam in parallel I execute 'sensors' to view my workload and there are 18 processes running at 3% CPU, which implies 54% cpu used. Is there a way to give interFoam more power here? Seems like there should be, but perhaps I'm wrong.
joshmccraney is offline   Reply With Quote

Old   April 30, 2020, 06:31
Default
  #2
Member
 
Thomas Sprich
Join Date: Mar 2015
Posts: 76
Rep Power: 11
Swift is on a distinguished road
Hi Josh,


Does your computer have threads? Sensors may be calculating usage as a percentage of the threads which might be 32. If usage was calculated as a percentage of physical cores you would see 18 processes using 6%. 6 * 18 = 104%. With a little rounding errors, this could be right.



This does not mean you should try and use all the threads. Generally, OpenFOAM only gains benefit from the physical cores and not threads. You can google this, as there is some debate. Some people have seen improvement from running on threads as well.


I hope this helps.



Regards,

Thomas
Swift is offline   Reply With Quote

Old   April 30, 2020, 14:38
Default
  #3
Senior Member
 
Josh McCraney
Join Date: Jun 2018
Posts: 220
Rep Power: 8
joshmccraney is on a distinguished road
Quote:
Originally Posted by Swift View Post
Hi Josh,


Does your computer have threads? Sensors may be calculating usage as a percentage of the threads which might be 32. If usage was calculated as a percentage of physical cores you would see 18 processes using 6%. 6 * 18 = 104%. With a little rounding errors, this could be right.



This does not mean you should try and use all the threads. Generally, OpenFOAM only gains benefit from the physical cores and not threads. You can google this, as there is some debate. Some people have seen improvement from running on threads as well.


I hope this helps.



Regards,

Thomas
Hi Thomas

My cpu does have 32 threads. And yes, I read about thread vs cores, and I agree. Thanks for your response!
joshmccraney is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Near wall treatment in k-omega SST Arnoldinho OpenFOAM Running, Solving & CFD 38 March 8, 2017 14:48
interFoam blows up, caused by p_rgh ch_jaehnel OpenFOAM Running, Solving & CFD 0 December 13, 2016 09:00
multiphaseEulerFoam high Courant number Frenk_T OpenFOAM 5 November 24, 2016 04:23
InterFoam performance giack OpenFOAM Running, Solving & CFD 4 June 14, 2013 11:14
performance of the CPU ultraspace III ztdep Main CFD Forum 0 March 28, 2006 05:35


All times are GMT -4. The time now is 01:35.