Re: deleting a map does not release the corresponding memory from RAM.
Posted by
matlabbe on
URL: http://official-rtab-map-forum.206.s1.nabble.com/deleting-a-map-does-not-release-the-corresponding-memory-from-RAM-tp9102p9114.html
Hi,
If I see correctly in the video, your total memory increases from 4.3 to 5.8 when loading databases. If there was a leak, the memory would increase to 8GB (sum of three databases). 5.8-4.3=1.5GB, which is the size of the largest database.
If you load map_2.db first, you will have 5.8 GB usage. If you unload and load map_1.db, the memory usage will still appear 5.8 GB, but internally, it has cleared and re-used some of that memory. I think linux won't show released memory in Top, but internally the memory is available. To better estimate the real memory used, you should use tools like valgrind's massif tool like in this post:
https://github.com/introlab/rtabmap/issues/494cheers,
Mathieu