From owner-freebsd-current@FreeBSD.ORG Tue Nov 2 18:53:08 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C087E16A4CE; Tue, 2 Nov 2004 18:53:08 +0000 (GMT) Received: from carver.gumbysoft.com (carver.gumbysoft.com [66.220.23.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id AF6D443D45; Tue, 2 Nov 2004 18:53:08 +0000 (GMT) (envelope-from dwhite@gumbysoft.com) Received: by carver.gumbysoft.com (Postfix, from userid 1000) id A63AC72DF4; Tue, 2 Nov 2004 10:53:08 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by carver.gumbysoft.com (Postfix) with ESMTP id A3A1272DD4; Tue, 2 Nov 2004 10:53:08 -0800 (PST) Date: Tue, 2 Nov 2004 10:53:08 -0800 (PST) From: Doug White To: Dan Nelson In-Reply-To: <20041102160224.GA3595@dan.emsphone.com> Message-ID: <20041102105228.X63929@carver.gumbysoft.com> References: <20041102094145.GA4698@adv.devet.org> <20041102160224.GA3595@dan.emsphone.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: re@freebsd.org cc: current@freebsd.org cc: Arjan de Vet Subject: Re: 5.3-RC2: kqueue descriptor leak in resolver functions? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2004 18:53:08 -0000 On Tue, 2 Nov 2004, Dan Nelson wrote: > In the last episode (Nov 02), Arjan de Vet said: > > I'm trying to track down a weird hang/panic in 5.3-RC* which seems to > > happen after 1-1.5 days on my desktop machine. The one time I saw the > > panic message it complained about kmem_map being full. > > > > This morning I noticed that the kernel memory used for kqueues was a > > bit larger than expected so I started to monitor it more closely. > > > > I soon found out what seems to be the problem: mozilla keeps lots of > > kqueue file descriptors open: > > > > > lsof | fgrep mozilla | fgrep KQUEUE | wc -l > > 1137 > > > > This number grows over time (I have mozilla running permanently with > > lots of tabs, most of which auto-refresh). Does anybody see something > > similar with mozilla on 5.3-RC*? > > I see it often, but only with programs using libc_r. I've seen up to > 3000 kqueues in one process :) I agree that the DNS lookup functions > seem to be the problem. Ugh. I thought we fixed that a couple ofyears ago. I remember tracking that one down myself :( -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org