[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: openldap slowness...



With the following, my ldapmodify command is still slow. My ldif file has about 5000 entries for users, and 5000 add/modify entries to add that user to a cn with a uniquemember attribute. To make sure everything I have in LDIF overwrites what in ldap, etc.,. I use the following commands:

ldapmodify -c -D "..." -w ... -S outfile -x -r -f ldif
ldapmodify -c -D "..." -w ... -x -a -f outfile

slapd.conf:
include /usr/local/etc/openldap/schema/core.schema.default
include /usr/local/etc/openldap/schema/cosine.schema.default
include /usr/local/etc/openldap/schema/inetorgperson.schema.default
include /usr/local/etc/openldap/schema/openldap.schema.default
loglevel 4
pidfile /var/run/slapd.pid
argsfile /var/run/slapd.args
database bdb
suffix "o=eastern.edu"
rootdn "cn=Manager,o=..."
rootpw ...
directory /MailStore/ldap
index objectClass pres,eq
index uid,cn,sn,givenName,mail pres,eq,sub
password-hash {CLEARTEXT}
sizelimit -1



DB_CONFIG:
#set the logfile size to 100MB.
set_lg_max 104857600
#set the in-memory log buffer size
set_lg_bsize 204800
#temporary while we're slapadding the database
#set_flags DB_TXN_NOSYNC
#set the (per db?) cachesize to 0GB + X bytes, split into N pieces of memory
set_cachesize 0 10000000 2



On Aug 19, 2004, at 6:11 PM, Luis Daniel Lucio Quiroz wrote:



could you send us your index configuration, on many cases is a razon.

On Thu, 19 Aug 2004, John Von Essen wrote:

I have openldap on an Itanium HP-UX box (v11.23). OpenLDAP was
installed as a depot package, and I am using DB-4.2.

I have an ldif file with some add and updates (about 5000 entries).
When I do the ldapmodify, things go really slow, after 40 minutes, only
1800 entries have been worked on.


Sometimes it will just there for 5-8 secs doing nothing, then bam, 10
entries will scroll by.

This is shot in the dark, but anyone have any idea why it is so slow?

-John