openldap unstable on freebsd

alexs at ulgsm.ru alexs at ulgsm.ru
Tue Oct 27 08:42:53 UTC 2009


Good day.

Last 2 years (maybe when began using bdb backend), we get slapd crash on
read load. 
System on low load work with monit monitoring and fails 1-3 in month.
When load up crashes frequency up too.

Tuning helped but not much.

load about 20-30 queryes/sec in peak.
and crashes every hour.

Problem watched on Freebsd7,7.1,7.2 i386, amd64 and openldap2.3,2.4
(bdb,hdb backends) in any combinations.


I tested openldap 2.4 on debian lenny, its work under my load without
tuning (once was crashed whole linux :), but not slapd).

Mybe some freebsd tuning needed?


Some debug:
ber_scanf fmt ({m) ber:
ber_dump: buf=0x8037161b0 ptr=0x803716248 end=0x803716274 len=44
  0000:  30 84 00 00 00 26 04 16  31 2e 32 2e 38 34 30 2e
0....&..1.2.840.
  0010:  31 31 33 35 35 36 2e 31  2e 34 2e 33 31 39 04 0c
113556.1.4.319..
  0020:  30 84 00 00 00 06 02 02  03 e8 04 00               0...........
ber_scanf fmt (m) ber:
ber_dump: buf=0x8037161b0 ptr=0x803716266 end=0x803716274 len=14
  0000:  00 0c 30 84 00 00 00 06  02 02 03 e8 04 00         ..0...........
=> get_ctrls: oid="1.2.840.113556.1.4.319" (noncritical)
ber_scanf fmt ({im}) ber:
ber_dump: buf=0x803831000 ptr=0x803831000 end=0x80383100c len=12
  0000:  30 84 00 00 00 06 02 02  03 e8 04 00               0...........
<= get_ctrls: n=1 rc=0 err=""
    attrs: cn userPassword memberUid uniqueMember gidNumber
conn=105 op=1 SRCH base="ou=staff,dc=ulgsm,dc=ru" scope=1 deref=0
filter="(&(objectClass=posixGroup))"
conn=105 op=1 SRCH attr=cn userPassword memberUid uniqueMember gidNumber
slap_global_control: unavailable control: 1.2.840.113556.1.4.319
==> limits_get: conn=105 op=1 dn="cn=bind,ou=staff,dc=ulgsm,dc=ru"
=> hdb_search
bdb_dn2entry("ou=staff,dc=ulgsm,dc=ru")
search_candidates: base="ou=staff,dc=ulgsm,dc=ru" (0x00000002) scope=1
=> hdb_dn2idl("ou=staff,dc=ulgsm,dc=ru")
=> bdb_filter_candidates
        AND
=> bdb_list_candidates 0xa0
=> bdb_filter_candidates
        OR
=> bdb_list_candidates 0xa1
=> bdb_filter_candidates
        EQUALITY
=> bdb_equality_candidates (objectClass)
=> key_read
zsh: segmentation fault  /usr/local/libexec/slapd -d -1




-- 
Email: alexs at ulgsm.ru
Email/Jabber: alexs at ulgsm.ru
Тел. +7 951 0985685, Вн. 368


More information about the freebsd-stable mailing list