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

[snappyHexMesh] Decomposed sHM runs slower than on single thread

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 19, 2020, 11:31
Default Decomposed sHM runs slower than on single thread
  #1
New Member
 
Tom
Join Date: Nov 2019
Posts: 2
Rep Power: 0
datTommyGuy is on a distinguished road
Hello,
I'm meshing a more-or-less cylindrical geometry (screenshot attached below, flow through a duct) with sHM. I used a simple (2 2 2) decomposition in decomposeParDict ((2 2 1) for 4 threads). I'm running the case in this order:


blockMesh
surfaceFeatures

decomposePar
mpirun -np 8 snappyHexMesh -overwrite -parallel


However, the more cores I use, the slower snappyHexMesh runs. Just adding new boundary patches takes too long to let it finish the job.



I'm using Ubuntu 16.04 LTS on Windows 10. The processor is a 4-core (8 threads) i7-7700HQ. When using 8 threads, the CPU usage jumps to 100%, while with 4 it stays at about 60%, so the decomposition itself seems to be working.


What may be the cause of such behaviour? I'll gladly provide more details as needed.
Attached Images
File Type: png geo.png (164.2 KB, 4 views)
datTommyGuy is offline   Reply With Quote

Old   February 19, 2020, 17:29
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
how many cells per processor?
HPE is offline   Reply With Quote

Old   February 20, 2020, 13:30
Default
  #3
Senior Member
 
Join Date: Mar 2014
Posts: 112
Rep Power: 12
mzzmrt is on a distinguished road
This is perfectly normal because your processor has 4 real cores so your max parallelization limit is 4!
mzzmrt is offline   Reply With Quote

Old   February 23, 2020, 07:31
Default
  #4
New Member
 
Tom
Join Date: Nov 2019
Posts: 2
Rep Power: 0
datTommyGuy is on a distinguished road
Quote:
Originally Posted by HPE View Post
how many cells per processor?
~3000 after blockMesh, limit in sHM set to 0.8*10^6.

Quote:
Originally Posted by mzzmrt View Post
This is perfectly normal because your processor has 4 real cores so your max parallelization limit is 4!
I weren't sure about that, so I tried going over 4 - there are 8 separate CPUs listed in the resource monitor and the total CPU usage approaches 100% only when the case is decomposed for 8 processors.
However, any decomposition seems to be much slower than using just a single core. I've tried using every number of processors between 2 and 8, yet the performance always dropped.
datTommyGuy is offline   Reply With Quote

Reply


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
pimpleFoam runs slower than rhoPimpleFoam Kosuke Seto OpenFOAM Running, Solving & CFD 3 May 27, 2023 14:12
Parallel UDF Segmentation fault error KevinZ09 Fluent UDF and Scheme Programming 1 January 9, 2017 05:30
my case in CFX runs in single mode but in parallel it does not gaza CFX 1 September 16, 2014 18:52
problem with mpirun (runs fine in single thread mode) Jonathan OpenFOAM Running, Solving & CFD 1 April 1, 2013 11:56
Parallel runs slower with MTU=9000 than MTU=1500 Javier Larrondo FLUENT 0 October 28, 2007 22:30


All times are GMT -4. The time now is 20:26.