(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Configuration : (Category) SLAPD Configuration : (Category) Performance Tuning : (Answer) Can I tune the BDB entry cache?
You may want to tune the entry cache using cachesize slapd.conf(5) configuration directive.
  cachesize 100000
will allow the entry cache to hold 100,000 entries.
About the cachesize and idlcachesize parameters (slapd.conf) :

You may want to put all your directory entries into the entry cache but you must be aware that the memory will not increase forever and the system limits may me reached !

See this thread and the answer from --Quanah :
http://www.openldap.org/lists/openldap-software/200502/msg00526.html

On Linux 32 bits, the size limit for a process is 2Gb, if the DB_CONFIG set_cachesize is already high, a huge directory may crash with a sequential search on all entries.

See : ITS#3938 (CLOSED "no code bug. doc?")

A useful test : export all entryUUID attributes and then search all of them thanks to the "%s" pattern of the ldapsearch tool .



[Append to This Answer]
Previous: (Answer) Can I tune logging to improve performance?
Next: (Answer) Can I tune the LDBM entry and index caches?
This document is: http://www.openldap.org/faq/index.cgi?file=1076
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org