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

Memory leakage in leastSquaresVolPointInterpolation

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 30, 2020, 07:47
Post Memory leakage in leastSquaresVolPointInterpolation
  #1
Member
 
Emad Tandis
Join Date: Sep 2010
Posts: 77
Rep Power: 12
EmadTandis is on a distinguished road
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.
EmadTandis is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Memory Leakage mkiewat OpenFOAM Programming & Development 0 February 24, 2016 13:16
Run-time memory allocation error akalopsis CFX 0 November 17, 2014 17:17
Lenovo C30 memory configuration and discussions with Lenovo matthewe Hardware 3 October 17, 2013 10:23
CFX CPU time & real time Nick Strantzias CFX 8 July 23, 2006 17:50


All times are GMT -4. The time now is 12:34.