Debian Codegraph @

upstream/fedora-44/man5/proc_sys_kernel.5

raw
1 .\" Copyright (C) 1994, 1995, Daniel Quinlan <[email protected]>
2 .\" Copyright (C) 2002-2008, 2017, Michael Kerrisk <[email protected]>
3 .\" Copyright (C) , Andries Brouwer <[email protected]>
4 .\" Copyright (C) 2023, Alejandro Colomar <[email protected]>
5 .\"
6 .\" SPDX-License-Identifier: GPL-3.0-or-later
7 .\"
8 .TH proc_sys_kernel 5 2024-06-28 "Linux man-pages 6.13"
9 .SH NAME
10 /proc/sys/kernel/ \- control a range of kernel parameters
11 .SH DESCRIPTION
12 .TP
13 .I /proc/sys/kernel/
14 This directory contains files controlling a range of kernel parameters,
15 as described below.
16 .TP
17 .I /proc/sys/kernel/acct
18 This file
19 contains three numbers:
20 .IR highwater ,
21 .IR lowwater ,
22 and
23 .IR frequency .
24 If BSD-style process accounting is enabled, these values control
25 its behavior.
26 If free space on filesystem where the log lives goes below
27 .I lowwater
28 percent, accounting suspends.
29 If free space gets above
30 .I highwater
31 percent, accounting resumes.
32 .I frequency
33 determines
34 how often the kernel checks the amount of free space (value is in
35 seconds).
36 Default values are 4, 2, and 30.
37 That is, suspend accounting if 2% or less space is free; resume it
38 if 4% or more space is free; consider information about amount of free space
39 valid for 30 seconds.
40 .TP
41 .IR /proc/sys/kernel/auto_msgmni " (Linux 2.6.27 to Linux 3.18)"
42 .\" commit 9eefe520c814f6f62c5d36a2ddcd3fb99dfdb30e (introduces feature)
43 .\" commit 0050ee059f7fc86b1df2527aaa14ed5dc72f9973 (rendered redundant)
44 From Linux 2.6.27 to Linux 3.18,
45 this file was used to control recomputing of the value in
46 .I /proc/sys/kernel/msgmni
47 upon the addition or removal of memory or upon IPC namespace creation/removal.
48 Echoing "1" into this file enabled
49 .I msgmni
50 automatic recomputing (and triggered a recomputation of
51 .I msgmni
52 based on the current amount of available memory and number of IPC namespaces).
53 Echoing "0" disabled automatic recomputing.
54 (Automatic recomputing was also disabled if a value was explicitly assigned to
55 .IR /proc/sys/kernel/msgmni .)
56 The default value in
57 .I auto_msgmni
58 was 1.
59 .IP
60 Since Linux 3.19, the content of this file has no effect (because
61 .I msgmni
62 .\" FIXME Must document the 3.19 'msgmni' changes.
63 defaults to near the maximum value possible),
64 and reads from this file always return the value "0".
65 .TP
66 .IR /proc/sys/kernel/cap_last_cap " (since Linux 3.2)"
67 See
68 .BR capabilities (7).
69 .TP
70 .IR /proc/sys/kernel/cap\-bound " (from Linux 2.2 to Linux 2.6.24)"
71 This file holds the value of the kernel
72 .I "capability bounding set"
73 (expressed as a signed decimal number).
74 This set is ANDed against the capabilities permitted to a process
75 during
76 .BR execve (2).
77 Starting with Linux 2.6.25,
78 the system-wide capability bounding set disappeared,
79 and was replaced by a per-thread bounding set; see
80 .BR capabilities (7).
81 .TP
82 .I /proc/sys/kernel/core_pattern
83 See
84 .BR core (5).
85 .TP
86 .I /proc/sys/kernel/core_pipe_limit
87 See
88 .BR core (5).
89 .TP
90 .I /proc/sys/kernel/core_uses_pid
91 See
92 .BR core (5).
93 .TP
94 .I /proc/sys/kernel/ctrl\-alt\-del
95 This file
96 controls the handling of Ctrl-Alt-Del from the keyboard.
97 When the value in this file is 0, Ctrl-Alt-Del is trapped and
98 sent to the
99 .BR init (1)
100 program to handle a graceful restart.
101 When the value is greater than zero, Linux's reaction to a Vulcan
102 Nerve Pinch (tm) will be an immediate reboot, without even
103 syncing its dirty buffers.
104 Note: when a program (like dosemu) has the keyboard in "raw"
105 mode, the Ctrl-Alt-Del is intercepted by the program before it
106 ever reaches the kernel tty layer, and it's up to the program
107 to decide what to do with it.
108 .TP
109 .IR /proc/sys/kernel/dmesg_restrict " (since Linux 2.6.37)"
110 The value in this file determines who can see kernel syslog contents.
111 A value of 0 in this file imposes no restrictions.
112 If the value is 1, only privileged users can read the kernel syslog.
113 (See
114 .BR syslog (2)
115 for more details.)
116 Since Linux 3.4,
117 .\" commit 620f6e8e855d6d447688a5f67a4e176944a084e8
118 only users with the
119 .B CAP_SYS_ADMIN
120 capability may change the value in this file.
121 .TP
122 .I /proc/sys/kernel/domainname
123 .TQ
124 .I /proc/sys/kernel/hostname
125 can be used to set the NIS/YP domainname and the
126 hostname of your box in exactly the same way as the commands
127 .BR domainname (1)
128 and
129 .BR hostname (1),
130 that is:
131 .IP
132 .in +4n
133 .EX
134 .RB "#" " echo \[aq]darkstar\[aq] > /proc/sys/kernel/hostname"
135 .RB "#" " echo \[aq]mydomain\[aq] > /proc/sys/kernel/domainname"
136 .EE
137 .in
138 .IP
139 has the same effect as
140 .IP
141 .in +4n
142 .EX
143 .RB "#" " hostname \[aq]darkstar\[aq]"
144 .RB "#" " domainname \[aq]mydomain\[aq]"
145 .EE
146 .in
147 .IP
148 Note, however, that the classic darkstar.frop.org has the
149 hostname "darkstar" and DNS (Internet Domain Name Server)
150 domainname "frop.org", not to be confused with the NIS (Network
151 Information Service) or YP (Yellow Pages) domainname.
152 These two
153 domain names are in general different.
154 For a detailed discussion
155 see the
156 .BR hostname (1)
157 man page.
158 .TP
159 .I /proc/sys/kernel/hotplug
160 This file
161 contains the pathname for the hotplug policy agent.
162 The default value in this file is
163 .IR /sbin/hotplug .
164 .TP
165 .\" Removed in commit 87f504e5c78b910b0c1d6ffb89bc95e492322c84 (tglx/history.git)
166 .IR /proc/sys/kernel/htab\-reclaim " (before Linux 2.4.9.2)"
167 (PowerPC only) If this file is set to a nonzero value,
168 the PowerPC htab
169 .\" removed in commit 1b483a6a7b2998e9c98ad985d7494b9b725bd228, before Linux 2.6.28
170 (see kernel file
171 .IR Documentation/powerpc/ppc_htab.txt )
172 is pruned
173 each time the system hits the idle loop.
174 .TP
175 .I /proc/sys/kernel/keys/
176 This directory contains various files that define parameters and limits
177 for the key-management facility.
178 These files are described in
179 .BR keyrings (7).
180 .TP
181 .IR /proc/sys/kernel/kptr_restrict " (since Linux 2.6.38)"
182 .\" 455cd5ab305c90ffc422dd2e0fb634730942b257
183 The value in this file determines whether kernel addresses are exposed via
184 .I /proc
185 files and other interfaces.
186 A value of 0 in this file imposes no restrictions.
187 If the value is 1, kernel pointers printed using the
188 .I %pK
189 format specifier will be replaced with zeros unless the user has the
190 .B CAP_SYSLOG
191 capability.
192 If the value is 2, kernel pointers printed using the
193 .I %pK
194 format specifier will be replaced with zeros regardless
195 of the user's capabilities.
196 The initial default value for this file was 1,
197 but the default was changed
198 .\" commit 411f05f123cbd7f8aa1edcae86970755a6e2a9d9
199 to 0 in Linux 2.6.39.
200 Since Linux 3.4,
201 .\" commit 620f6e8e855d6d447688a5f67a4e176944a084e8
202 only users with the
203 .B CAP_SYS_ADMIN
204 capability can change the value in this file.
205 .TP
206 .I /proc/sys/kernel/l2cr
207 (PowerPC only) This file
208 contains a flag that controls the L2 cache of G3 processor
209 boards.
210 If 0, the cache is disabled.
211 Enabled if nonzero.
212 .TP
213 .I /proc/sys/kernel/modprobe
214 This file contains the pathname for the kernel module loader.
215 The default value is
216 .IR /sbin/modprobe .
217 The file is present only if the kernel is built with the
218 .B CONFIG_MODULES
219 .RB ( CONFIG_KMOD
220 in Linux 2.6.26 and earlier)
221 option enabled.
222 It is described by the Linux kernel source file
223 .I Documentation/kmod.txt
224 (present only in Linux 2.4 and earlier).
225 .TP
226 .IR /proc/sys/kernel/modules_disabled " (since Linux 2.6.31)"
227 .\" 3d43321b7015387cfebbe26436d0e9d299162ea1
228 .\" From Documentation/sysctl/kernel.txt
229 A toggle value indicating if modules are allowed to be loaded
230 in an otherwise modular kernel.
231 This toggle defaults to off (0), but can be set true (1).
232 Once true, modules can be neither loaded nor unloaded,
233 and the toggle cannot be set back to false.
234 The file is present only if the kernel is built with the
235 .B CONFIG_MODULES
236 option enabled.
237 .TP
238 .IR /proc/sys/kernel/msgmax " (since Linux 2.2)"
239 This file defines
240 a system-wide limit specifying the maximum number of bytes in
241 a single message written on a System V message queue.
242 .TP
243 .IR /proc/sys/kernel/msgmni " (since Linux 2.4)"
244 This file defines the system-wide limit on the number of
245 message queue identifiers.
246 See also
247 .IR /proc/sys/kernel/auto_msgmni .
248 .TP
249 .IR /proc/sys/kernel/msgmnb " (since Linux 2.2)"
250 This file defines a system-wide parameter used to initialize the
251 .I msg_qbytes
252 setting for subsequently created message queues.
253 The
254 .I msg_qbytes
255 setting specifies the maximum number of bytes that may be written to the
256 message queue.
257 .TP
258 .IR /proc/sys/kernel/ngroups_max " (since Linux 2.6.4)"
259 This is a read-only file that displays the upper limit on the
260 number of a process's group memberships.
261 .TP
262 .IR /proc/sys/kernel/ns_last_pid " (since Linux 3.3)"
263 See
264 .BR pid_namespaces (7).
265 .TP
266 .I /proc/sys/kernel/ostype
267 .TQ
268 .I /proc/sys/kernel/osrelease
269 These files
270 give substrings of
271 .IR /proc/version .
272 .TP
273 .I /proc/sys/kernel/overflowgid
274 .TQ
275 .I /proc/sys/kernel/overflowuid
276 These files duplicate the files
277 .I /proc/sys/fs/overflowgid
278 and
279 .IR /proc/sys/fs/overflowuid .
280 .TP
281 .I /proc/sys/kernel/panic
282 This file gives read/write access to the kernel variable
283 .IR panic_timeout .
284 If this is zero, the kernel will loop on a panic; if nonzero,
285 it indicates that the kernel should autoreboot after this number
286 of seconds.
287 When you use the
288 software watchdog device driver, the recommended setting is 60.
289 .TP
290 .IR /proc/sys/kernel/panic_on_oops " (since Linux 2.5.68)"
291 This file controls the kernel's behavior when an oops
292 or BUG is encountered.
293 If this file contains 0, then the system
294 tries to continue operation.
295 If it contains 1, then the system
296 delays a few seconds (to give klogd time to record the oops output)
297 and then panics.
298 If the
299 .I /proc/sys/kernel/panic
300 file is also nonzero, then the machine will be rebooted.
301 .TP
302 .IR /proc/sys/kernel/pid_max " (since Linux 2.5.34)"
303 This file specifies the value at which PIDs wrap around
304 (i.e., the value in this file is one greater than the maximum PID).
305 PIDs greater than this value are not allocated;
306 thus, the value in this file also acts as a system-wide limit
307 on the total number of processes and threads.
308 The default value for this file, 32768,
309 results in the same range of PIDs as on earlier kernels.
310 On 32-bit platforms, 32768 is the maximum value for
311 .IR pid_max .
312 On 64-bit systems,
313 .I pid_max
314 can be set to any value up to 2\[ha]22
315 .RB ( PID_MAX_LIMIT ,
316 approximately 4 million).
317 .\" Prior to Linux 2.6.10, pid_max could also be raised above 32768 on 32-bit
318 .\" platforms, but this broke /proc/[pid]
319 .\" See http://marc.theaimsgroup.com/?l=linux-kernel&m=109513010926152&w=2
320 .TP
321 .IR /proc/sys/kernel/powersave\-nap " (PowerPC only)"
322 This file contains a flag.
323 If set, Linux-PPC will use the "nap" mode of
324 powersaving,
325 otherwise the "doze" mode will be used.
326 .TP
327 .I /proc/sys/kernel/printk
328 See
329 .BR syslog (2).
330 .TP
331 .IR /proc/sys/kernel/pty " (since Linux 2.6.4)"
332 This directory contains two files relating to the number of UNIX 98
333 pseudoterminals (see
334 .BR pts (4))
335 on the system.
336 .TP
337 .I /proc/sys/kernel/pty/max
338 This file defines the maximum number of pseudoterminals.
339 .\" FIXME Document /proc/sys/kernel/pty/reserve
340 .\" New in Linux 3.3
341 .\" commit e9aba5158a80098447ff207a452a3418ae7ee386
342 .TP
343 .I /proc/sys/kernel/pty/nr
344 This read-only file
345 indicates how many pseudoterminals are currently in use.
346 .TP
347 .I /proc/sys/kernel/random/
348 This directory
349 contains various parameters controlling the operation of the file
350 .IR /dev/random .
351 See
352 .BR random (4)
353 for further information.
354 .TP
355 .IR /proc/sys/kernel/random/uuid " (since Linux 2.4)"
356 Each read from this read-only file returns a randomly generated 128-bit UUID,
357 as a string in the standard UUID format.
358 .TP
359 .IR /proc/sys/kernel/randomize_va_space " (since Linux 2.6.12)"
360 .\" Some further details can be found in Documentation/sysctl/kernel.txt
361 Select the address space layout randomization (ASLR) policy for the system
362 (on architectures that support ASLR).
363 Three values are supported for this file:
364 .RS
365 .TP
366 .B 0
367 Turn ASLR off.
368 This is the default for architectures that don't support ASLR,
369 and when the kernel is booted with the
370 .I norandmaps
371 parameter.
372 .TP
373 .B 1
374 Make the addresses of
375 .BR mmap (2)
376 allocations, the stack, and the VDSO page randomized.
377 Among other things, this means that shared libraries will be
378 loaded at randomized addresses.
379 The text segment of PIE-linked binaries will also be loaded
380 at a randomized address.
381 This value is the default if the kernel was configured with
382 .BR CONFIG_COMPAT_BRK .
383 .TP
384 .B 2
385 (Since Linux 2.6.25)
386 .\" commit c1d171a002942ea2d93b4fbd0c9583c56fce0772
387 Also support heap randomization.
388 This value is the default if the kernel was not configured with
389 .BR CONFIG_COMPAT_BRK .
390 .RE
391 .TP
392 .I /proc/sys/kernel/real\-root\-dev
393 This file is documented in the Linux kernel source file
394 .I Documentation/admin\-guide/initrd.rst
395 .\" commit 9d85025b0418163fae079c9ba8f8445212de8568
396 (or
397 .I Documentation/initrd.txt
398 before Linux 4.10).
399 .TP
400 .IR /proc/sys/kernel/reboot\-cmd " (Sparc only)"
401 This file seems to be a way to give an argument to the SPARC
402 ROM/Flash boot loader.
403 Maybe to tell it what to do after
404 rebooting?
405 .TP
406 .I /proc/sys/kernel/rtsig\-max
407 (Up to and including Linux 2.6.7; see
408 .BR setrlimit (2))
409 This file can be used to tune the maximum number
410 of POSIX real-time (queued) signals that can be outstanding
411 in the system.
412 .TP
413 .I /proc/sys/kernel/rtsig\-nr
414 (Up to and including Linux 2.6.7.)
415 This file shows the number of POSIX real-time signals currently queued.
416 .TP
417 .IR /proc/ pid /sched_autogroup_enabled " (since Linux 2.6.38)"
418 .\" commit 5091faa449ee0b7d73bc296a93bca9540fc51d0a
419 See
420 .BR sched (7).
421 .TP
422 .IR /proc/sys/kernel/sched_child_runs_first " (since Linux 2.6.23)"
423 If this file contains the value zero, then, after a
424 .BR fork (2),
425 the parent is first scheduled on the CPU.
426 If the file contains a nonzero value,
427 then the child is scheduled first on the CPU.
428 (Of course, on a multiprocessor system,
429 the parent and the child might both immediately be scheduled on a CPU.)
430 .TP
431 .IR /proc/sys/kernel/sched_rr_timeslice_ms " (since Linux 3.9)"
432 See
433 .BR sched_rr_get_interval (2).
434 .TP
435 .IR /proc/sys/kernel/sched_rt_period_us " (since Linux 2.6.25)"
436 See
437 .BR sched (7).
438 .TP
439 .IR /proc/sys/kernel/sched_rt_runtime_us " (since Linux 2.6.25)"
440 See
441 .BR sched (7).
442 .TP
443 .IR /proc/sys/kernel/seccomp/ " (since Linux 4.14)"
444 .\" commit 8e5f1ad116df6b0de65eac458d5e7c318d1c05af
445 This directory provides additional seccomp information and
446 configuration.
447 See
448 .BR seccomp (2)
449 for further details.
450 .TP
451 .IR /proc/sys/kernel/sem " (since Linux 2.4)"
452 This file contains 4 numbers defining limits for System V IPC semaphores.
453 These fields are, in order:
454 .RS
455 .TP
456 SEMMSL
457 The maximum semaphores per semaphore set.
458 .TP
459 SEMMNS
460 A system-wide limit on the number of semaphores in all semaphore sets.
461 .TP
462 SEMOPM
463 The maximum number of operations that may be specified in a
464 .BR semop (2)
465 call.
466 .TP
467 SEMMNI
468 A system-wide limit on the maximum number of semaphore identifiers.
469 .RE
470 .TP
471 .I /proc/sys/kernel/sg\-big\-buff
472 This file
473 shows the size of the generic SCSI device (sg) buffer.
474 You can't tune it just yet, but you could change it at
475 compile time by editing
476 .I include/scsi/sg.h
477 and changing
478 the value of
479 .BR SG_BIG_BUFF .
480 However, there shouldn't be any reason to change this value.
481 .TP
482 .IR /proc/sys/kernel/shm_rmid_forced " (since Linux 3.1)"
483 .\" commit b34a6b1da371ed8af1221459a18c67970f7e3d53
484 .\" See also Documentation/sysctl/kernel.txt
485 If this file is set to 1, all System V shared memory segments will
486 be marked for destruction as soon as the number of attached processes
487 falls to zero;
488 in other words, it is no longer possible to create shared memory segments
489 that exist independently of any attached process.
490 .IP
491 The effect is as though a
492 .BR shmctl (2)
493 .B IPC_RMID
494 is performed on all existing segments as well as all segments
495 created in the future (until this file is reset to 0).
496 Note that existing segments that are attached to no process will be
497 immediately destroyed when this file is set to 1.
498 Setting this option will also destroy segments that were created,
499 but never attached,
500 upon termination of the process that created the segment with
501 .BR shmget (2).
502 .IP
503 Setting this file to 1 provides a way of ensuring that
504 all System V shared memory segments are counted against the
505 resource usage and resource limits (see the description of
506 .B RLIMIT_AS
507 in
508 .BR getrlimit (2))
509 of at least one process.
510 .IP
511 Because setting this file to 1 produces behavior that is nonstandard
512 and could also break existing applications,
513 the default value in this file is 0.
514 Set this file to 1 only if you have a good understanding
515 of the semantics of the applications using
516 System V shared memory on your system.
517 .TP
518 .IR /proc/sys/kernel/shmall " (since Linux 2.2)"
519 This file
520 contains the system-wide limit on the total number of pages of
521 System V shared memory.
522 .TP
523 .IR /proc/sys/kernel/shmmax " (since Linux 2.2)"
524 This file
525 can be used to query and set the run-time limit
526 on the maximum (System V IPC) shared memory segment size that can be
527 created.
528 Shared memory segments up to 1 GB are now supported in the
529 kernel.
530 This value defaults to
531 .BR SHMMAX .
532 .TP
533 .IR /proc/sys/kernel/shmmni " (since Linux 2.4)"
534 This file
535 specifies the system-wide maximum number of System V shared memory
536 segments that can be created.
537 .TP
538 .IR /proc/sys/kernel/sysctl_writes_strict " (since Linux 3.16)"
539 .\" commit f88083005ab319abba5d0b2e4e997558245493c8
540 .\" commit 2ca9bb456ada8bcbdc8f77f8fc78207653bbaa92
541 .\" commit f4aacea2f5d1a5f7e3154e967d70cf3f711bcd61
542 .\" commit 24fe831c17ab8149413874f2fd4e5c8a41fcd294
543 The value in this file determines how the file offset affects
544 the behavior of updating entries in files under
545 .IR /proc/sys .
546 The file has three possible values:
547 .RS
548 .TP 4
549 \-1
550 This provides legacy handling, with no printk warnings.
551 Each
552 .BR write (2)
553 must fully contain the value to be written,
554 and multiple writes on the same file descriptor
555 will overwrite the entire value, regardless of the file position.
556 .TP
557 0
558 (default) This provides the same behavior as for \-1,
559 but printk warnings are written for processes that
560 perform writes when the file offset is not 0.
561 .TP
562 1
563 Respect the file offset when writing strings into
564 .I /proc/sys
565 files.
566 Multiple writes will
567 .I append
568 to the value buffer.
569 Anything written beyond the maximum length
570 of the value buffer will be ignored.
571 Writes to numeric
572 .I /proc/sys
573 entries must always be at file offset 0 and the value must be
574 fully contained in the buffer provided to
575 .BR write (2).
576 .\" FIXME .
577 .\" With /proc/sys/kernel/sysctl_writes_strict==1, writes at an
578 .\" offset other than 0 do not generate an error. Instead, the
579 .\" write() succeeds, but the file is left unmodified.
580 .\" This is surprising. The behavior may change in the future.
581 .\" See thread.gmane.org/gmane.linux.man/9197
582 .\" From: Michael Kerrisk (man-pages <mtk.manpages@...>
583 .\" Subject: sysctl_writes_strict documentation + an oddity?
584 .\" Newsgroups: gmane.linux.man, gmane.linux.kernel
585 .\" Date: 2015-05-09 08:54:11 GMT
586 .RE
587 .TP
588 .I /proc/sys/kernel/sysrq
589 This file controls the functions allowed to be invoked by the SysRq key.
590 By default,
591 the file contains 1 meaning that every possible SysRq request is allowed
592 (in older kernel versions, SysRq was disabled by default,
593 and you were required to specifically enable it at run-time,
594 but this is not the case any more).
595 Possible values in this file are:
596 .RS
597 .TP 5
598 0
599 Disable sysrq completely
600 .TP
601 1
602 Enable all functions of sysrq
603 .TP
604 > 1
605 Bit mask of allowed sysrq functions, as follows:
606 .PD 0
607 .RS
608 .TP 5
609 \ \ 2
610 Enable control of console logging level
611 .TP
612 \ \ 4
613 Enable control of keyboard (SAK, unraw)
614 .TP
615 \ \ 8
616 Enable debugging dumps of processes etc.
617 .TP
618 \ 16
619 Enable sync command
620 .TP
621 \ 32
622 Enable remount read-only
623 .TP
624 \ 64
625 Enable signaling of processes (term, kill, oom-kill)
626 .TP
627 128
628 Allow reboot/poweroff
629 .TP
630 256
631 Allow nicing of all real-time tasks
632 .RE
633 .PD
634 .RE
635 .IP
636 This file is present only if the
637 .B CONFIG_MAGIC_SYSRQ
638 kernel configuration option is enabled.
639 For further details see the Linux kernel source file
640 .I Documentation/admin\-guide/sysrq.rst
641 .\" commit 9d85025b0418163fae079c9ba8f8445212de8568
642 (or
643 .I Documentation/sysrq.txt
644 before Linux 4.10).
645 .TP
646 .I /proc/sys/kernel/version
647 This file contains a string such as:
648 .IP
649 .in +4n
650 .EX
651 #5 Wed Feb 25 21:49:24 MET 1998
652 .EE
653 .in
654 .IP
655 The "#5" means that
656 this is the fifth kernel built from this source base and the
657 date following it indicates the time the kernel was built.
658 .TP
659 .IR /proc/sys/kernel/threads\-max " (since Linux 2.3.11)"
660 .\" The following is based on Documentation/sysctl/kernel.txt
661 This file specifies the system-wide limit on the number of
662 threads (tasks) that can be created on the system.
663 .IP
664 Since Linux 4.1,
665 .\" commit 230633d109e35b0a24277498e773edeb79b4a331
666 the value that can be written to
667 .I threads\-max
668 is bounded.
669 The minimum value that can be written is 20.
670 The maximum value that can be written is given by the
671 constant
672 .B FUTEX_TID_MASK
673 (0x3fffffff).
674 If a value outside of this range is written to
675 .IR threads\-max ,
676 the error
677 .B EINVAL
678 occurs.
679 .IP
680 The value written is checked against the available RAM pages.
681 If the thread structures would occupy too much (more than 1/8th)
682 of the available RAM pages,
683 .I threads\-max
684 is reduced accordingly.
685 .TP
686 .IR /proc/sys/kernel/yama/ptrace_scope " (since Linux 3.5)"
687 See
688 .BR ptrace (2).
689 .TP
690 .IR /proc/sys/kernel/zero\-paged " (PowerPC only)"
691 This file
692 contains a flag.
693 When enabled (nonzero), Linux-PPC will pre-zero pages in
694 the idle loop, possibly speeding up get_free_pages.
695 .SH SEE ALSO
696 .BR proc (5),
697 .BR proc_sys (5)