Re: Out of Files

Matti Aarnio (matti.aarnio@sonera.fi)
Mon, 21 Jun 1999 19:46:19 +0300


On Mon, Jun 21, 1999 at 04:43:43PM +0100, Alan Cox wrote:
> > At various points in time after I have booted I will get errors because
> > of too many open files. I find it hard to believe that within a few
> > hours of booting I have over 4000 files open.
>
> If you have programs leaking file handles its believable. You can find out -
> flip through /proc/[pid]/fd/ seeing if you have processes with lots of handles

Check also leaking mmap() regions; each one is associated to some
file descriptor, which may not be (anymore) in the process fd set!

cat /proc/[pid]/maps

I encountered apparent bug in opening of BSD DB 2.* B_TREE (and
possibly B_HASH) which leak one mmap() region on tmpfile() per
each database open... (glibc 2.1.1 as at RedHat 6.0)

> Same again
> Alan

/Matti Aarnio <matti.aarnio@sonera.fi>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/