Re: file descriptor leak in 5.2-RC

From: Kaa the Snake <kaa_at_in-line.ru>
Date: Thu, 18 Dec 2003 10:59:33 +0300
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
Received on Wed Dec 17 2003 - 22:59:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:34 UTC