From owner-freebsd-current@FreeBSD.ORG Tue Nov 2 16:08:42 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 7165016A4D7; Tue, 2 Nov 2004 16:08:42 +0000 (GMT) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1815B43D2F; Tue, 2 Nov 2004 16:08:42 +0000 (GMT) (envelope-from scottl@freebsd.org) Received: from [192.168.254.11] (junior-wifi.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.12.11/8.12.10) with ESMTP id iA2GA8DX014695; Tue, 2 Nov 2004 09:10:08 -0700 (MST) (envelope-from scottl@freebsd.org) Message-ID: <4187B13E.3050802@freebsd.org> Date: Tue, 02 Nov 2004 09:09:34 -0700 From: Scott Long User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.2) Gecko/20040929 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dan Nelson References: <20041102094145.GA4698@adv.devet.org> <20041102160224.GA3595@dan.emsphone.com> In-Reply-To: <20041102160224.GA3595@dan.emsphone.com> X-Enigmail-Version: 0.86.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=0.0 required=3.8 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on pooker.samsco.org 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 16:08:42 -0000 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. > I've had mozilla run for 20 days straight on RELENG_5 (using KSE, btw). At this point for 5.3 and given that this appears to be an isolated problem, I'm going to defer it for now. Scott