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

Try to parallel computing, but the CPU utilization is very low.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2021, 23:48
Question Try to parallel computing, but the CPU utilization is very low.
  #1
New Member
 
Join Date: Apr 2021
Posts: 10
Rep Power: 5
vienloer is on a distinguished road
I tried to use 20 cores for simulation, but my cpu utilization was just 5%. what should I do to increase CPU usage? My cpu has 16 logical cores and 32 physical cores.


File "decomposeParDict",

numberOfSubdomains 20;

method simple;

coeffs
{
n (2 10 1);
}


The code,
~$ mpirun -np 20 icoFoam -parallel

Thank you for help!
vienloer is offline   Reply With Quote

Old   April 20, 2021, 09:23
Default
  #2
Member
 
Join Date: Feb 2016
Posts: 41
Rep Power: 10
LeeRuns is on a distinguished road
Try to have number of cores same as number subdomains. Reduced cross core communication.
LeeRuns is offline   Reply With Quote

Old   April 20, 2021, 19:06
Default
  #3
Member
 
cyss38's Avatar
 
Cyrille Bonamy
Join Date: Mar 2015
Location: Grenoble, France
Posts: 86
Rep Power: 11
cyss38 is on a distinguished road
How many cells do you have in the mesh?
The recommendation and the tests that I have been able to perform show that a good choice is to have about a minimum of 15,000 cells per process to be efficient.
Thus for 20 cores, the mesh would have to consider 300,000 cells.
In addition, I recommend the scotch mesh decomposition method.
cyss38 is offline   Reply With Quote

Old   April 20, 2021, 22:23
Default
  #4
Member
 
Join Date: Feb 2016
Posts: 41
Rep Power: 10
LeeRuns is on a distinguished road
Also pretty important to have cells evenly distributed. If one section is way complex for solver the use more cells there, but make domain smaller. Sorry about wording typing fast between tasks....try to think about your geometry and make sure that each section of the domain has a similar workload (complexity, number of cells)

Also is it really cpu that is holding you back I often find that goal io is pretty tough on machines with OF
LeeRuns is offline   Reply With Quote

Old   April 29, 2021, 08:30
Default
  #5
New Member
 
Join Date: Apr 2021
Posts: 10
Rep Power: 5
vienloer is on a distinguished road
Thank you for your reply. So the total mesh number is important,right? I just have 10,000 meshes, the core number can not be 20 or more, if I still try to use too many cores, the system will break, right?
vienloer is offline   Reply With Quote

Old   April 29, 2021, 08:38
Default
  #6
New Member
 
Join Date: Apr 2021
Posts: 10
Rep Power: 5
vienloer is on a distinguished road
Thank you! I will try more cases to learn more.
vienloer is offline   Reply With Quote

Reply

Tags
parallel


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
stop when I run in parallel Nolwenn OpenFOAM 36 March 21, 2021 05:56
Issues with poor performance in faster CPU gian93 Hardware 9 October 29, 2018 14:34
Error running openfoam in parallel fede32 OpenFOAM Programming & Development 5 October 4, 2018 17:38
simpleFoam parallel AndrewMortimer OpenFOAM Running, Solving & CFD 12 August 7, 2015 19:45
Difference between processor CPU core in parallel launch woodwick Hardware 1 November 16, 2013 12:14


All times are GMT -4. The time now is 11:55.