https://bugs.openldap.org/show_bug.cgi?id=10027

--- Comment #4 from kero <[email protected]> ---
Thank you for the answer,

At Meilisearch, we try to control the memory we allocate. In one data
structure, we use to sort key-values before storing them in LMDB, we allocate
one big buffer and don't grow it anymore. We know the maximum amount of memory
we will allocate during indexation.

One question remains: Can you tell me how much LMDB can allocate in RES? Is
there a known limit? Can we control it?

I understand that it will depend on the nature of the entries we store, the
length of the keys, and data values. I also read about MDB_WRITE_MAP [1]. It
seems that it uses fewer mallocs, but is it significant? Hard to tell, I
suppose.

[1]:
http://www.lmdb.tech/doc/group__mdb.html#ga32a193c6bf4d7d5c5d579e71f22e9340

-- 
You are receiving this mail because:
You are on the CC list for the issue.

Reply via email to