CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Meshing & Mesh Conversion (https://www.cfd-online.com/Forums/openfoam-meshing/)
-   -   [snappyHexMesh] Decomposed sHM runs slower than on single thread (https://www.cfd-online.com/Forums/openfoam-meshing/224442-decomposed-shm-runs-slower-than-single-thread.html)

datTommyGuy February 19, 2020 11:31

Decomposed sHM runs slower than on single thread
 
1 Attachment(s)
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.

HPE February 19, 2020 17:29

how many cells per processor?

mzzmrt February 20, 2020 13:30

This is perfectly normal because your processor has 4 real cores so your max parallelization limit is 4!

datTommyGuy February 23, 2020 07:31

Quote:

Originally Posted by HPE (Post 758802)
how many cells per processor?

~3000 after blockMesh, limit in sHM set to 0.8*10^6.

Quote:

Originally Posted by mzzmrt (Post 758936)
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.


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