CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   CFX (https://www.cfd-online.com/Forums/cfx/)
-   -   how much memory needed? (https://www.cfd-online.com/Forums/cfx/24347-how-much-memory-needed.html)

jan August 2, 2007 12:11

how much memory needed?
 
is there a way to clac how much mem you need ,to do a certain calc

like 100.000 grid cells you need ..................... mem

1.000.000 you need ...........................mem

Bian August 2, 2007 12:41

Re: how much memory needed?
 
How about doing a little experiment? Doing a couple of cases to see what is the RAM/nodes ratio.

jan August 2, 2007 13:13

Re: how much memory needed?
 
well i did just sad not enough memory so .........

jan August 2, 2007 13:16

Re: how much memory needed?
 
oops seems that i get drunk

i wanted to say

well i just did that and got a message not enough memory so................

Robin August 2, 2007 13:41

Re: how much memory needed?
 
Hi Jan,

The actual memory requirements are dependant on the equations being solved, the topology of the mesh, and the number of boundary faces, so it is very difficult to estimate.

That said, the solver does estimate the amount needed and this is reported in the OUT file. Compare what it expects to need with the amount available.

Note that there are two types of memory errors you can run into:

1. The solver underestimated the amount of memory and not enough memory has been allocated.

2. The solver could not allocate the memory requested.

How you react depends on which error you run into. If it is case 1, not enough memory allocated, increase the Memory Allocation Factor, say to 1.2 (i.e. 20% more memory) under the "Solver" tab when you define the run in the Solver Manager. For case 2 you can try decreasing it to, say, 0.9. The solver will generally overestimate the memory required, so there is usually some room for reducing it. If that doesn't work, either reduce the size of your model or run it in parallel.

Regards, Robin


Robin August 2, 2007 13:42

Side question: what browser are you using?------We
 
Hi Jan,

Your posts seem to be succeptable to the same random text as some of mine. What browser are you using?

Regards, Robin

jan August 2, 2007 14:32

Re: Side question: what browser are you using?----
 
differant computers but mostly safari on power mac

jan August 2, 2007 14:41

so how much mem is this ???????? robin?
 
+--------------------------------------------------------------------+ | Memory Allocated for Run (Actual usage may be less) | +--------------------------------------------------------------------+

Data Type Kwords Words/Node Words/Elem Kbytes Bytes/Node

Real 292156.1 300.91 95.54 1141234.8 1203.62 Integer 122312.0 125.98 40.00 477781.3 503.90 Character 2807.9 2.89 0.92 2742.1 2.89 Logical 65.0 0.07 0.02 253.9 0.27 Double 908.0 0.94 0.30 7093.8 7.48


Robin August 2, 2007 15:05

Re: so how much mem is this ???????? robin?
 
Sum up the Kbytes column for each type (the REAL and INTEGER spaces take up the bulk of it). You get:

Total Kbytes = 1141234.8 + 477781.3 + 2742.1 + 253.9 + 7093.8 Total Kbytes = 1,629,105.9

Divide by 1024 to get Mbytes... 1,590.9 Mb

Regards, Robin

Robin August 2, 2007 15:07

Re: Side question: what browser are you using?----
 
That's what I suspected. I'm running Safari on Windows and on my Mac at home.

Jonas Larsson August 2, 2007 16:08

Re: Side question: what browser are you using?----
 
I think that this is a bug in early verisions of Safari 3. Safari 2 and the latest Safari should not have it I think, but I haven't tried it.

Robin August 2, 2007 16:18

Re: Side question: what browser are you using?----
 
Hi Jonas,

I updated Safari yesterday with the latest patch but it still did it. It seems to happen for sure if you resize the text box (which you cannot do in other browsers). Other than that I can't predict it.

Nice browser otherwise.

-Robin

klaas September 2, 2007 18:12

Re: so how much mem is this ???????? robin?
 
kbytes 1164520.2 +477781.8+2742.5+253.9+7093.8

and i have 2048 mem and i still get a error not enough free mem

how come and what to do????

Robin September 4, 2007 09:21

Re: so how much mem is this ???????? robin?
 
Hi Klaas,

That would be 1613 MB. This is less than the 2048 MB you have available, however it is not usually possible to allocate all of the memory, especially if you are running on Windows. The solver will attempt to grab the largest contiguous block of Virtual Memory the OS has available (meaning that the memory is not fragmented). Most operating systems have no problem returning the full 2 GB that can be allocated with a 32 bit signed integer, but because of how Windows pre-loads DLL's, it's virtual memory address space is far more fragmented. I have heard of people maxing out with as little as 800 MB of contiguous space!

The problem really only occurs on 32 bit Windows. To avoid the problem you could run Linux, or run CFX in parallel (even on a single CPU), so that each partition requires less memory. The problem also goes away on 64 bit Windows systems, which are quickly becoming the norm anyhow (although this admittedly doesn't help you much).

Regards, Robin


klaas September 4, 2007 14:52

Re: so how much mem is this ???????? robin?
 
thanks, i tried parallel but got also error . and its a laptop so it not possible to more mem so i am stuck with this problem



All times are GMT -4. The time now is 09:41.