|
[Sponsors] |
Memory leakage in leastSquaresVolPointInterpolation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 30, 2020, 08:47 |
Memory leakage in leastSquaresVolPointInterpolation
|
#1 |
Member
Emad Tandis
Join Date: Sep 2010
Posts: 77
Rep Power: 16 |
Hello All,
This post aims at sharing an experience about leastSquaresVolPointInterpolation class which is used to interpolate variables from cells to points. Actually, I faced a problem, called "memory leakage", in the past years for two of my solvers for which the memory is increasing as the simulation goes on. Recently, I faced this again in a my modified version of icoFsiNonLinElasticULSolidFoam, in which I had to use small time step (1e-10) and therefore, the the simulation needed many time steps to reach steady state solution. However, the process in Linux was killed after 2 days for several times. By delving into the process log, I noticed that memory was increasing from 200 MB to 20 GB throughout the simulation! The reason for this was because of using too many pointers in the class of leastSquaresVolPointInterpolation. By changing the pointer type type to autoPtr<T>, which allows for automatic release of memory, and also some modification according to this type, the problem of memory leakage was eliminated and the memory usage stayed at 200 MB for seven days. You might find some useful tips on "memory leakage" in the below link: https://www.geeksforgeeks.org/memory...w-to-avoid-it/ I hope this helps especially for those working in solid solvers. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Memory Leakage | mkiewat | OpenFOAM Programming & Development | 0 | February 24, 2016 14:16 |
Run-time memory allocation error | akalopsis | CFX | 0 | November 17, 2014 18:17 |
Lenovo C30 memory configuration and discussions with Lenovo | matthewe | Hardware | 3 | October 17, 2013 11:23 |
CFX CPU time & real time | Nick Strantzias | CFX | 8 | July 23, 2006 18:50 |