kernel.txt 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326
  1. Documentation for /proc/sys/kernel/* kernel version 2.2.10
  2. (c) 1998, 1999, Rik van Riel <riel@nl.linux.org>
  3. For general info and legal blurb, please look in README.
  4. ==============================================================
  5. This file contains documentation for the sysctl files in
  6. /proc/sys/kernel/ and is valid for Linux kernel version 2.2.
  7. The files in this directory can be used to tune and monitor
  8. miscellaneous and general things in the operation of the Linux
  9. kernel. Since some of the files _can_ be used to screw up your
  10. system, it is advisable to read both documentation and source
  11. before actually making adjustments.
  12. Currently, these files might (depending on your configuration)
  13. show up in /proc/sys/kernel:
  14. - acpi_video_flags
  15. - acct
  16. - core_pattern
  17. - core_uses_pid
  18. - ctrl-alt-del
  19. - dentry-state
  20. - domainname
  21. - hostname
  22. - hotplug
  23. - java-appletviewer [ binfmt_java, obsolete ]
  24. - java-interpreter [ binfmt_java, obsolete ]
  25. - l2cr [ PPC only ]
  26. - modprobe ==> Documentation/kmod.txt
  27. - msgmax
  28. - msgmnb
  29. - msgmni
  30. - osrelease
  31. - ostype
  32. - overflowgid
  33. - overflowuid
  34. - panic
  35. - pid_max
  36. - powersave-nap [ PPC only ]
  37. - printk
  38. - real-root-dev ==> Documentation/initrd.txt
  39. - reboot-cmd [ SPARC only ]
  40. - rtsig-max
  41. - rtsig-nr
  42. - sem
  43. - sg-big-buff [ generic SCSI device (sg) ]
  44. - shmall
  45. - shmmax [ sysv ipc ]
  46. - shmmni
  47. - stop-a [ SPARC only ]
  48. - sysrq ==> Documentation/sysrq.txt
  49. - tainted
  50. - threads-max
  51. - version
  52. ==============================================================
  53. acpi_video_flags:
  54. flags
  55. See Doc*/kernel/power/video.txt, it allows mode of video boot to be
  56. set during run time.
  57. ==============================================================
  58. acct:
  59. highwater lowwater frequency
  60. If BSD-style process accounting is enabled these values control
  61. its behaviour. If free space on filesystem where the log lives
  62. goes below <lowwater>% accounting suspends. If free space gets
  63. above <highwater>% accounting resumes. <Frequency> determines
  64. how often do we check the amount of free space (value is in
  65. seconds). Default:
  66. 4 2 30
  67. That is, suspend accounting if there left <= 2% free; resume it
  68. if we got >=4%; consider information about amount of free space
  69. valid for 30 seconds.
  70. ==============================================================
  71. core_pattern:
  72. core_pattern is used to specify a core dumpfile pattern name.
  73. . max length 128 characters; default value is "core"
  74. . core_pattern is used as a pattern template for the output filename;
  75. certain string patterns (beginning with '%') are substituted with
  76. their actual values.
  77. . backward compatibility with core_uses_pid:
  78. If core_pattern does not include "%p" (default does not)
  79. and core_uses_pid is set, then .PID will be appended to
  80. the filename.
  81. . corename format specifiers:
  82. %<NUL> '%' is dropped
  83. %% output one '%'
  84. %p pid
  85. %u uid
  86. %g gid
  87. %s signal number
  88. %t UNIX time of dump
  89. %h hostname
  90. %e executable filename
  91. %<OTHER> both are dropped
  92. . If the first character of the pattern is a '|', the kernel will treat
  93. the rest of the pattern as a command to run. The core dump will be
  94. written to the standard input of that program instead of to a file.
  95. ==============================================================
  96. core_uses_pid:
  97. The default coredump filename is "core". By setting
  98. core_uses_pid to 1, the coredump filename becomes core.PID.
  99. If core_pattern does not include "%p" (default does not)
  100. and core_uses_pid is set, then .PID will be appended to
  101. the filename.
  102. ==============================================================
  103. ctrl-alt-del:
  104. When the value in this file is 0, ctrl-alt-del is trapped and
  105. sent to the init(1) program to handle a graceful restart.
  106. When, however, the value is > 0, Linux's reaction to a Vulcan
  107. Nerve Pinch (tm) will be an immediate reboot, without even
  108. syncing its dirty buffers.
  109. Note: when a program (like dosemu) has the keyboard in 'raw'
  110. mode, the ctrl-alt-del is intercepted by the program before it
  111. ever reaches the kernel tty layer, and it's up to the program
  112. to decide what to do with it.
  113. ==============================================================
  114. domainname & hostname:
  115. These files can be used to set the NIS/YP domainname and the
  116. hostname of your box in exactly the same way as the commands
  117. domainname and hostname, i.e.:
  118. # echo "darkstar" > /proc/sys/kernel/hostname
  119. # echo "mydomain" > /proc/sys/kernel/domainname
  120. has the same effect as
  121. # hostname "darkstar"
  122. # domainname "mydomain"
  123. Note, however, that the classic darkstar.frop.org has the
  124. hostname "darkstar" and DNS (Internet Domain Name Server)
  125. domainname "frop.org", not to be confused with the NIS (Network
  126. Information Service) or YP (Yellow Pages) domainname. These two
  127. domain names are in general different. For a detailed discussion
  128. see the hostname(1) man page.
  129. ==============================================================
  130. hotplug:
  131. Path for the hotplug policy agent.
  132. Default value is "/sbin/hotplug".
  133. ==============================================================
  134. l2cr: (PPC only)
  135. This flag controls the L2 cache of G3 processor boards. If
  136. 0, the cache is disabled. Enabled if nonzero.
  137. ==============================================================
  138. osrelease, ostype & version:
  139. # cat osrelease
  140. 2.1.88
  141. # cat ostype
  142. Linux
  143. # cat version
  144. #5 Wed Feb 25 21:49:24 MET 1998
  145. The files osrelease and ostype should be clear enough. Version
  146. needs a little more clarification however. The '#5' means that
  147. this is the fifth kernel built from this source base and the
  148. date behind it indicates the time the kernel was built.
  149. The only way to tune these values is to rebuild the kernel :-)
  150. ==============================================================
  151. overflowgid & overflowuid:
  152. if your architecture did not always support 32-bit UIDs (i.e. arm, i386,
  153. m68k, sh, and sparc32), a fixed UID and GID will be returned to
  154. applications that use the old 16-bit UID/GID system calls, if the actual
  155. UID or GID would exceed 65535.
  156. These sysctls allow you to change the value of the fixed UID and GID.
  157. The default is 65534.
  158. ==============================================================
  159. panic:
  160. The value in this file represents the number of seconds the
  161. kernel waits before rebooting on a panic. When you use the
  162. software watchdog, the recommended setting is 60.
  163. ==============================================================
  164. panic_on_oops:
  165. Controls the kernel's behaviour when an oops or BUG is encountered.
  166. 0: try to continue operation
  167. 1: panic immediatly. If the `panic' sysctl is also non-zero then the
  168. machine will be rebooted.
  169. ==============================================================
  170. pid_max:
  171. PID allocation wrap value. When the kenrel's next PID value
  172. reaches this value, it wraps back to a minimum PID value.
  173. PIDs of value pid_max or larger are not allocated.
  174. ==============================================================
  175. powersave-nap: (PPC only)
  176. If set, Linux-PPC will use the 'nap' mode of powersaving,
  177. otherwise the 'doze' mode will be used.
  178. ==============================================================
  179. printk:
  180. The four values in printk denote: console_loglevel,
  181. default_message_loglevel, minimum_console_loglevel and
  182. default_console_loglevel respectively.
  183. These values influence printk() behavior when printing or
  184. logging error messages. See 'man 2 syslog' for more info on
  185. the different loglevels.
  186. - console_loglevel: messages with a higher priority than
  187. this will be printed to the console
  188. - default_message_level: messages without an explicit priority
  189. will be printed with this priority
  190. - minimum_console_loglevel: minimum (highest) value to which
  191. console_loglevel can be set
  192. - default_console_loglevel: default value for console_loglevel
  193. ==============================================================
  194. printk_ratelimit:
  195. Some warning messages are rate limited. printk_ratelimit specifies
  196. the minimum length of time between these messages (in jiffies), by
  197. default we allow one every 5 seconds.
  198. A value of 0 will disable rate limiting.
  199. ==============================================================
  200. printk_ratelimit_burst:
  201. While long term we enforce one message per printk_ratelimit
  202. seconds, we do allow a burst of messages to pass through.
  203. printk_ratelimit_burst specifies the number of messages we can
  204. send before ratelimiting kicks in.
  205. ==============================================================
  206. reboot-cmd: (Sparc only)
  207. ??? This seems to be a way to give an argument to the Sparc
  208. ROM/Flash boot loader. Maybe to tell it what to do after
  209. rebooting. ???
  210. ==============================================================
  211. rtsig-max & rtsig-nr:
  212. The file rtsig-max can be used to tune the maximum number
  213. of POSIX realtime (queued) signals that can be outstanding
  214. in the system.
  215. rtsig-nr shows the number of RT signals currently queued.
  216. ==============================================================
  217. sg-big-buff:
  218. This file shows the size of the generic SCSI (sg) buffer.
  219. You can't tune it just yet, but you could change it on
  220. compile time by editing include/scsi/sg.h and changing
  221. the value of SG_BIG_BUFF.
  222. There shouldn't be any reason to change this value. If
  223. you can come up with one, you probably know what you
  224. are doing anyway :)
  225. ==============================================================
  226. shmmax:
  227. This value can be used to query and set the run time limit
  228. on the maximum shared memory segment size that can be created.
  229. Shared memory segments up to 1Gb are now supported in the
  230. kernel. This value defaults to SHMMAX.
  231. ==============================================================
  232. tainted:
  233. Non-zero if the kernel has been tainted. Numeric values, which
  234. can be ORed together:
  235. 1 - A module with a non-GPL license has been loaded, this
  236. includes modules with no license.
  237. Set by modutils >= 2.4.9 and module-init-tools.
  238. 2 - A module was force loaded by insmod -f.
  239. Set by modutils >= 2.4.9 and module-init-tools.
  240. 4 - Unsafe SMP processors: SMP with CPUs not designed for SMP.