|
[Sponsors] |
April 6, 2012, 13:48 |
running out of memory
|
#1 |
Senior Member
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16 |
I have an Ubuntu partition with 20GB. I get the "new" error when running a mesh with 4 million cells. I'm not sure what my swap is.
Should I change the partition size of the ubuntu installation? or is tehre a way to change the swap file size inside Ubuntu?
__________________
Mihai Pruna's Bio |
|
April 12, 2012, 05:25 |
|
#2 |
Member
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14 |
Hi,
Can you copy your error message here ? |
|
April 12, 2012, 06:14 |
|
#3 |
Member
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14 |
In my case, I have this error message :
Code:
Shell refinement iteration 9 ---------------------------- Marked for refinement due to refinement shells : 1279182 cells. Determined cells to refine in = 24.85 s Selected for internal refinement : 1341362 cells (out of 10902074) new cannot satisfy memory request. This does not necessarily mean you have run out of virtual memory. It could be due to a stack violation caused by e.g. bad use of pointers or an out of date shared library Abandon (My configuration : 4 cores at 2,4 GHz ; 6 go of memory and 100 go of disque space) |
|
April 13, 2012, 06:48 |
|
#4 |
Member
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14 |
I tried to execute the same simulation on another computer and I had this errors message :
Code:
Shell refinement iteration 0 ---------------------------- Marked for refinement due to refinement shells : 5415653 cells. Determined cells to refine in = 211.29 s Selected for internal refinement : 5631462 cells (out of 6458511) Processus arrêté client@Client:~/Essai_oGrid$ Code:
Shell refinement iteration 0 ---------------------------- Marked for refinement due to refinement shells : 5415539 cells. Determined cells to refine in = 53.77 s Selected for internal refinement : 5631340 cells (out of 6458385) -------------------------------------------------------------------------- mpirun noticed that process rank 6 with PID 3902 on node Client exited on signal 9 (Killed). -------------------------------------------------------------------------- client@Client:~/Essai_oGrid$ |
|
April 15, 2012, 12:30 |
|
#5 |
Member
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14 |
Any ideas ?
|
|
April 16, 2012, 10:53 |
|
#6 |
Senior Member
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19 |
Hi,
when I had this error message I usually run out of RAM. As a rule of thumb one can say that you shouldn't use more than 1 M cells per 1 GB of RAM (which is the absolute maximum). In your case I see you have already 10902074 cells so way too much for your hardware (6 GB of RAM). The other messages you posted are referring to the same issue. Hint: limit the maximum number of cells in the sHMD to lets say 5M in your case or even less (entity: maxGlobalCells in sHMD). Be aware that the total number of cells might still be more then the number of cells specified here, for the refinement is aborted after sHM is hitting the boundary. E.g. maxGlobalcells set to 1M you have a background mesh of 500k and due to cutting ut a geometry 50k cells are removed and then first level of refinement starts and you end up with 950k he continues refinement and in the next step you might end up with 2 Mio which is twice the number of what you specified. But then he will stop refinement. SO: to reach the maximum number of cells your RAM can handle you watch the last refinement steps in the log of sHM and look for the refinement level which has less cells then you want to have in total and then you set maxGlobalcells to a value less than this and hope it was ok. hope that helps regards |
|
April 16, 2012, 11:32 |
|
#7 |
Senior Member
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16 |
Thanks Colin, I figured out I had to increase the swap size and posted the solution here. I also have reduced the areas of refinement based on distance.
http://www.cfd-online.com/Forums/ope...y-crashes.html
__________________
Mihai Pruna's Bio |
|
April 17, 2012, 07:22 |
|
#8 | |
Member
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14 |
Hi,
Quote:
You're right ! My maxGlobalCells was too high ... Of course ! |
||
April 17, 2012, 10:59 |
|
#9 |
Member
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14 |
"ColinB"
What proportion have you between maxLocalCells and maxGlobalCells ? For example maxLocalCells => 1 000 000 maxGlobalCells => 2 000 000 |
|
April 18, 2012, 03:24 |
|
#10 |
Senior Member
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19 |
As far as I understood this "ratio" is dependant on the number of processors
you are using and the number of cells specified in here (maxLocalCells) is the number of maxGlobalCells divided by the number of processors. However I'm not 100% sure. So usually for mesh generation with 1 core the number is then the same like maxGlobalCells with 2 cores it is half and so on. |
|
April 18, 2012, 03:42 |
|
#11 |
Member
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14 |
Ok, Thanks colinB.
I will try this method |
|
March 17, 2014, 16:28 |
|
#12 | |
New Member
Andrew Mortimer
Join Date: Oct 2013
Posts: 15
Rep Power: 13 |
Quote:
What is the way to work out this ratio? |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Gambit Error: Running out of memory; the volume could not be meshed! | sumit.sh | ANSYS Meshing & Geometry | 3 | April 24, 2017 02:36 |
Memory/ swap area | J-man | STAR-CD | 1 | September 29, 2009 20:43 |
Running on Distibuted Memory linux itanium cluster | Josh | FLUENT | 0 | January 29, 2007 01:18 |
Run-Time memory conifguration Error | Graeme | CFX | 1 | February 21, 2006 00:04 |