[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: How to improve performance with MDB backend?
- To: "openldap-technical@openldap.org" <openldap-technical@openldap.org>
- Subject: RE: How to improve performance with MDB backend?
- From: Chris Card <ctcard@hotmail.com>
- Date: Thu, 18 Apr 2013 15:59:22 +0000
- Importance: Normal
- In-reply-to: <BC77D2142C458E0797EC69CF@[192.168.1.26]>
- References: <CANk+c=3nULMFAPs=O0X3UjE0ODvY+NHS1cJJ5HU4gWL1244RTw@mail.gmail.com>, , , <5162AEAF.1000606@symas.com>, <45D4EB8EBF550836F7A2A0D1@192.168.1.26>,,, <CANk+c=3xV1kBOkthtU0tKi8dpomLouiVA1B1Li2v=8cesU0LOA@mail.gmail.com>, ,,<516C3451.5050207@stroeder.com>, , , <CANk+c=19yHjORwumEq81UbOqDdq3_1wPO8_nmEkE5oBEddB05w@mail.gmail.com>, , <BLU178-W87AB3305361B4C3345928CCCF0@phx.gbl>, , <462E03D8E285FC197BC69AD5@[192.168.1.26]>, <BLU178-W20CF6C02DE6E65A95DD27FCCCF0@phx.gbl>, <BC77D2142C458E0797EC69CF@[192.168.1.26]>
----------------------------------------
> Date: Thu, 18 Apr 2013 08:50:23 -0700
> From: quanah@zimbra.com
> To: ctcard@hotmail.com; openldap-technical@openldap.org
> Subject: RE: How to improve performance with MDB backend?
>
> --On Thursday, April 18, 2013 3:29 PM +0000 Chris Card <ctcard@hotmail.com>
> wrote:
>
> >> Did you make the changes to the DB flags for MDB that I noted the other
> >> day? For me, MDB writes are a minimum of 65 times faster than writes with
> >> BDB/HDB, even when BDB/HDB use an SHM key.
> > Yes. I have these values in my mdb configuration:
> > olcDbEnvFlags: writemap
> > olcDbEnvFlags: nometasync
> >
> > I think these setting may have helped to speed up slapadd, but not
> > ldapmodify.
>
> I'm specifically talking about ldapmodify actually. ;)
>
> <http://wiki.zimbra.com/wiki/OpenLDAP_MDB_vs_HDB_performance>
Maybe MDB performance relative to BDB degrades as the database get bigger.
>From your wiki page: "This particular client has 25,208 entries in their LDAP database".
My test database has over 3 million entries (production has nearly 7 million), which take about 20 minutes to slapadd into MDB initially.
My machine has 128 Gb RAM and the MDB db size is 429496729600, so slapd can't map the whole db file into RAM.
Chris