CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

determing the cores necessary

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2013, 12:54
Default determing the cores necessary
  #1
New Member
 
lisa
Join Date: Apr 2009
Posts: 17
Rep Power: 17
lisa is on a distinguished road
Hi,

I would like to know on how i could determine the no of cores which are necessary for my simulation. What kind of parametric study that i have to do.

Thanks
Lisa
lisa is offline   Reply With Quote

Old   October 14, 2013, 04:26
Default
  #2
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
What do you mean by "cores"? CPU cores?
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   October 14, 2013, 04:27
Default
  #3
New Member
 
lisa
Join Date: Apr 2009
Posts: 17
Rep Power: 17
lisa is on a distinguished road
Yes, i mean cpu cores.
lisa is offline   Reply With Quote

Old   October 14, 2013, 04:28
Default
  #4
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
This doesn't make any sense. "Necessary" is a single core. If you have more than one, you will be faster. Why would you really need more than one core?
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   October 14, 2013, 04:39
Default
  #5
New Member
 
lisa
Join Date: Apr 2009
Posts: 17
Rep Power: 17
lisa is on a distinguished road
I do understand that. I have a mesh sizes 1million, 2 Million elements. Just do a bit of maths on how many cores should i choose for such a simulation. Not always more cores mean more faster. Thats why wanted to know if there is any parameteric study on calculate the no of cores for simulations , like 4 core or 8 core.
lisa is offline   Reply With Quote

Old   October 14, 2013, 04:42
Default
  #6
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
1million cells will be much faster on 8 cores than on 4 cores. But you need 8 "real" cores, not 4 cores with hyperthreading.
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   October 14, 2013, 04:51
Default
  #7
New Member
 
lisa
Join Date: Apr 2009
Posts: 17
Rep Power: 17
lisa is on a distinguished road
What do you mean on real cores. What is the difference of real cores and cores with hyperthreading. Can you please explain. Thanks
lisa is offline   Reply With Quote

Old   October 14, 2013, 04:57
Default
  #8
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
On your normal PC-CPU (at least if you have Intel, such as i7-xxxx), you have just 4 cores, but each of them can handle two threads. Windows / linux shows 8 CPUs (4x2). At least for my cases, they don't get faster when you use more than 4 of them. So it looks like that Fluent and OpenFoam can't gain any speed-up by hyperthreading, just by "real" CPUs.
As far as I know, Intel only offers more than 4 cores, when you get a Xeon.
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   October 14, 2013, 05:14
Default
  #9
New Member
 
lisa
Join Date: Apr 2009
Posts: 17
Rep Power: 17
lisa is on a distinguished road
Yes i do have an i7 But i am planning to run on CLuster machines in Uni which has got supercomputers. So thought to check on this if there is amths behind checking the cores.
lisa is offline   Reply With Quote

Old   October 14, 2013, 05:19
Default
  #10
Senior Member
 
RodriguezFatz's Avatar
 
Philipp
Join Date: Jun 2011
Location: Germany
Posts: 1,297
Rep Power: 27
RodriguezFatz will become famous soon enough
Here are my results, Fluent, all run the same number of iterations. If I recall correctly, the grid has about 1mio cells.
1 core: 881 sec.
2 cores: 485 sec.
3 cores: 377 sec.
4 cores: 320 sec.
6 cores: 357 sec.

Its an i7-3770 with windows. I know, that on a linux server (with many cores) the simulation gets much faster even for 8 cores.
__________________
The skeleton ran out of shampoo in the shower.
RodriguezFatz is offline   Reply With Quote

Old   October 16, 2013, 14:20
Default
  #11
Senior Member
 
Reza
Join Date: Mar 2009
Location: Appleton, WI
Posts: 116
Rep Power: 17
triple_r is on a distinguished road
Just to add to what Philipp said, you should ideally gain speed increase as long as the load on CPUs are balanced, and the interaction between the CPUs is not more time intensive than the computations on each CPU.

So, for example, if you have a pipe geometry with 1 million elements, and if you partition the geometry only in the axial direction:

By load balancing I mean: every CPU should get almost equal number of elements assigned to it. So if you want to use 8 CPUs, divide the pipe into 8 equal segments when you partition the domain.

The interaction between the cores is going to be only on a cross-section of the pipe, so by minimizing CPU-CPU interaction I mean: make sure the number of elements in a partition (1/8th of the pipe volume in this case, so around 125,000 elements) is much larger than the number of faces in a single cross section of the pipe (depends on the pipe diameter, and the mesh resolution, but let's say 5000 faces).

When you do partition any case for parallel processing, most partitioners will give you some statistics on these, so you can decide if you want to re-partition or just go ahead.
triple_r 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
Specify number of cores that CFX should use. Lance CFX 16 July 20, 2016 10:04
Which is better for CFD 4 core i7-2600 or AMD 8 core FX-8150? GregShaffer Hardware 3 May 7, 2015 14:26
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 06:36
Optimal 32-core system bindesboll Hardware 17 July 9, 2013 11:58
Few fast cores or a lot of slow cores travonz Hardware 6 April 5, 2013 21:52


All times are GMT -4. The time now is 23:47.