From owner-freebsd-stable@FreeBSD.ORG Wed Jun 13 18:22:17 2007 Return-Path: X-Original-To: stable@freebsd.org Delivered-To: freebsd-stable@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0472816A46B; Wed, 13 Jun 2007 18:22:17 +0000 (UTC) (envelope-from jdc@parodius.com) Received: from mx01.sc1.parodius.com (mx01.sc1.parodius.com [72.20.106.3]) by mx1.freebsd.org (Postfix) with ESMTP id C9CB413C4BE; Wed, 13 Jun 2007 18:22:16 +0000 (UTC) (envelope-from jdc@parodius.com) Received: by mx01.sc1.parodius.com (Postfix, from userid 1000) id 88C191CC050; Wed, 13 Jun 2007 11:22:16 -0700 (PDT) Date: Wed, 13 Jun 2007 11:22:16 -0700 From: Jeremy Chadwick To: "Marc G. Fournier" , stable@freebsd.org, rwatson@freebsd.org Message-ID: <20070613182216.GA19533@eos.sc1.parodius.com> Mail-Followup-To: "Marc G. Fournier" , stable@freebsd.org, rwatson@freebsd.org References: <7EEECFAE63E9B976653B3254@ganymede.hub.org> <20070613181555.GA1506@roadrunner.q.local> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070613181555.GA1506@roadrunner.q.local> User-Agent: Mutt/1.5.15 (2007-04-06) Cc: Subject: Re: Unix domain socket leak in 6-STABLE 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: Wed, 13 Jun 2007 18:22:17 -0000 On Wed, Jun 13, 2007 at 08:15:56PM +0200, Ulrich Spoerlein wrote: > I wonder though: maxfilesperproc is roughly 12k, but lsof needs to only > count 2.5k lines of slapd output when the limit is hit. Is there > a better way to check, how much fds/resources are open by a certain process? sockstat is what you're looking for. Also, do not forget about limits(1). If the sockets aren't being closed (in any condition; after completion or after error), there's going to be a leak until the daemon is restarted. I wouldn't be surprised if this is what's happening, based on previous experience I've had with slapd during my day job. :-) -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |