Re: Keeping mdb files opened while mmapped

2015-11-17 Thread Hallvard Breien Furuseth
On 12. nov. 2015 00:38, Shlomi Vaknin wrote: When I lsof my process, I am seeing that each mdb file is appearing twice (...) I know that after mmaping a file, it is not needed to be kept open, and it seems it is in lmdb. By default the mmap is read-only, LDMB uses file operations for updates.

Keeping mdb files opened while mmapped

2015-11-13 Thread Shlomi Vaknin
Hey, I am using lmdb as a backend to a big database (and its awesome, thanks!). While trying to understand memory consumption of my process I came across something interesting I'd like to get an expert's opinion about. I am seeing that the "Virtual" memory is quite large, larger than I expected, a