CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   max cpu performance on interFoam (https://www.cfd-online.com/Forums/openfoam-solving/226479-max-cpu-performance-interfoam.html)

joshmccraney April 28, 2020 23:42

max cpu performance on interFoam
 
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.

Swift April 30, 2020 05:31

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

joshmccraney April 30, 2020 13:38

Quote:

Originally Posted by Swift (Post 767988)
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!


All times are GMT -4. The time now is 05:08.