CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[snappyHexMesh] running out of memory

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By colinB

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 6, 2012, 13:48
Default running out of memory
  #1
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
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
mihaipruna is offline   Reply With Quote

Old   April 12, 2012, 05:25
Default
  #2
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Hi,

Can you copy your error message here ?
Rider is offline   Reply With Quote

Old   April 12, 2012, 06:14
Default
  #3
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
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
Anybody know if I can do this snappyHexMesh with my computer, or it's "juste" because I don't have enough memory ?

(My configuration : 4 cores at 2,4 GHz ; 6 go of memory and 100 go of disque space)
Rider is offline   Reply With Quote

Old   April 13, 2012, 06:48
Default
  #4
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
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$
Or, this :

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$
Rider is offline   Reply With Quote

Old   April 15, 2012, 12:30
Default
  #5
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Any ideas ?
Rider is offline   Reply With Quote

Old   April 16, 2012, 10:53
Default
  #6
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19
colinB is on a distinguished road
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
vs1 and stachstach like this.
colinB is offline   Reply With Quote

Old   April 16, 2012, 11:32
Default
  #7
Senior Member
 
Mihai Pruna
Join Date: Apr 2010
Location: Boston
Posts: 195
Rep Power: 16
mihaipruna is on a distinguished road
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
mihaipruna is offline   Reply With Quote

Old   April 17, 2012, 07:22
Default
  #8
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Hi,

Quote:
Originally Posted by mihaipruna View Post
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
I already do this procedure when I had installed OpenFoam. I put 6 Gio of swap for Gio of memory.

Quote:
Originally Posted by colinB View Post
maxGlobalCells in sHMD
You're right ! My maxGlobalCells was too high ...

Quote:
Originally Posted by colinB View Post
hope that helps
Of course !
Rider is offline   Reply With Quote

Old   April 17, 2012, 10:59
Default
  #9
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
"ColinB"

What proportion have you between maxLocalCells and maxGlobalCells ?

For example

maxLocalCells => 1 000 000
maxGlobalCells => 2 000 000
Rider is offline   Reply With Quote

Old   April 18, 2012, 03:24
Default
  #10
Senior Member
 
Join Date: Aug 2010
Location: Groningen, The Netherlands
Posts: 216
Rep Power: 19
colinB is on a distinguished road
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.
colinB is offline   Reply With Quote

Old   April 18, 2012, 03:42
Default
  #11
Member
 
Join Date: Apr 2012
Location: France
Posts: 72
Rep Power: 14
Rider is on a distinguished road
Ok, Thanks colinB.

I will try this method
Rider is offline   Reply With Quote

Old   March 17, 2014, 16:28
Default
  #12
New Member
 
Andrew Mortimer
Join Date: Oct 2013
Posts: 15
Rep Power: 13
AndrewMortimer is on a distinguished road
Quote:
Originally Posted by colinB View Post
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.
I understand this is bringing up a slightly old topic, my meshing keeps crashing when I edit the maxGlobalCells only.

What is the way to work out this ratio?
AndrewMortimer 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
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


All times are GMT -4. The time now is 16:11.