Re: 2.2.0pre6 leaking inodes?

Stephen C. Tweedie (sct@redhat.com)
Tue, 19 Jan 1999 15:55:49 GMT


Hi,

On Fri, 15 Jan 1999 14:51:04 +0800 (WST), Matt Kemner
<kemner@live.networx.net.au> said:

> Hi all
> Perhaps I'm doing something wrong, but it seems to me the 2.2.0pre6 kernel
> is leaking inodes like crazy..

> I keep increasing the number in /proc/sys/fs/inode-max (and file-max as
> well to keep the ratio the same as suggested in the documentation) but
> everytime I do, within hours it reaches that limit again..

The kernel caches inodes. If you increase the maximum size of the
inode table, then it will continue to grow. :)

However, for nr_inodes to exceed max_inodes, we must be failing to reap
the inode cache aggressively enough. What sort of load are you running
under?

The simple cure is not to increase inode-max. The kernel will still let
the inode cache grow above inode-max if it really neads to, but will
reap things much more aggressively above that limit.

--Stephen

-
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/