Commit 73eb802a authored by Masanari Iida's avatar Masanari Iida Committed by Jonathan Corbet
Browse files

docs: admin-guide: Fix min value of threads-max in kernel.rst



Since following patch was merged 5.4-rc3, minimum value for
threads-max changed to 1.

kernel/sysctl.c: do not override max_threads provided by userspace
b0f53dbc

Fixes: b0f53dbc ("kernel/sysctl.c: do not override max_threads provided by userspace")
Signed-off-by: default avatarMasanari Iida <standby24x7@gmail.com>
Acked-by: default avatarMichal Hocko <mhocko@suse.com>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent 0d0da9aa
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1103,7 +1103,7 @@ During initialization the kernel sets this value such that even if the
maximum number of threads is created, the thread structures occupy only
maximum number of threads is created, the thread structures occupy only
a part (1/8th) of the available RAM pages.
a part (1/8th) of the available RAM pages.


The minimum value that can be written to threads-max is 20.
The minimum value that can be written to threads-max is 1.


The maximum value that can be written to threads-max is given by the
The maximum value that can be written to threads-max is given by the
constant FUTEX_TID_MASK (0x3fffffff).
constant FUTEX_TID_MASK (0x3fffffff).