[PATCH] LMDB full patch set

Volker Lendecke Volker.Lendecke at SerNet.DE
Tue May 15 10:57:35 UTC 2018


On Tue, May 15, 2018 at 10:17:40PM +1200, Andrew Bartlett via samba-technical wrote:
> These are likely larger as after a fork() we have no way to safely
> destroy the old mmap()ed region (pending the yet to be written post-
> fork close and reopen patches). 

From my point of view we need to work towards a model where the raw
ldb access is done only in the LDAP server. Everything else goes via
the LDAP protocol, possibly via ldapi with PEERCRED checks. If no LDAP
server is around when we need it, we need to fork one on demand and
work through a parent<->child socket. This solves the memory
footprint and the asynchronosity problem. Transactions? Make them an
exop blocking everything else like it's done locally right now. That
makes it even easier to have a watchdog forcibly aborting blocked
processes with an open transaction.

I know this is not a simple task, but I think we need that in the long
run and I'd like to hear comments about it.

Thanks,

Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de



More information about the samba-technical mailing list