Skip to content

Commit ca3b78a

Browse files
Federica Teodoritorvalds
authored andcommitted
Documentation: file handles are now freed
Since file handles are freed, a little amendment to the documentation Signed-off-by: Federica Teodori <federica.teodori@googlemail.com> Acked-by: Rik van Riel<riel@redhat.com> Signed-off-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent aa4862c commit ca3b78a

1 file changed

Lines changed: 8 additions & 9 deletions

File tree

‎Documentation/sysctl/fs.txt‎

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,20 +88,19 @@ you might want to raise the limit.
8888

8989
file-max & file-nr:
9090

91-
The kernel allocates file handles dynamically, but as yet it
92-
doesn't free them again.
93-
9491
The value in file-max denotes the maximum number of file-
9592
handles that the Linux kernel will allocate. When you get lots
9693
of error messages about running out of file handles, you might
9794
want to increase this limit.
9895

99-
Historically, the three values in file-nr denoted the number of
100-
allocated file handles, the number of allocated but unused file
101-
handles, and the maximum number of file handles. Linux 2.6 always
102-
reports 0 as the number of free file handles -- this is not an
103-
error, it just means that the number of allocated file handles
104-
exactly matches the number of used file handles.
96+
Historically,the kernel was able to allocate file handles
97+
dynamically, but not to free them again. The three values in
98+
file-nr denote the number of allocated file handles, the number
99+
of allocated but unused file handles, and the maximum number of
100+
file handles. Linux 2.6 always reports 0 as the number of free
101+
file handles -- this is not an error, it just means that the
102+
number of allocated file handles exactly matches the number of
103+
used file handles.
105104

106105
Attempts to allocate more file descriptors than file-max are
107106
reported with printk, look for "VFS: file-max limit <number>

0 commit comments

Comments
 (0)