File descriptors allocated

From: Steven Micallef (steven.micallef@world.net)
Date: Wed Aug 06 2003 - 00:13:17 EST


Hi all,

On the 2.4.20 kernel, looking at /proc/sys/fs/file-nr, as far as I know the
three values (from left to right) represent file descriptors allocated, file
descriptors free (from those allocated) and maximum file descriptors
available.

My question is, should the first figure ever decrease? On a fairly loaded
system, I've seen it go from 400 to 1700+ in a couple of days, and it just
keeps getting higher and higher. The first value minus the second should
tell me exactly how many are in use on my system, and this figure remains
(fairly) consistent, so it's probably no big deal. I just figured that the
kernel would "de-allocate" FDs after they weren't in use for a period of
time.

Any ideas?

Thanks,

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



This archive was generated by hypermail 2b29 : Thu Aug 07 2003 - 22:00:31 EST