CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

OpenFOAM Multi-Core Solving across Physical vs. Logical Cores in Virtual Machine

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

LinkBack Thread Tools Search this Thread Display Modes
Old   September 28, 2016, 10:53
Question OpenFOAM Multi-Core Solving across Physical vs. Logical Cores in Virtual Machine
New Member
Vyssion's Avatar
Join Date: Mar 2016
Posts: 12
Rep Power: 10
Vyssion is on a distinguished road
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).
Optimism, pessimism, f*ck that: We're going make it happen. As God is my bloody witness, I'm hell-bent on making it work.
- Elon Musk in 2008, after three unsuccessful Falcon launches.
Vyssion is offline   Reply With Quote

Old   September 28, 2016, 12:34
Senior Member
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 273
Rep Power: 18
anishtain4 is on a distinguished road
The best way to say is to have test runs same as the last post in the topic you mentioned.
anishtain4 is offline   Reply With Quote


core, decompose, multi, processor, virtual machine

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
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. Nkl OpenFOAM Running, Solving & CFD 19 October 10, 2019 02:42
conjugate heat transfer in OpenFOAM skuznet OpenFOAM Running, Solving & CFD 99 March 16, 2017 05:07
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58

All times are GMT -4. The time now is 10:47.