[Date Prev][Date Next]
Re: syncrepl_del_nonpresent and syncrepl issues.
--On May 13, 2010 2:23:33 PM +0900 Jorgen Lundman <email@example.com>
dbconfig set_lk_detect DB_LOCK_DEFAULT
dbconfig set_lg_max 52428800
dbconfig set_cachesize 0 67108864 1
dbconfig set_flags db_log_autoremove
dbconfig set_lk_max_objects 1500
dbconfig set_lk_max_locks 1500
dbconfig set_lk_max_lockers 1500
You don't provide relevant data on the size of your database to make any
comment one way or the other on whether your "set_cachesize" value is
I would suggest you provide the output of du -c -h *.bdb in your
OpenLDAP 2.3 database directory.
Coming right up! I appreciate your time in doing some sanity checks for
(no -c in Solaris, the whole dir is: )
Now, live slapd consumes about 800MB of memory when it is running, which
is probably acceptable as the server is dedicated to LDAP master. (Has
Your server is not sufficiently powerful enough to optimally run your
database. Your database size is approximately 4GB in size (dn2id.bdb +
id2entry.bdb + index databases). For an optimal slapadd run, your BDB
cachesize (set_cachesize from DB_CONFIG) must be able to contain this
entire dataset in memory. So you have only 1/2 the necessary memory to do
an optimal slapadd load. This is why your slapadd takes 15+ hours to run.
For your database itself to run optimally under slapd, it needs to be able
to hold the sum of dn2id.bdb + id2entry.bdb, or in your case,
1.2G+2.5G=3.7GB. So again, you do not have enough memory. To make matters
worse, your DB_CONFIG only allocates 64MB to slapd. Which, quite frankly,
is an insanely small number for a database the size you are operating.
One other tuning parameter that will help slapadd that I failed to mention
is the tool-threads setting. It should be set to the number of real cores
the box has. However, this setting will not help in your resource
The first thing you need to do is get new hardware or increase the
available RAM in the system you have. Since the running slapd is going to
take the DB_CACHESIZE + thread overhead + slapd cachesizes memory, you
probably need closer to 8GB of RAM to run your LDAP service.
Principal Software Engineer
Zimbra :: the leader in open source messaging and collaboration