Hi Matt,
Thanx a lot for repyling. We increased cache size up to the value enough
to keep all data in memory. This resulted in much better performance.
However I still have odd feeling about it as I don't really understand
why performance descreased so much (several orders of magnitude) when
cache size was small. This is due to my miserable knowledge of berkeley
db. And why preformance decreased in irreversable manner? Why even
restart of LDAP server does not bring performance to proper value? Do you
know what exactly happens to bdb backend when cache size is too small?
You see, I feel unconfortable if someone tells me "put contents of your
backend in memory and everything will be fine", because
1) I don't understand why should I do it ... Look there must be an error
somewhere, if performance degradates so much suddenly and does not
recover . Why db_recover "recovers" performance?
2) I can not increase cache size as fast as ammount of data in our LDAP
server grows ...