From owner-freebsd-stable@FreeBSD.ORG Mon Mar 25 10:12:27 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id E92D1F7E for ; Mon, 25 Mar 2013 10:12:27 +0000 (UTC) (envelope-from gallasch@free.de) Received: from smtp.free.de (smtp.free.de [91.204.6.103]) by mx1.freebsd.org (Postfix) with ESMTP id 5FE7DCF5 for ; Mon, 25 Mar 2013 10:12:27 +0000 (UTC) Received: (qmail 64862 invoked from network); 25 Mar 2013 11:05:45 +0100 Received: from smtp.free.de (HELO orwell.free.de) (gallasch@free.de@[91.204.4.103]) (envelope-sender ) by smtp.free.de (qmail-ldap-1.03) with AES128-SHA encrypted SMTP for ; 25 Mar 2013 11:05:45 +0100 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Apple Message framework v1085) Subject: Re: FreeBSD 9.1 - openldap slapd lockups, mutex problems From: Kai Gallasch In-Reply-To: Date: Mon, 25 Mar 2013 11:05:44 +0100 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: freebsd-stable X-Mailer: Apple Mail (2.1085) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 25 Mar 2013 10:12:28 -0000 Am 22.01.2013 um 11:19 schrieb Kai Gallasch: > Hi. >=20 > (Im am sending this to the "stable" list, because it maybe kernel = related.. ) >=20 > On 9.1-RELEASE I am witnessing lockups of the openldap slapd daemon. >=20 > The slapd runs for some days and then hangs, consuming high amounts of = CPU. > In this state slapd can only be restarted by SIGKILL. short update: I tried all I could to isolate the problem. What I am certain of is that the problem lies in the BDB backend for = openldap itself, or how slapd interacts with it. My knowledge is not sufficient to debug BDB itself, it appears to be = quite a complex gearbox. Also - as a sidenote - I had to learn that the new owner of BDB (orcle) = does not give a toss about keeping old links to BDB documentation intact = (for example informattion you'd need to tune your BDB - "DB_CONFIG" - or = understand it better.) In the end I decided to drop the BDB backend for my running slapd = installations and switch over to MDB[1,2] as backend and since then the = problems disappeared. So if you are plagued by the same slapd lockups and rely on your ldap = directory, switching backends will give you some peace of mind. Thanks to all who have replied! And thanks to sleepycat for all the = fish. Kai Gallasch. [1] http://manpages.ubuntu.com/manpages/precise/man5/slapd-mdb.5.html [2] http://www.openldap.org/doc/admin24/backends.html=