From owner-freebsd-current@FreeBSD.ORG Tue Nov 2 16:02:48 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 C108816A4CE; Tue, 2 Nov 2004 16:02:48 +0000 (GMT) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 767D143D2F; Tue, 2 Nov 2004 16:02:48 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.11/8.13.1) id iA2G2OhY031388; Tue, 2 Nov 2004 10:02:24 -0600 (CST) (envelope-from dan) Date: Tue, 2 Nov 2004 10:02:24 -0600 From: Dan Nelson To: Arjan de Vet Message-ID: <20041102160224.GA3595@dan.emsphone.com> References: <20041102094145.GA4698@adv.devet.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20041102094145.GA4698@adv.devet.org> X-OS: FreeBSD 5.3-STABLE X-message-flag: Outlook Error User-Agent: Mutt/1.5.6i cc: re@freebsd.org cc: current@freebsd.org 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 16:02:48 -0000 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. -- Dan Nelson dnelson@allantgroup.com