Hi,

Our application uses LMDB and sometimes we need to perform scan of old
("cold") data.
The problem here is that this data can/will remove "hot" data from
page-cache.

Ideally to prevent this from happening we'd like to somehow mark cursor as
"streaming"/"non-temporal".
But AFAICS there is no such feature currently.

We're experimenting with marking pages returned by cursor with
madvise(MADV_DONTNEED) and this at least prevents RSS from growing.
But maybe there are some downsides of this approach?

Thanks!

-- 
______________________________

itiviti.com <https://www.itiviti.com/>
 
<https://www.linkedin.com/company/itiviti> Follow Itiviti on Linkedin 
<https://www.linkedin.com/company/10438325/>




The information contained 
in or attached to this email is strictly confidential. If you are not the 
intended recipient, please notify us immediately by telephone and return 
the message to us. Email communications by definition contain personal 
information. The Itiviti group of companies is subject to European data 
protection regulations.



Itiviti’s Privacy Notice is available at 
www.itiviti.com <http://www.itiviti.com/>. Itiviti expects the recipient of 
this email to be compliant with Itiviti’s Privacy Notice and applicable 
regulations. Please advise us immediately at [email protected] 
if you are not compliant with these.

Reply via email to