Hi!
I have a problem since I've updated my openldap server to 2.4.19 version (from 2.3.33). If I do a ldapsearch operation with dereferring "always" from my root base dn, i can't obtain any results because it's too slow. I think the performance of this kind of operation against the OpenLDAP directory is getting worst in last versions (2.4.x).
Which could be the reason? Only with dereferencing always (in debug mode 1, i can see the operation reference a lot of index content)
Thanks
On 01/05/2010 05:16 AM, Nacho Díaz Asenjo wrote:
(in debug mode 1, i can see the operation reference a lot of index content)
Then post the relevant section of the log.
An example search and your configuration, especially as it pertains to indexing, would also likely be helpful.
El 07/01/10 16:55, Owen Marshall escribió:
On 01/05/2010 05:16 AM, Nacho Díaz Asenjo wrote:
(in debug mode 1, i can see the operation reference a lot of index content)
Then post the relevant section of the log.
An example search and your configuration, especially as it pertains to indexing, would also likely be helpful.
If I run Openldap with -d 1 option and i execute
ldapsearch -h ldap01.uc3m.es -b "o=Universidad Carlos III,c=es" "(&(uid=nacho)(objectclass=inetorgperson))" -a always -x
then i could see in my terminal a lot of lines like this
entry_decode: "uid=xxxxxx, ou=Externos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxx,ou=Externos,o=Universidad Carlos III,c=es) entry_decode: "uid=xxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es) => bdb_dn2id("uid=exxx,ou=receptores,ou=sfe2010,ou=grupos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efd9 bdb_dn2entry("uid=xxxxx,ou=externos,o=universidad carlos iii,c=es") => bdb_dn2id("uid=xxxxxx,ou=externos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efd8 entry_decode: "uid=xxxx,ou=Externos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxx,ou=Externos,o=Universidad Carlos III,c=es) entry_decode: "uid=sxxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es) => bdb_dn2id("uid=xxxxxx,ou=receptores,ou=sfe2010,ou=grupos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efdb bdb_dn2entry("uid=xxxxx,ou=externos,o=universidad carlos iii,c=es") => bdb_dn2id("uid=sxxxxx,ou=externos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efda entry_decode: "uid=xxxxxx,ou=Externos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxxx,ou=Externos,o=Universidad Carlos III,c=es) entry_decode: "uid=xxxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxxx,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es) => bdb_dn2id("uid=xxxxx,ou=receptores,ou=sfe2010,ou=grupos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efdd bdb_dn2entry("uid=xxxxxou=externos,o=universidad carlos iii,c=es") => bdb_dn2id("uid=xxxxx,ou=externos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efdc entry_decode: "uid=pxxxxs,ou=Externos,o=Universidad Carlos III,c=es" <= entry_decode(uid=pxxxx.es,ou=Externos,o=Universidad Carlos III,c=es) entry_decode: "uid=joxxxxes,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es" <= entry_decode(uid=jxxxxm.es,ou=Receptores,ou=sfe2010,ou=Grupos,o=Universidad Carlos III,c=es) => bdb_dn2id("uid=josxxxm.es,ou=receptores,ou=sfe2010,ou=grupos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efdf bdb_dn2entry("uid=joxxxxm.es,ou=externos,o=universidad carlos iii,c=es") => bdb_dn2id("uid=xxxxxx,ou=externos,o=universidad carlos iii,c=es") <= bdb_dn2id: got id=0x1efde entry_decode: "uid=xxxx,ou=Externos,o=Universidad Carlos III,c=es" <= entry_decode(uid=xxxx,ou=Externos,o=Universidad Carlos III,c=es)
...... thousands & thousands of similar lines (each search with always dereferencing look up almost whole directory entries)
and i can't obtain any result because the operation takes a lot of time (more than 50 seconds.)
In my var/openldap-data directory there is a index for aliasedObjectName 835584 2010-01-11 13:01 aliasedObjectName.bdb thanks to that, i achieve better response times.
Thanks
On Tue, Jan 5, 2010 at 10:16 AM, Nacho Díaz Asenjo nacho@di.uc3m.es wrote:
I have a problem since I've updated my openldap server to 2.4.19 version (from 2.3.33). If I do a ldapsearch operation with dereferring "always" from my root base dn, i can't obtain any results because it's too slow. I think the performance of this kind of operation against the OpenLDAP directory is getting worst in last versions (2.4.x).
Which could be the reason? Only with dereferencing always (in debug mode 1, i can see the operation reference a lot of index content)
Hello, what do you mean this is too slow? I have a slave using deref here (2.4.17 on Debian) and it works accordingly and without delay. That said the master it replicates from is still a 2.3.3x base.
Steph
openldap-software@openldap.org