printk boot_delay: rename printk_delay_msec to loops_per_msec
[deliverable/linux.git] / Documentation / sysctl / kernel.txt
CommitLineData
1da177e4
LT
1Documentation for /proc/sys/kernel/* kernel version 2.2.10
2 (c) 1998, 1999, Rik van Riel <riel@nl.linux.org>
760df93e 3 (c) 2009, Shen Feng<shen@cn.fujitsu.com>
1da177e4
LT
4
5For general info and legal blurb, please look in README.
6
7==============================================================
8
9This file contains documentation for the sysctl files in
10/proc/sys/kernel/ and is valid for Linux kernel version 2.2.
11
12The files in this directory can be used to tune and monitor
13miscellaneous and general things in the operation of the Linux
14kernel. Since some of the files _can_ be used to screw up your
15system, it is advisable to read both documentation and source
16before actually making adjustments.
17
18Currently, these files might (depending on your configuration)
19show up in /proc/sys/kernel:
c255d844 20- acpi_video_flags
1da177e4 21- acct
c114728a 22- callhome [ S390 only ]
760df93e 23- auto_msgmni
1da177e4
LT
24- core_pattern
25- core_uses_pid
26- ctrl-alt-del
27- dentry-state
28- domainname
29- hostname
30- hotplug
31- java-appletviewer [ binfmt_java, obsolete ]
32- java-interpreter [ binfmt_java, obsolete ]
0741f4d2 33- kstack_depth_to_print [ X86 only ]
1da177e4 34- l2cr [ PPC only ]
ac76cff2 35- modprobe ==> Documentation/debugging-modules.txt
3d43321b 36- modules_disabled
1da177e4
LT
37- msgmax
38- msgmnb
39- msgmni
760df93e 40- nmi_watchdog
1da177e4
LT
41- osrelease
42- ostype
43- overflowgid
44- overflowuid
45- panic
46- pid_max
47- powersave-nap [ PPC only ]
760df93e 48- panic_on_unrecovered_nmi
1da177e4 49- printk
1ec7fd50 50- randomize_va_space
1da177e4
LT
51- real-root-dev ==> Documentation/initrd.txt
52- reboot-cmd [ SPARC only ]
53- rtsig-max
54- rtsig-nr
55- sem
56- sg-big-buff [ generic SCSI device (sg) ]
57- shmall
58- shmmax [ sysv ipc ]
59- shmmni
60- stop-a [ SPARC only ]
61- sysrq ==> Documentation/sysrq.txt
62- tainted
63- threads-max
760df93e 64- unknown_nmi_panic
1da177e4
LT
65- version
66
67==============================================================
68
c255d844
PM
69acpi_video_flags:
70
71flags
72
73See Doc*/kernel/power/video.txt, it allows mode of video boot to be
74set during run time.
75
76==============================================================
77
1da177e4
LT
78acct:
79
80highwater lowwater frequency
81
82If BSD-style process accounting is enabled these values control
83its behaviour. If free space on filesystem where the log lives
84goes below <lowwater>% accounting suspends. If free space gets
85above <highwater>% accounting resumes. <Frequency> determines
86how often do we check the amount of free space (value is in
87seconds). Default:
884 2 30
89That is, suspend accounting if there left <= 2% free; resume it
90if we got >=4%; consider information about amount of free space
91valid for 30 seconds.
92
93==============================================================
94
c114728a
HJP
95callhome:
96
97Controls the kernel's callhome behavior in case of a kernel panic.
98
99The s390 hardware allows an operating system to send a notification
100to a service organization (callhome) in case of an operating system panic.
101
102When the value in this file is 0 (which is the default behavior)
103nothing happens in case of a kernel panic. If this value is set to "1"
104the complete kernel oops message is send to the IBM customer service
105organization in case the mainframe the Linux operating system is running
106on has a service contract with IBM.
107
108==============================================================
109
1da177e4
LT
110core_pattern:
111
112core_pattern is used to specify a core dumpfile pattern name.
cd081041 113. max length 128 characters; default value is "core"
1da177e4
LT
114. core_pattern is used as a pattern template for the output filename;
115 certain string patterns (beginning with '%') are substituted with
116 their actual values.
117. backward compatibility with core_uses_pid:
118 If core_pattern does not include "%p" (default does not)
119 and core_uses_pid is set, then .PID will be appended to
120 the filename.
121. corename format specifiers:
122 %<NUL> '%' is dropped
123 %% output one '%'
124 %p pid
125 %u uid
126 %g gid
127 %s signal number
128 %t UNIX time of dump
129 %h hostname
130 %e executable filename
131 %<OTHER> both are dropped
cd081041
MU
132. If the first character of the pattern is a '|', the kernel will treat
133 the rest of the pattern as a command to run. The core dump will be
134 written to the standard input of that program instead of to a file.
1da177e4
LT
135
136==============================================================
137
138core_uses_pid:
139
140The default coredump filename is "core". By setting
141core_uses_pid to 1, the coredump filename becomes core.PID.
142If core_pattern does not include "%p" (default does not)
143and core_uses_pid is set, then .PID will be appended to
144the filename.
145
146==============================================================
147
148ctrl-alt-del:
149
150When the value in this file is 0, ctrl-alt-del is trapped and
151sent to the init(1) program to handle a graceful restart.
152When, however, the value is > 0, Linux's reaction to a Vulcan
153Nerve Pinch (tm) will be an immediate reboot, without even
154syncing its dirty buffers.
155
156Note: when a program (like dosemu) has the keyboard in 'raw'
157mode, the ctrl-alt-del is intercepted by the program before it
158ever reaches the kernel tty layer, and it's up to the program
159to decide what to do with it.
160
161==============================================================
162
163domainname & hostname:
164
165These files can be used to set the NIS/YP domainname and the
166hostname of your box in exactly the same way as the commands
167domainname and hostname, i.e.:
168# echo "darkstar" > /proc/sys/kernel/hostname
169# echo "mydomain" > /proc/sys/kernel/domainname
170has the same effect as
171# hostname "darkstar"
172# domainname "mydomain"
173
174Note, however, that the classic darkstar.frop.org has the
175hostname "darkstar" and DNS (Internet Domain Name Server)
176domainname "frop.org", not to be confused with the NIS (Network
177Information Service) or YP (Yellow Pages) domainname. These two
178domain names are in general different. For a detailed discussion
179see the hostname(1) man page.
180
181==============================================================
182
183hotplug:
184
185Path for the hotplug policy agent.
186Default value is "/sbin/hotplug".
187
188==============================================================
189
190l2cr: (PPC only)
191
192This flag controls the L2 cache of G3 processor boards. If
1930, the cache is disabled. Enabled if nonzero.
194
195==============================================================
196
0741f4d2
CE
197kstack_depth_to_print: (X86 only)
198
199Controls the number of words to print when dumping the raw
200kernel stack.
201
202==============================================================
203
3d43321b
KC
204modules_disabled:
205
206A toggle value indicating if modules are allowed to be loaded
207in an otherwise modular kernel. This toggle defaults to off
208(0), but can be set true (1). Once true, modules can be
209neither loaded nor unloaded, and the toggle cannot be set back
210to false.
211
212==============================================================
213
1da177e4
LT
214osrelease, ostype & version:
215
216# cat osrelease
2172.1.88
218# cat ostype
219Linux
220# cat version
221#5 Wed Feb 25 21:49:24 MET 1998
222
223The files osrelease and ostype should be clear enough. Version
224needs a little more clarification however. The '#5' means that
225this is the fifth kernel built from this source base and the
226date behind it indicates the time the kernel was built.
227The only way to tune these values is to rebuild the kernel :-)
228
229==============================================================
230
231overflowgid & overflowuid:
232
233if your architecture did not always support 32-bit UIDs (i.e. arm, i386,
234m68k, sh, and sparc32), a fixed UID and GID will be returned to
235applications that use the old 16-bit UID/GID system calls, if the actual
236UID or GID would exceed 65535.
237
238These sysctls allow you to change the value of the fixed UID and GID.
239The default is 65534.
240
241==============================================================
242
243panic:
244
245The value in this file represents the number of seconds the
246kernel waits before rebooting on a panic. When you use the
247software watchdog, the recommended setting is 60.
248
249==============================================================
250
251panic_on_oops:
252
253Controls the kernel's behaviour when an oops or BUG is encountered.
254
2550: try to continue operation
256
a982ac06 2571: panic immediately. If the `panic' sysctl is also non-zero then the
8b23d04d 258 machine will be rebooted.
1da177e4
LT
259
260==============================================================
261
262pid_max:
263
beb7dd86 264PID allocation wrap value. When the kernel's next PID value
1da177e4
LT
265reaches this value, it wraps back to a minimum PID value.
266PIDs of value pid_max or larger are not allocated.
267
268==============================================================
269
270powersave-nap: (PPC only)
271
272If set, Linux-PPC will use the 'nap' mode of powersaving,
273otherwise the 'doze' mode will be used.
274
275==============================================================
276
277printk:
278
279The four values in printk denote: console_loglevel,
280default_message_loglevel, minimum_console_loglevel and
281default_console_loglevel respectively.
282
283These values influence printk() behavior when printing or
284logging error messages. See 'man 2 syslog' for more info on
285the different loglevels.
286
287- console_loglevel: messages with a higher priority than
288 this will be printed to the console
289- default_message_level: messages without an explicit priority
290 will be printed with this priority
291- minimum_console_loglevel: minimum (highest) value to which
292 console_loglevel can be set
293- default_console_loglevel: default value for console_loglevel
294
295==============================================================
296
297printk_ratelimit:
298
299Some warning messages are rate limited. printk_ratelimit specifies
300the minimum length of time between these messages (in jiffies), by
301default we allow one every 5 seconds.
302
303A value of 0 will disable rate limiting.
304
305==============================================================
306
307printk_ratelimit_burst:
308
309While long term we enforce one message per printk_ratelimit
310seconds, we do allow a burst of messages to pass through.
311printk_ratelimit_burst specifies the number of messages we can
312send before ratelimiting kicks in.
313
314==============================================================
315
1ec7fd50
JK
316randomize-va-space:
317
318This option can be used to select the type of process address
319space randomization that is used in the system, for architectures
320that support this feature.
321
b7f5ab6f
HS
3220 - Turn the process address space randomization off. This is the
323 default for architectures that do not support this feature anyways,
324 and kernels that are booted with the "norandmaps" parameter.
1ec7fd50
JK
325
3261 - Make the addresses of mmap base, stack and VDSO page randomized.
327 This, among other things, implies that shared libraries will be
b7f5ab6f
HS
328 loaded to random addresses. Also for PIE-linked binaries, the
329 location of code start is randomized. This is the default if the
330 CONFIG_COMPAT_BRK option is enabled.
1ec7fd50 331
b7f5ab6f
HS
3322 - Additionally enable heap randomization. This is the default if
333 CONFIG_COMPAT_BRK is disabled.
334
335 There are a few legacy applications out there (such as some ancient
1ec7fd50 336 versions of libc.so.5 from 1996) that assume that brk area starts
b7f5ab6f
HS
337 just after the end of the code+bss. These applications break when
338 start of the brk area is randomized. There are however no known
1ec7fd50 339 non-legacy applications that would be broken this way, so for most
b7f5ab6f
HS
340 systems it is safe to choose full randomization.
341
342 Systems with ancient and/or broken binaries should be configured
343 with CONFIG_COMPAT_BRK enabled, which excludes the heap from process
344 address space randomization.
1ec7fd50
JK
345
346==============================================================
347
1da177e4
LT
348reboot-cmd: (Sparc only)
349
350??? This seems to be a way to give an argument to the Sparc
351ROM/Flash boot loader. Maybe to tell it what to do after
352rebooting. ???
353
354==============================================================
355
356rtsig-max & rtsig-nr:
357
358The file rtsig-max can be used to tune the maximum number
359of POSIX realtime (queued) signals that can be outstanding
360in the system.
361
362rtsig-nr shows the number of RT signals currently queued.
363
364==============================================================
365
366sg-big-buff:
367
368This file shows the size of the generic SCSI (sg) buffer.
369You can't tune it just yet, but you could change it on
370compile time by editing include/scsi/sg.h and changing
371the value of SG_BIG_BUFF.
372
373There shouldn't be any reason to change this value. If
374you can come up with one, you probably know what you
375are doing anyway :)
376
377==============================================================
378
379shmmax:
380
381This value can be used to query and set the run time limit
382on the maximum shared memory segment size that can be created.
383Shared memory segments up to 1Gb are now supported in the
384kernel. This value defaults to SHMMAX.
385
386==============================================================
387
c4f3b63f
RT
388softlockup_thresh:
389
b4d19cc8
AM
390This value can be used to lower the softlockup tolerance threshold. The
391default threshold is 60 seconds. If a cpu is locked up for 60 seconds,
392the kernel complains. Valid values are 1-60 seconds. Setting this
393tunable to zero will disable the softlockup detection altogether.
c4f3b63f
RT
394
395==============================================================
396
1da177e4
LT
397tainted:
398
399Non-zero if the kernel has been tainted. Numeric values, which
400can be ORed together:
401
bb20698d
GKH
402 1 - A module with a non-GPL license has been loaded, this
403 includes modules with no license.
404 Set by modutils >= 2.4.9 and module-init-tools.
405 2 - A module was force loaded by insmod -f.
406 Set by modutils >= 2.4.9 and module-init-tools.
407 4 - Unsafe SMP processors: SMP with CPUs not designed for SMP.
408 8 - A module was forcibly unloaded from the system by rmmod -f.
409 16 - A hardware machine check error occurred on the system.
410 32 - A bad page was discovered on the system.
411 64 - The user has asked that the system be marked "tainted". This
412 could be because they are running software that directly modifies
413 the hardware, or for other reasons.
414 128 - The system has died.
415 256 - The ACPI DSDT has been overridden with one supplied by the user
416 instead of using the one provided by the hardware.
417 512 - A kernel warning has occurred.
4181024 - A module from drivers/staging was loaded.
1da177e4 419
760df93e
SF
420==============================================================
421
422auto_msgmni:
423
424Enables/Disables automatic recomputing of msgmni upon memory add/remove or
425upon ipc namespace creation/removal (see the msgmni description above).
426Echoing "1" into this file enables msgmni automatic recomputing.
427Echoing "0" turns it off.
428auto_msgmni default value is 1.
429
430==============================================================
431
432nmi_watchdog:
433
434Enables/Disables the NMI watchdog on x86 systems. When the value is non-zero
435the NMI watchdog is enabled and will continuously test all online cpus to
436determine whether or not they are still functioning properly. Currently,
437passing "nmi_watchdog=" parameter at boot time is required for this function
438to work.
439
440If LAPIC NMI watchdog method is in use (nmi_watchdog=2 kernel parameter), the
441NMI watchdog shares registers with oprofile. By disabling the NMI watchdog,
442oprofile may have more registers to utilize.
443
444==============================================================
445
446unknown_nmi_panic:
447
448The value in this file affects behavior of handling NMI. When the value is
449non-zero, unknown NMI is trapped and then panic occurs. At that time, kernel
450debugging information is displayed on console.
451
452NMI switch that most IA32 servers have fires unknown NMI up, for example.
453If a system hangs up, try pressing the NMI switch.
454
455==============================================================
456
457panic_on_unrecovered_nmi:
458
459The default Linux behaviour on an NMI of either memory or unknown is to continue
460operation. For many environments such as scientific computing it is preferable
461that the box is taken out and the error dealt with than an uncorrected
462parity/ECC error get propogated.
463
464A small number of systems do generate NMI's for bizarre random reasons such as
465power management so the default is off. That sysctl works like the existing
466panic controls already in that directory.
467
This page took 0.418472 seconds and 5 git commands to generate.