From owner-freebsd-current@FreeBSD.ORG Sun Dec 28 15:57:18 2003 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 5BB0416A4CF for ; Sun, 28 Dec 2003 15:57:18 -0800 (PST) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8FA3C43D41 for ; Sun, 28 Dec 2003 15:57:11 -0800 (PST) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id C41D01FF91D; Mon, 29 Dec 2003 00:57:09 +0100 (CET) Received: by transport.cksoft.de (Postfix, from userid 66) id 269781FF90C; Mon, 29 Dec 2003 00:57:08 +0100 (CET) Received: by mail.int.zabbadoz.net (Postfix, from userid 1060) id E4F8B153ED; Sun, 28 Dec 2003 23:56:51 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.int.zabbadoz.net (Postfix) with ESMTP id D9BB115329; Sun, 28 Dec 2003 23:56:51 +0000 (UTC) Date: Sun, 28 Dec 2003 23:56:51 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@e0-0.zab2.int.zabbadoz.net To: David Malone In-Reply-To: <20031227001820.GA89334@walton.maths.tcd.ie> Message-ID: References: <20031224154121.GA83770@e-Gitt.NET> <20031225204626.GA68589@e-Gitt.NET> <20031225215838.GB68589@e-Gitt.NET> <20031225222029.GC68589@e-Gitt.NET> <20031226002654.GB6757@e-Gitt.NET> <20031226162329.GA79023@e-Gitt.NET> <20031226190356.GD79023@e-Gitt.NET> <20031227001820.GA89334@walton.maths.tcd.ie> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de cc: freebsd-current@freebsd.org Subject: Re: file descriptor leak in 5.2-RC 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: Sun, 28 Dec 2003 23:57:18 -0000 On Sat, 27 Dec 2003, David Malone wrote: > > during the machine is running on high load and after going to single > > user mode. You can clearly see, that even though kern.openfiles still > > shows a high number, pstat -f only finds very few files. > > Ahhh crud - the kern.file sysctl isn't completly calculated from > the list of all open files - it iterates through all the processes > to form the final list. Could you try rerunning pstat with the patch > below - it walks the full open file list, rather than checking each > process (this may leak open file info to people within jails on the > machine, hopefully that is not a problem for you...) [patch snipped] can we somehow inlcude this w/o leaking information ? I have not looked at it up to now but perhaps su only for none-jailed processes ? -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT 56 69 73 69 74 http://www.zabbadoz.net/