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

OpenFOAM CPU Usage

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 11, 2013, 04:42
Default
  #21
New Member
 
Eric
Join Date: Mar 2013
Posts: 22
Rep Power: 13
erichu is on a distinguished road
Nice to hear that finally works.

However, just another piece of information. The other decompose methods can be left in the decomposeParDict. But you have to choose one and have it properly configured, the other coeffs will not be used and are ignored. At least this is working for me.

Another thing which might be worth spending time is number of CPUs and decomposition direction.
2 CPUs might be faster than 4 in some cases due to slow communication between the cores. Therefore try with 1,2,3,4 CPUs and look at the time.

In some cases the direction also plays a part. I.e 2 CPUs decomposed in (2 1 1) can be faster than (1 1 2) depending on your geometry.
Mojtaba.a likes this.
erichu is offline   Reply With Quote

Old   April 11, 2013, 10:49
Default
  #22
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
I started without invoking the mpi. The tank has 73,441 cells. Time step is 0.02, and total time is 12 (so I will need 12/0.02= 600 time steps to complete). When I ran this on my laptop w/o parallel processing, it took 16 hours to complete. When I used parallel processing to use the 4 CPU's that my prosessor has, the computation time was cut down to about 4 hours. So computation time seemed to have reduced linearly. When I checked the performance of the CPUs, it showed them running at 99%-100%. I dont know how much time was spent in fetch, but the fact that the computation time was cut down by 1/4 was a big leap.
I will try your suggestion about the decomposition. However, if my tank is 2 dimensional and the mesh is square -- 271 cells in each direction, will changing the decomposition make a difference? I will try and see.
musahossein is offline   Reply With Quote

Old   April 12, 2013, 11:33
Default
  #23
New Member
 
Emanuele Leggio
Join Date: May 2009
Posts: 11
Rep Power: 17
nanes is on a distinguished road
Quote:
Originally Posted by musahossein View Post
I have 2 processors. Each processor has 2 CPUs. So I should set subdomain to the number of processors (2) or the number of CPUs (4). Also, I have to run blockMesh and setFields before running mpi, correct? Thanks.
You do not have 2 processors, yuo have one processor with two cores, each core can execute two threads.

http://ark.intel.com/products/47663/...cache-2_13-ghz

The information of gnome-system-monitor is not very accurate.

However MPI processes in total are always 4.

The linear computing time is due to the small number of cells. When the number of cells becomes large (millions) the hyperthreading of your processor does not bring any benefits.
nanes is offline   Reply With Quote

Old   April 12, 2013, 22:58
Default
  #24
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
My processor is Intel® Core™ i3-330M Processor
(3M Cache, 2.13 GHz X4), which makes me think that there are 4 CPUs. You may be right that the genome is interpreting each thread as 1 CPU hence telling me that there are 4 CPUs. I already realize that the laptop is inadequate for the task at hand, because with only 73,000 cells it is taking 4 hours. So I will have to invest in a server which i am in the process of doing.
musahossein is offline   Reply With Quote

Old   July 17, 2013, 23:58
Default Problems with DecomposeParDic
  #25
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
Dear all:

I am running OpenFoam/interDyMFoam/sloshingTank2D on a 12 core (dual hexacore) machine. However, the parallell processing gives me the following error:

--> FOAM FATAL ERROR:
Wrong number of processor divisions in geomDecomp:
Number of domains : 12
Wanted decomposition : (4 2 2)

In the decomposeParDict, I have the doman as simple and decomposition as 4 2 2 as shown above. So why am I getting this error?

Any help will be greatly appreciated, Thanks!
musahossein is offline   Reply With Quote

Old   July 18, 2013, 04:46
Default
  #26
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30
akidess will become famous soon enough
Because 4*2*2=16
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   July 18, 2013, 10:03
Default
  #27
Senior Member
 
musaddeque hossein
Join Date: Mar 2009
Posts: 309
Rep Power: 18
musahossein is on a distinguished road
you are right. I looked into the source code for gomeDecomp and noted that number of processors must be equal to nx X ny X nz. The manual does not explain that.

Thanks.
musahossein 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
fluent cpu usage aminshz FLUENT 1 December 16, 2011 03:45
Cross-compiling OpenFOAM 1.6 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 7 January 19, 2010 16:39
Critical errors during OpenFoam installation in OpenSuse 11.0 amscosta OpenFOAM 5 May 1, 2009 15:06
OpenFOAM Training and Workshop Zagreb 2628Jan2006 hjasak OpenFOAM 1 February 2, 2006 22:07
OpenFOAM Training and Workshop Hrvoje Jasak Main CFD Forum 0 October 7, 2005 08:14


All times are GMT -4. The time now is 06:58.