Laurence Field wrote:
Laurence Field wrote:
The answer to this question can probably be gleaned from reading the openldap-devel archives from the time 2.4 was being first prepared for release. A lot of profiling and refactoring went into the 2.4 code to improve performance relative to 2.3. At this point 2.3 is ancient and I've forgotten everything that we've changed internally, and it's not worth my while to dig back to remember what we fixed.
Thanks, will start digging.
Laurence
Just to complete this thread. In the devel list there was quite a bit of discussion about the bdb backend. Debugging suggested that most of the time was spent in the following library.
/usr/lib64/tls/libslapd_db-4.4.so
As a solution, I have just taken the openldap source rpm from Fedora 12 and rebuilt it on CENTOS 5, relocating it to /opt/openldap2.4 and turning off auto-provides.
And now you know why (a) we recommend never using slapd as built by your distro vendor (particularly Red Hat and its derivatives) and (b) we always recommend using the most current code.