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

Core to ram ratio for openfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 12, 2019, 06:55
Default Core to ram ratio for openfoam
  #1
New Member
 
Edward
Join Date: Jul 2011
Location: The Netherlands
Posts: 4
Rep Power: 14
eliwardian is on a distinguished road
Hi, I like to know what is the best core to ram ratio. For example, 1 core to 1GB - 10GB. Thanks in advance.
eliwardian is offline   Reply With Quote

Old   December 12, 2019, 07:38
Default
  #2
Super Moderator
 
flotus1's Avatar
 
Alex
Join Date: Jun 2012
Location: Germany
Posts: 3,399
Rep Power: 46
flotus1 has a spectacular aura aboutflotus1 has a spectacular aura about
In my opinion, the relevance of this metric is debatable at best.

There is only one real constraint: the total amount of memory required to fit your model.
If the simulation requires 100GB of RAM, then the machine needs 100GB (typically populated as 128GB) of RAM.
You can run it regardless of how many cores the machine has. Sure, having more cores will tend to solve the model faster. But the real bottleneck here will be memory bandwidth, as proven time and time again in the sticky thread in the hardware sub-forum. This means that at a certain point, CPUs with higher core counts will not solve the model any faster.
An extreme example of this is the TR 3960X CPU added recently. Here are the numbers:
Code:
# cores Wall time (s):
------------------------
1 550.49
2 299.15
4 161.65
6 120.55
8 101.56
12 99.13
16 93.74
20 93.71
24 93.65
As you can see, scaling falls off after 8 cores. Different CPUs with the same architecture achieve much better scaling (and overall performance) due to having more memory bandwidth available.
Switching from the 24-core Threadripper CPU to its 32-core variant (or even 64 cores later down the line) would change the "cores/GB" ratio, but do absolutely nothing for the solver performance.

In conclusion: I would separate the decision for system memory and CPU.
Get the CPU(s) that perform best within your given budget. And make sure you have enough memory to fit your largest simulations.

Edit: this should be moved to OpenFOAM or hardware sub-forum
flotus1 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
Problem with divergence TDK FLUENT 13 December 14, 2018 06:00
M.2 SSD as substitude for RAM...optimum core number fonograph Hardware 1 January 14, 2018 05:26
solving a conduction problem in FLUENT using UDF Avin2407 Fluent UDF and Scheme Programming 1 March 13, 2015 02:02
Superlinear speedup in OpenFOAM 13 msrinath80 OpenFOAM Running, Solving & CFD 18 March 3, 2015 05:36
pressure eq. "converges" after few time steps maddalena OpenFOAM Running, Solving & CFD 69 July 21, 2011 07:42


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