From owner-freebsd-stable@FreeBSD.ORG Tue Oct 27 08:42:53 2009 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AEE73106566C for ; Tue, 27 Oct 2009 08:42:53 +0000 (UTC) (envelope-from alexs@ulgsm.ru) Received: from mail.ulgsm.ru (skuns.ulgsm.ru [93.93.136.26]) by mx1.freebsd.org (Postfix) with ESMTP id 5963C8FC1B for ; Tue, 27 Oct 2009 08:42:53 +0000 (UTC) Received: from mail.ulgsm.ru (localhost [127.0.0.1]) by mail.ulgsm.ru (Postfix) with ESMTP id 4BFE5B849 for ; Tue, 27 Oct 2009 11:25:17 +0300 (MSK) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.gsm900.net X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.2.5 Received: from mail.ulgsm.ru (localhost [127.0.0.1]) by mail.ulgsm.ru (Postfix) with ESMTP id 2DB52B843 for ; Tue, 27 Oct 2009 11:25:17 +0300 (MSK) Received: from mail.ulgsm.ru (bazar.gsm900.net [192.168.0.160]) by mail.ulgsm.ru (Postfix) with ESMTP id EF4EDB83C for ; Tue, 27 Oct 2009 11:25:16 +0300 (MSK) Date: Tue, 27 Oct 2009 11:25:16 +0300 From: alexs@ulgsm.ru To: freebsd-stable@freebsd.org Message-ID: <20091027082516.GA88892@mail.ulgsm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.20 (2009-06-14) X-Virus-Scanned: ClamAV using ClamSMTP Subject: openldap unstable on freebsd X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Oct 2009 08:42:53 -0000 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@ulgsm.ru Email/Jabber: alexs@ulgsm.ru Тел. +7 951 0985685, Вн. 368