When setting up logging in /etc/syslog.conf on the LDAP server make sure you prepend the logfile entry with a minus sign.
The "-" prevents syncing of the log file to disk every time that a write is made. This greatly improves the speed of LDAP searches when logging is enabled.
Date: Mon, 8 Nov 2010 14:57:04 +0100
Subject: Openladp is very very slow with log activated
Somebody has already had any problems of big slowness (to see out of order) with openldap when the log in openladp is activated, the os of linux is Suse server 11 and the base of Openldap is Berklet Data Base.