Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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
b0f53dbc4bc4c371f38b14c391095a3bb8a0bb40

Fixes: b0f53dbc4bc4 ("kernel/sysctl.c: do not override max_threads provided by userspace")
Signed-off-by: Masanari Iida <standby24x7@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Jonathan Corbet <corbet@lwn.net>

authored by

Masanari Iida and committed by
Jonathan Corbet
73eb802a 0d0da9aa

+1 -1
+1 -1
Documentation/admin-guide/sysctl/kernel.rst
··· 1103 1103 maximum number of threads is created, the thread structures occupy only 1104 1104 a part (1/8th) of the available RAM pages. 1105 1105 1106 - The minimum value that can be written to threads-max is 20. 1106 + The minimum value that can be written to threads-max is 1. 1107 1107 1108 1108 The maximum value that can be written to threads-max is given by the 1109 1109 constant FUTEX_TID_MASK (0x3fffffff).