From owner-freebsd-stable@FreeBSD.ORG Thu Feb 14 02:14:07 2013 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id BAD152D2 for ; Thu, 14 Feb 2013 02:14:07 +0000 (UTC) (envelope-from pierre@guinoiseau.eu) Received: from mail.poildetroll.net (tritus.poildetroll.net [IPv6:2a01:4f8:160:72a3::6:1]) by mx1.freebsd.org (Postfix) with ESMTP id 6AB48E16 for ; Thu, 14 Feb 2013 02:14:07 +0000 (UTC) Received: from tritus.poildetroll.net (tritus.poildetroll.net [IPv6:2a01:4f8:160:72a3::6:1]) by mail.poildetroll.net (Postfix) with ESMTP id 9E90DA8D6; Thu, 14 Feb 2013 03:13:58 +0100 (CET) X-Virus-Scanned: amavisd-new at poildetroll.net Received: from mail.poildetroll.net ([IPv6:2a01:4f8:160:72a3::6:1]) by tritus.poildetroll.net (mail.poildetroll.net [IPv6:2a01:4f8:160:72a3::6:1]) (amavisd-new, port 10024) with LMTP id xTnvutzGcpfj; Thu, 14 Feb 2013 03:13:57 +0100 (CET) Received: from kyleck.poildetroll.net (kyleck.poildetroll.net [IPv6:2a01:4f8:160:72a3::7:1]) by mail.poildetroll.net (Postfix) with SMTP id 7129CA8CE; Thu, 14 Feb 2013 03:13:57 +0100 (CET) Date: Thu, 14 Feb 2013 03:13:57 +0100 From: Pierre Guinoiseau To: Adam McDougall , Kai Gallasch Subject: Re: FreeBSD 9.1 - openldap slapd lockups, mutex problems Message-ID: <20130214021356.GJ46275@kyleck.poildetroll.net> References: <50FEB684.9040201@egr.msu.edu> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="j+MD90OnwjQyWNYt" Content-Disposition: inline In-Reply-To: <50FEB684.9040201@egr.msu.edu> X-Operating-System: FreeBSD User-Agent: Mutt/1.5.21 (2010-09-15) Cc: freebsd-stable@freebsd.org 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: Thu, 14 Feb 2013 02:14:07 -0000 --j+MD90OnwjQyWNYt Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 22/01/2013 10:55:48, Adam McDougall wrote: > On 01/22/13 05:19, Kai Gallasch wrote: > > Hi. > > > > (Im am sending this to the "stable" list, because it maybe kernel relat= ed.. ) > > > > On 9.1-RELEASE I am witnessing lockups of the openldap slapd daemon. > > > > The slapd runs for some days and then hangs, consuming high amounts of = CPU. > > In this state slapd can only be restarted by SIGKILL. > > > > # procstat -kk 71195 > > PID TID COMM TDNAME KSTACK > > 71195 149271 slapd - mi_switch+0x186 sleepq_c= atch_signals+0x2cc sleepq_wait_sig+0x16 _sleep+0x29d do_wait+0x678 __umtx_o= p_wait+0x68 amd64_syscall+0x546 Xfast_syscall+0xf7 >=20 > > On UFS2 slapd runs fine, without showing the error. > > Has anyone else running openldap-server on FreeBSD 9.1 inside a jail se= en similar problems? >=20 > I have seen openldap spin the cpu and even run out of memory to get=20 > killed on some of our test systems running ~9.1-rel with zfs. No jails. > I'm not sure what would have put load on our test systems other than=20 > nightly scripts. I had to focus my attention on other servers so I=20 > don't have one to inspect at this point, but I won't be surprised if I=20 > see this in production. Thanks for the tip about it being ZFS related,= =20 > and I'll let you know if I find anything out. This is mostly a "me too"= =20 > reply. Hi, I've the same problem too, inside a jail, stored on ZFS. I've tried various tuning in slapd.conf, but none fixed the problem. While hanging, db_stat -c shows that all locks are being used, I've tried to set the limit really hig= h, far more than normally needed, but it didn't help. I may have the same prob= lem with amavisd-new but I've to verify that to be sure the symptoms are simila= r. I had no problem at all with the same setup on FreeBSD 8.2R, it was my most stable service back then. I've not tried with 9.0R. --j+MD90OnwjQyWNYt Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlEcSGQACgkQJikNJSAyef+Z5gCgyDvHdqwdX2GuQETp2IYqic6t sRMAmwRq1l3sCIo128AaPMh9ogYp3s4Z =pViJ -----END PGP SIGNATURE----- --j+MD90OnwjQyWNYt--