CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > 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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 28, 2016, 10:53
Question OpenFOAM Multi-Core Solving across Physical vs. Logical Cores in Virtual Machine
  #1
New Member
 
Vyssion's Avatar
 
Vyssion
Join Date: Mar 2016
Posts: 12
Rep Power: 3
Vyssion is on a distinguished road
Sponsored Links
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
Sponsored Links

Old   September 28, 2016, 12:34
Default
  #2
Senior Member
 
Mahdi Hosseinali
Join Date: Apr 2009
Location: NB, Canada
Posts: 271
Rep Power: 11
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

Reply

Tags
core, decompose, multi, processor, virtual machine

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
conjugate heat transfer in OpenFOAM skuznet OpenFOAM Running, Solving & CFD 99 March 16, 2017 06:07
chtMultiRegionSimpleFoam: maximum number of iterations excedeed. Nkl OpenFOAM Running, Solving & CFD 18 February 16, 2016 12:42
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 14:58

Sponsored Links


All times are GMT -4. The time now is 03:43.