diff mbox series

[3/3] docs: admin-guide: Explain cmdline argument exceed_file_max_panic in fs.rst

Message ID 1591425140-20613-3-git-send-email-yangtiezhu@loongson.cn (mailing list archive)
State New, archived
Headers show
Series [1/3] fs: Use get_max_files() instead of files_stat.max_files in alloc_empty_file() | expand

Commit Message

Tiezhu Yang June 6, 2020, 6:32 a.m. UTC
Explain the cmdline argument exceed_file_max_panic in the file

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
 Documentation/admin-guide/sysctl/fs.rst | 7 +++++++
 1 file changed, 7 insertions(+)
diff mbox series


diff --git a/Documentation/admin-guide/sysctl/fs.rst b/Documentation/admin-guide/sysctl/fs.rst
index 2a45119..0cfc5c4 100644
--- a/Documentation/admin-guide/sysctl/fs.rst
+++ b/Documentation/admin-guide/sysctl/fs.rst
@@ -126,6 +126,13 @@  Attempts to allocate more file descriptors than file-max are
 reported with printk, look for "VFS: file-max limit <number>
+If there exists file descriptor leaks, when file-max limit reached,
+we can see that the system can not work well and at worst the user
+can do nothing, it is even impossible to execute reboot command due
+to too many open files in system. In order to reboot automatically
+to recover to the normal status, we can use the cmdline argument
+exceed_file_max_panic to control whether to call panic in this case.