[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: Berkely DB and OpenLDAP

Quanah Gibson-Mount wrote:

--On Saturday, February 05, 2005 5:10 PM -0500 Edward Rudd <eddie@omegaware.com> wrote:

I'm just wanting to know is BDB 4.3 the recommended version now, or is
BDB 4.2.52 sill the recommended release of BDB?

I've done a lot of testing of BDB 4.2.52 and BDB 4.3.27. For the OpenLDAP 2.2 release, I recommend BDB 4.2.52. There is no way to do "quick" loads of data with 4.3.27, as the option they provide via in-memory-logs runs into severe issues with OpenLDAP.

what do you mean by there's no "quick" loads ?
my openldap 2.2.20 with BDB 4.3.21 still allows me to use DB_TXN_NOSYNC in DB_CONFIG !
Demonstration with a directory containing about 3000 entries:
set_flags DB_TXN_NOSYNC
$ time /usr/local/openldap-2.2.20-1/sbin/slapadd -f /usr/local/openldap-2.2.20-1/etc/openldap/slapd-slave.conf -l calaz.ldif
real 0m40.039s
user 0m20.502s
sys 0m1.221s
#set_flags DB_TXN_NOSYNC
$ time /usr/local/openldap-2.2.20-1/sbin/slapadd -f /usr/local/openldap-2.2.20-1/etc/openldap/slapd-slave.conf -l calaz.ldif
real 0m28.719s
user 0m19.215s
sys 0m0.944s

Perhaps it changed from 4.3.21 to 4.3.27 ?
However I must admit that I only use 4.3.X in tests not in production !

As far as performance, I saw no real difference between the 4.2 and 4.3 releases. The only gain on 4.3 is around transactions, which won't affect most people, but you can patch BDB 4.2.52 and OpenLDAP for that as well. Once OpenLDAP 2.3 is released with its new "quick" option to slapadd, it should be fine to use BDB 4.3.

My openldap site has some notes about the transactions stuff:



-- Quanah Gibson-Mount Principal Software Developer ITSS/Shared Services Stanford University GnuPG Public Key: http://www.stanford.edu/~quanah/pgp.html

"These censorship operations against schools and libraries are stronger
than ever in the present religio-political climate. They often focus on
fantasy and sf books, which foster that deadly enemy to bigotry and blind
faith, the imagination." -- Ursula K. Le Guin