[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: 2.1.17 performance issues
> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Andreas
> On Wed, Apr 16, 2003 at 11:59:06AM -0700, Quanah Gibson-Mount wrote:
> > As per one of my previous emails, the cachesize directive
> > in slapd.conf has no bearing on BDB.
>
> Are you sure about this? The slapd-bdb(5) manpage says this
> is a valid directive
> for bdb:
>
> cachesize <integer>
> Specify the size in entries of the in-memory
> cache maintained by
> the BDB backend database instance. The default
> is 1000 entries.
Andreas is correct. back-bdb maintains its own entry cache separately from
whatever caching the BDB library itself uses. In very early OpenLDAP 2.1 code
there was no entry cache for back-bdb because we believed that the BDB
library's caching would be "good enough" but subsequent benchmarking showed
that an entry cache was needed.
>> >And this is all running with "cachesize 10000000," although we don't have
>> >enough entries to fill that large a cache anyway, on top of the default
>> >bdb install.
There's no harm in setting the size larger than your actual number of
entries, but no benefit either.
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support