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/)
-   -   OpenFOAM Multi-Core Solving across Physical vs. Logical Cores in Virtual Machine (https://www.cfd-online.com/Forums/openfoam-solving/178082-openfoam-multi-core-solving-across-physical-vs-logical-cores-virtual-machine.html)

Vyssion September 28, 2016 10:53

OpenFOAM Multi-Core Solving across Physical vs. Logical Cores in Virtual Machine
 
So I have been looking for ways to optimise my CFD code to run faster and more stable, and have come across this conundrum that a mate of mine pointed out might not be the case...

According to a few sources, when solving across multiple cores, there is very little to no benefit in decomposing over more than the number of physical cores that you have in your machine; that is, hyper-threading offers no substantial benefit.

My issue with this is that for a native linux build, sure, make sense. But I am not running natively - but rather inside a Virtual Box VM...

So I am wondering whether the same applies to VM setups; especially since the Virtual Machine doesn't "see" the same thing that the native OS does and may not be able to see whether a core is physical or logical. I had assumed that VMs and Native builds functioned differently and at the moment, I run the VM across 6 cores reserving two for my native OS and then decompose OpenFOAM into 8 processor cores which solve. I need to change that come to think of it as I write this!!

But yeah, so should I decompose into a (2 2 1) or would there be some benefit to perhaps decompose into a (2 3 1) if the VM can't tell the difference between the physical and logical cores. Or leave it as (2 2 2).

anishtain4 September 28, 2016 12:34

The best way to say is to have test runs same as the last post in the topic you mentioned.


All times are GMT -4. The time now is 19:39.