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

OpenFOAM Parallel Speed Degradation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2018, 11:36
Default OpenFOAM Parallel Speed Degradation
  #1
New Member
 
James Lee
Join Date: Jul 2017
Posts: 5
Rep Power: 8
LG Liang is on a distinguished road
Dear OpenFOAM Community,

I noticed that OpenFOAM speed-up performance, when running in parallel, degrades as the problem size increases. This is illustrated in the attached image. I am running the cavity case using mpirun -np 4 icoFoam -parallel command. The domain is decomposed using Simple method (2 by 2 in x and y direction). I am running OpenFOAM on Window 7. Could someone please explain why this is happening? Any reply is appreciated .

Thank you.

Regards,
LGL
Attached Images
File Type: jpg Parallel Speed Up.jpg (16.7 KB, 114 views)
LG Liang is offline   Reply With Quote

Old   March 28, 2018, 17:54
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
If you are not increasing the number of processors as the problem size increases, you should not expect the simulation to run faster -- each processor is effectively getting more "work".

Caelan
clapointe is offline   Reply With Quote

Old   March 28, 2018, 19:53
Default
  #3
Senior Member
 
Gerhard Holzinger
Join Date: Feb 2012
Location: Austria
Posts: 339
Rep Power: 28
GerhardHolzinger will become famous soon enoughGerhardHolzinger will become famous soon enough
Quote:
Originally Posted by LG Liang View Post
I am running the cavity case using mpirun -np 4 icoFoam -parallel command. The domain is decomposed using Simple method (2 by 2 in x and y direction).
As Caelan already pointed out, you are increasing the workload by having a fixed number of processors and an increasing mesh size.

Try it the other way round. Create a sufficiently large mesh, and run with one process, and a subsequently an increasing number of parallel processes.
At first there should be a speed-up, with an ever increasing number of processors, the sped-up should at some point start to decrease again.

At another point, adding more parallel processes will slow simulation times. By then, the communication overhead introduced by parallel solving out weighs the benefits of parallel simulation.

When you then plot the speed-up over number of processors, or the simulation time over the number of processors, you should be able to identify a sweet spot, i.e. an optimal number of processors for a given mesh size, and a given simulation.
GerhardHolzinger is offline   Reply With Quote

Old   March 29, 2018, 02:43
Default
  #4
New Member
 
James Lee
Join Date: Jul 2017
Posts: 5
Rep Power: 8
LG Liang is on a distinguished road
Dear All,

Thanks for the replies. I will certainly try with a greater amount of processes. To gain further insight into the problem, I wrote a simple parallel code that performs embarrassingly parallel calculation. The code was compiled and run in OpenFOAM. Since it is 100% parallel, I expect that the speed-up should be around 4 on a 4-core machine. However, the performance slows down as the data size gets bigger. This is illustrated in the attached image. As can be seen from the image, the speed-up is good with small data size (around 4x faster), but it gets worse when the data size increases. Is this normal? Or there is something wrong with my hardware/software/understanding.

Thank you very much.

Regards,
LGL
Attached Images
File Type: jpg Picture1.jpg (19.8 KB, 73 views)
LG Liang is offline   Reply With Quote

Reply

Tags
openfoam 1612, parallel, performance


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
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology wyldckat OpenFOAM 17 November 10, 2017 15:54
OpenFOAM can't be run in parallel in cluster sibo OpenFOAM Running, Solving & CFD 4 February 21, 2017 16:29
How can i make a parallel programming in OpenFOAM? jignesh_thaker2007 OpenFOAM Running, Solving & CFD 3 July 2, 2014 09:37
Can not run OpenFOAM in parallel in clusters, help! ripperjack OpenFOAM Running, Solving & CFD 5 May 6, 2014 15:25
Problem in Running OpenFoam in Parallel himanshu28 OpenFOAM Running, Solving & CFD 1 July 11, 2013 09:19


All times are GMT -4. The time now is 09:48.