From owner-freebsd-current@FreeBSD.ORG Wed Dec 17 23:59:40 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 E71BD16A4CE for ; Wed, 17 Dec 2003 23:59:39 -0800 (PST) Received: from ns.rrc.ru (ns.rrc.ru [217.171.4.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 40B5643D1F for ; Wed, 17 Dec 2003 23:59:37 -0800 (PST) (envelope-from kaa@in-line.ru) Received: from in-line.ru ([172.18.10.246]) by ns.rrc.ru (8.12.10/8.12.10) with ESMTP id hBI85QRb006417 for ; Thu, 18 Dec 2003 11:05:27 +0300 Message-ID: <3FE15E65.9060903@in-line.ru> Date: Thu, 18 Dec 2003 10:59:33 +0300 From: Kaa the Snake User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031120 X-Accept-Language: ru, en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <20031217110353.U94352@prg.traveller.cz> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: Thu, 18 Dec 2003 07:59:40 -0000 Bjoern A. Zeeb wrote: > On Wed, 17 Dec 2003, Michal Mertl wrote: > > >>For several weeks now I see my -current (now RELENG_5_2 to help test the >>release) machine seems to be leaking file descriptors. After some time all >>files (up to kern.maxfiles) are consumed. >> >>I installed new kernel and world yesterday and the problem stil persists. >>The machine is used as my workstation - it's running X, fvwm2, Apache >>and Mozilla. >> > what would fstat tell you ? > I had expirienced the same problem. fstat and lsof list each and every shared library as an open file for each binary that load it (thus ld-elf.so.1 consumes as many fds as there are processes). I have 450+ open files now on a desktop machine (mozilla, wmaker, xmms). lsof output (part): COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME sh 524 kaa cwd VDIR 4,18 1536 1036289 /usr/home/kaa sh 524 kaa rtd VDIR 4,13 512 2 / sh 524 kaa txt VREG 4,13 728144 8297 /bin/sh sh 524 kaa 0r VCHR 2,2 0t0 9 /dev/null sh 524 kaa 1w VREG 4,18 1008 1036334 /usr/home/kaa/.xsession-errors sh 524 kaa 2w VREG 4,18 1008 1036334 /usr/home/kaa/.xsession-errors sh 524 kaa 10r VREG 4,18 193 1036302 /usr/home/kaa/.xsession wmaker 528 kaa cwd VDIR 4,18 1536 1036289 /usr/home/kaa wmaker 528 kaa rtd VDIR 4,13 512 2 / wmaker 528 kaa txt VREG 4,18 536476 401389 /usr/X11R6/bin/wmaker wmaker 528 kaa txt VREG 4,13 128044 8321 /libexec/ld-elf.so.1 wmaker 528 kaa txt VREG 4,18 97783 401371 /usr/X11R6/lib/libwraster.so.4 wmaker 528 kaa txt VREG 4,18 336823 426747 /usr/local/lib/libtiff.so.4 wmaker 528 kaa txt VREG 4,18 64620 401066 /usr/X11R6/lib/libXpm.so.4 wmaker 528 kaa txt VREG 4,18 184118 426884 /usr/local/lib/libHermes.so.1 wmaker 528 kaa txt VREG 4,18 151464 426717 /usr/local/lib/libpng.so.5 wmaker 528 kaa txt VREG 4,13 54108 8333 /lib/libz.so.2 wmaker 528 kaa txt VREG 4,18 135483 426727 /usr/local/lib/libjpeg.so.9 wmaker 528 kaa txt VREG 4,18 36780 426585 /usr/local/lib/libungif.so.5 wmaker 528 kaa txt VREG 4,18 67284 401008 /usr/X11R6/lib/libXext.so.6 wmaker 528 kaa txt VREG 4,18 917608 400967 /usr/X11R6/lib/libX11.so.6 wmaker 528 kaa txt VREG 4,13 92288 8327 /lib/libm.so.2 wmaker 528 kaa txt VREG 4,18 40498 425479 /usr/local/lib/libintl.so.5 wmaker 528 kaa txt VREG 4,18 2876 353835 /usr/lib/libxpg4.so.3 wmaker 528 kaa txt VREG 4,13 848696 8331 /lib/libc.so.5 wmaker 528 kaa txt VREG 4,18 1010460 425397 /usr/local/lib/libiconv.so.3 wmaker 528 kaa txt VREG 4,18 10370 400986 /usr/X11R6/lib/X11/locale/lib/common/xl cDef.so.2 wmaker 528 kaa txt VREG 4,18 40528 401209 /usr/X11R6/lib/libXcursor.so.1 wmaker 528 kaa txt VREG 4,18 31644 401194 /usr/X11R6/lib/libXrender.so.1 wmaker 528 kaa txt VREG 4,18 143017 400989 /usr/X11R6/lib/X11/locale/lib/common/xi mcp.so.2 wmaker 528 kaa 0r VCHR 2,2 0t0 9 /dev/null wmaker 528 kaa 1w VREG 4,18 1008 1036334 /usr/home/kaa/.xsession-errors wmaker 528 kaa 2w VREG 4,18 1008 1036334 /usr/home/kaa/.xsession-errors wmaker 528 kaa 3u unix 0xc3e4fc30 0t0 ->0xc3ad4870 -- Alexey A. Kirithun