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