From owner-freebsd-stable@FreeBSD.ORG Tue Oct 27 08:56:50 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 6626A106568D for ; Tue, 27 Oct 2009 08:56:50 +0000 (UTC) (envelope-from prvs=0551c90386=ob@gruft.de) Received: from main.mx.e-gitt.net (service.rules.org [IPv6:2001:1560:2342::2]) by mx1.freebsd.org (Postfix) with ESMTP id E840F8FC1A for ; Tue, 27 Oct 2009 08:56:49 +0000 (UTC) Received: from ob by main.mx.e-gitt.net with local (Exim 4.69 (FreeBSD)) (envelope-from ) id 1N2hrE-000De7-N2 for freebsd-stable@freebsd.org; Tue, 27 Oct 2009 09:56:48 +0100 Date: Tue, 27 Oct 2009 09:56:48 +0100 From: Oliver Brandmueller To: freebsd-stable@freebsd.org Message-ID: <20091027085647.GT95002@e-Gitt.NET> Mail-Followup-To: freebsd-stable@freebsd.org References: <20091027082516.GA88892@mail.ulgsm.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091027082516.GA88892@mail.ulgsm.ru> User-Agent: Mutt/1.5.20 (2009-06-14) Sender: Oliver Brandmueller Subject: Re: 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:56:50 -0000 Hi, On Tue, Oct 27, 2009 at 11:25:16AM +0300, alexs@ulgsm.ru wrote: > 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? We have slapd running on several servers with read loads of between 50 and 200 requests per second and it runs rock stable. What comes tomind, did your server crash at some point? Have you tried to either do a db_recover on the database files (while slapd is not running of course) or slapcat/slapadd to rebuild the BDB from scratch? I get the feeling your BDB is somehow damaged. - Oliver -- | Oliver Brandmueller http://sysadm.in/ ob@sysadm.in | | Ich bin das Internet. Sowahr ich Gott helfe. |