summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2013-09-04 10:00:05 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2013-09-04 10:00:05 +0200
commit7ab222df40bc8251b5c3a7a19dfc9f7b0d4c8717 (patch)
tree5f9f32c4799e627e9c4048e3244d23f076ab74dd
parentac8727b68ca4c6b041e3361098fcc23f0c163e7e (diff)
proc.5: /proc/sys/fs/inode-max went away in Linux 2.4
Also, the 'preshrink' field in /proc/sys/fs/inode-state became a dummy value in Linux 2.4. See https://bugzilla.kernel.org/show_bug.cgi?id=60836 Reported-by: Marko Myllynen <myllynen@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man5/proc.529
1 files changed, 13 insertions, 16 deletions
diff --git a/man5/proc.5 b/man5/proc.5
index 1c427179..e40dd4d8 100644
--- a/man5/proc.5
+++ b/man5/proc.5
@@ -2497,15 +2497,6 @@ The kernel constant
imposes an upper limit on the value that may be placed in
.IR file-max .
-If you increase
-.IR /proc/sys/fs/file-max ","
-be sure to increase
-.I /proc/sys/fs/inode-max
-to 3-4 times the new
-value of
-.IR /proc/sys/fs/file-max ","
-or you will run out of inodes.
-
Privileged processes
.RB ( CAP_SYS_ADMIN )
can override the
@@ -2531,15 +2522,18 @@ a past peak in the usage of open file handles.
Since Linux 2.6, the kernel does deallocate freed file handles,
and the "free file handles" value is always zero.
.TP
-.I /proc/sys/fs/inode-max
+.IR /proc/sys/fs/inode-max " (only present until Linux 2.2)"
This file contains the maximum number of in-memory inodes.
-On some (2.4) systems, it may not be present.
This value should be 3-4 times larger
than the value in
.IR file-max ,
since \fIstdin\fP, \fIstdout\fP
and network sockets also need an inode to handle them.
When you regularly run out of inodes, you need to increase this value.
+
+Starting with Linux 2.4,
+there is no longer a static limit on the number of inodes,
+and this file is removed.
.TP
.I /proc/sys/fs/inode-nr
This file contains the first two values from
@@ -2551,20 +2545,23 @@ contains seven numbers:
.IR nr_inodes ,
.IR nr_free_inodes ,
.IR preshrink ,
-and four dummy values.
+and four dummy values (always zero).
+
.I nr_inodes
is the number of inodes the system has allocated.
-This can be slightly more than
-.I inode-max
-because Linux allocates them one page full at a time.
+.\" This can be slightly more than
+.\" .I inode-max
+.\" because Linux allocates them one page full at a time.
.I nr_free_inodes
represents the number of free inodes.
+
.I preshrink
is nonzero when the
.I nr_inodes
>
.I inode-max
-and the system needs to prune the inode list instead of allocating more.
+and the system needs to prune the inode list instead of allocating more;
+since Linux 2.4, this field is a dummy value (always zero).
.TP
.IR /proc/sys/fs/inotify " (since Linux 2.6.13)"
This directory contains files