kernel.txt 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323
  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 64 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. ==============================================================
  93. core_uses_pid:
  94. The default coredump filename is "core". By setting
  95. core_uses_pid to 1, the coredump filename becomes core.PID.
  96. If core_pattern does not include "%p" (default does not)
  97. and core_uses_pid is set, then .PID will be appended to
  98. the filename.
  99. ==============================================================
  100. ctrl-alt-del:
  101. When the value in this file is 0, ctrl-alt-del is trapped and
  102. sent to the init(1) program to handle a graceful restart.
  103. When, however, the value is > 0, Linux's reaction to a Vulcan
  104. Nerve Pinch (tm) will be an immediate reboot, without even
  105. syncing its dirty buffers.
  106. Note: when a program (like dosemu) has the keyboard in 'raw'
  107. mode, the ctrl-alt-del is intercepted by the program before it
  108. ever reaches the kernel tty layer, and it's up to the program
  109. to decide what to do with it.
  110. ==============================================================
  111. domainname & hostname:
  112. These files can be used to set the NIS/YP domainname and the
  113. hostname of your box in exactly the same way as the commands
  114. domainname and hostname, i.e.:
  115. # echo "darkstar" > /proc/sys/kernel/hostname
  116. # echo "mydomain" > /proc/sys/kernel/domainname
  117. has the same effect as
  118. # hostname "darkstar"
  119. # domainname "mydomain"
  120. Note, however, that the classic darkstar.frop.org has the
  121. hostname "darkstar" and DNS (Internet Domain Name Server)
  122. domainname "frop.org", not to be confused with the NIS (Network
  123. Information Service) or YP (Yellow Pages) domainname. These two
  124. domain names are in general different. For a detailed discussion
  125. see the hostname(1) man page.
  126. ==============================================================
  127. hotplug:
  128. Path for the hotplug policy agent.
  129. Default value is "/sbin/hotplug".
  130. ==============================================================
  131. l2cr: (PPC only)
  132. This flag controls the L2 cache of G3 processor boards. If
  133. 0, the cache is disabled. Enabled if nonzero.
  134. ==============================================================
  135. osrelease, ostype & version:
  136. # cat osrelease
  137. 2.1.88
  138. # cat ostype
  139. Linux
  140. # cat version
  141. #5 Wed Feb 25 21:49:24 MET 1998
  142. The files osrelease and ostype should be clear enough. Version
  143. needs a little more clarification however. The '#5' means that
  144. this is the fifth kernel built from this source base and the
  145. date behind it indicates the time the kernel was built.
  146. The only way to tune these values is to rebuild the kernel :-)
  147. ==============================================================
  148. overflowgid & overflowuid:
  149. if your architecture did not always support 32-bit UIDs (i.e. arm, i386,
  150. m68k, sh, and sparc32), a fixed UID and GID will be returned to
  151. applications that use the old 16-bit UID/GID system calls, if the actual
  152. UID or GID would exceed 65535.
  153. These sysctls allow you to change the value of the fixed UID and GID.
  154. The default is 65534.
  155. ==============================================================
  156. panic:
  157. The value in this file represents the number of seconds the
  158. kernel waits before rebooting on a panic. When you use the
  159. software watchdog, the recommended setting is 60.
  160. ==============================================================
  161. panic_on_oops:
  162. Controls the kernel's behaviour when an oops or BUG is encountered.
  163. 0: try to continue operation
  164. 1: panic immediatly. If the `panic' sysctl is also non-zero then the
  165. machine will be rebooted.
  166. ==============================================================
  167. pid_max:
  168. PID allocation wrap value. When the kenrel's next PID value
  169. reaches this value, it wraps back to a minimum PID value.
  170. PIDs of value pid_max or larger are not allocated.
  171. ==============================================================
  172. powersave-nap: (PPC only)
  173. If set, Linux-PPC will use the 'nap' mode of powersaving,
  174. otherwise the 'doze' mode will be used.
  175. ==============================================================
  176. printk:
  177. The four values in printk denote: console_loglevel,
  178. default_message_loglevel, minimum_console_loglevel and
  179. default_console_loglevel respectively.
  180. These values influence printk() behavior when printing or
  181. logging error messages. See 'man 2 syslog' for more info on
  182. the different loglevels.
  183. - console_loglevel: messages with a higher priority than
  184. this will be printed to the console
  185. - default_message_level: messages without an explicit priority
  186. will be printed with this priority
  187. - minimum_console_loglevel: minimum (highest) value to which
  188. console_loglevel can be set
  189. - default_console_loglevel: default value for console_loglevel
  190. ==============================================================
  191. printk_ratelimit:
  192. Some warning messages are rate limited. printk_ratelimit specifies
  193. the minimum length of time between these messages (in jiffies), by
  194. default we allow one every 5 seconds.
  195. A value of 0 will disable rate limiting.
  196. ==============================================================
  197. printk_ratelimit_burst:
  198. While long term we enforce one message per printk_ratelimit
  199. seconds, we do allow a burst of messages to pass through.
  200. printk_ratelimit_burst specifies the number of messages we can
  201. send before ratelimiting kicks in.
  202. ==============================================================
  203. reboot-cmd: (Sparc only)
  204. ??? This seems to be a way to give an argument to the Sparc
  205. ROM/Flash boot loader. Maybe to tell it what to do after
  206. rebooting. ???
  207. ==============================================================
  208. rtsig-max & rtsig-nr:
  209. The file rtsig-max can be used to tune the maximum number
  210. of POSIX realtime (queued) signals that can be outstanding
  211. in the system.
  212. rtsig-nr shows the number of RT signals currently queued.
  213. ==============================================================
  214. sg-big-buff:
  215. This file shows the size of the generic SCSI (sg) buffer.
  216. You can't tune it just yet, but you could change it on
  217. compile time by editing include/scsi/sg.h and changing
  218. the value of SG_BIG_BUFF.
  219. There shouldn't be any reason to change this value. If
  220. you can come up with one, you probably know what you
  221. are doing anyway :)
  222. ==============================================================
  223. shmmax:
  224. This value can be used to query and set the run time limit
  225. on the maximum shared memory segment size that can be created.
  226. Shared memory segments up to 1Gb are now supported in the
  227. kernel. This value defaults to SHMMAX.
  228. ==============================================================
  229. tainted:
  230. Non-zero if the kernel has been tainted. Numeric values, which
  231. can be ORed together:
  232. 1 - A module with a non-GPL license has been loaded, this
  233. includes modules with no license.
  234. Set by modutils >= 2.4.9 and module-init-tools.
  235. 2 - A module was force loaded by insmod -f.
  236. Set by modutils >= 2.4.9 and module-init-tools.
  237. 4 - Unsafe SMP processors: SMP with CPUs not designed for SMP.