1Documentation for /proc/sys/kernel/* kernel version 2.2.10 2 (c) 1998, 1999, Rik van Riel <riel@nl.linux.org> 3 4For general info and legal blurb, please look in README. 5 6============================================================== 7 8This file contains documentation for the sysctl files in 9/proc/sys/kernel/ and is valid for Linux kernel version 2.2. 10 11The files in this directory can be used to tune and monitor 12miscellaneous and general things in the operation of the Linux 13kernel. Since some of the files _can_ be used to screw up your 14system, it is advisable to read both documentation and source 15before actually making adjustments. 16 17Currently, these files might (depending on your configuration) 18show up in /proc/sys/kernel: 19- acct 20- ctrl-alt-del 21- dentry-state 22- domainname 23- hostname 24- htab-reclaim [ PPC only ] 25- java-appletviewer [ binfmt_java, obsolete ] 26- java-interpreter [ binfmt_java, obsolete ] 27- l2cr [ PPC only ] 28- modprobe ==> Documentation/kmod.txt 29- osrelease 30- ostype 31- overflowgid 32- overflowuid 33- panic 34- powersave-nap [ PPC only ] 35- printk 36- real-root-dev ==> Documentation/initrd.txt 37- reboot-cmd [ SPARC only ] 38- rtsig-nr 39- rtsig-max 40- sg-big-buff [ generic SCSI device (sg) ] 41- shmmax [ sysv ipc ] 42- tainted 43- version 44- zero-paged [ PPC only ] 45 46============================================================== 47 48acct: 49 50highwater lowwater frequency 51 52If BSD-style process accounting is enabled these values control 53its behaviour. If free space on filesystem where the log lives 54goes below <lowwater>% accounting suspends. If free space gets 55above <highwater>% accounting resumes. <Frequency> determines 56how often do we check the amount of free space (value is in 57seconds). Default: 584 2 30 59That is, suspend accounting if there left <= 2% free; resume it 60if we got >=4%; consider information about amount of free space 61valid for 30 seconds. 62 63============================================================== 64 65ctrl-alt-del: 66 67When the value in this file is 0, ctrl-alt-del is trapped and 68sent to the init(1) program to handle a graceful restart. 69When, however, the value is > 0, Linux's reaction to a Vulcan 70Nerve Pinch (tm) will be an immediate reboot, without even 71syncing its dirty buffers. 72 73Note: when a program (like dosemu) has the keyboard in 'raw' 74mode, the ctrl-alt-del is intercepted by the program before it 75ever reaches the kernel tty layer, and it's up to the program 76to decide what to do with it. 77 78============================================================== 79 80domainname & hostname: 81 82These files can be used to set the NIS/YP domainname and the 83hostname of your box in exactly the same way as the commands 84domainname and hostname, i.e.: 85# echo "darkstar" > /proc/sys/kernel/hostname 86# echo "mydomain" > /proc/sys/kernel/domainname 87has the same effect as 88# hostname "darkstar" > /proc/sys/kernel/hostname 89# domainname "mydomain" > /proc/sys/kernel/domainname 90 91Note, however, that the classic darkstar.frop.org has the 92hostname "darkstar" and DNS (Internet Domain Name Server) 93domainname "frop.org", not to be confused with the NIS (Network 94Information Service) or YP (Yellow Pages) domainname. These two 95domain names are in general different. For a detailed discussion 96see the hostname(1) man page. 97 98============================================================== 99 100htab-reclaim: (PPC only) 101 102Setting this to a non-zero value, the PowerPC htab 103(see Documentation/powerpc/ppc_htab.txt) is pruned 104each time the system hits the idle loop. 105 106============================================================== 107 108l2cr: (PPC only) 109 110This flag controls the L2 cache of G3 processor boards. If 1110, the cache is disabled. Enabled if nonzero. 112 113============================================================== 114 115osrelease, ostype & version: 116 117# cat osrelease 1182.1.88 119# cat ostype 120Linux 121# cat version 122#5 Wed Feb 25 21:49:24 MET 1998 123 124The files osrelease and ostype should be clear enough. Version 125needs a little more clarification however. The '#5' means that 126this is the fifth kernel built from this source base and the 127date behind it indicates the time the kernel was built. 128The only way to tune these values is to rebuild the kernel :-) 129 130============================================================== 131 132overflowgid & overflowuid: 133 134if your architecture did not always support 32-bit UIDs (i.e. arm, i386, 135m68k, sh, and sparc32), a fixed UID and GID will be returned to 136applications that use the old 16-bit UID/GID system calls, if the actual 137UID or GID would exceed 65535. 138 139These sysctls allow you to change the value of the fixed UID and GID. 140The default is 65534. 141 142============================================================== 143 144panic: 145 146The value in this file represents the number of seconds the 147kernel waits before rebooting on a panic. When you use the 148software watchdog, the recommended setting is 60. 149 150============================================================== 151 152powersave-nap: (PPC only) 153 154If set, Linux-PPC will use the 'nap' mode of powersaving, 155otherwise the 'doze' mode will be used. 156 157============================================================== 158 159printk: 160 161The four values in printk denote: console_loglevel, 162default_message_loglevel, minimum_console_level and 163default_console_loglevel respectively. 164 165These values influence printk() behavior when printing or 166logging error messages. See 'man 2 syslog' for more info on 167the different loglevels. 168 169- console_loglevel: messages with a higher priority than 170 this will be printed to the console 171- default_message_level: messages without an explicit priority 172 will be printed with this priority 173- minimum_console_loglevel: minimum (highest) value to which 174 console_loglevel can be set 175- default_console_loglevel: default value for console_loglevel 176 177Note: a quick look in linux/kernel/printk.c will reveal that 178these variables aren't put inside a structure, so their order 179in-core isn't formally guaranteed and garbage values _might_ 180occur when the compiler changes. (???) 181 182============================================================== 183 184reboot-cmd: (Sparc only) 185 186??? This seems to be a way to give an argument to the Sparc 187ROM/Flash boot loader. Maybe to tell it what to do after 188rebooting. ??? 189 190============================================================== 191 192rtsig-max & rtsig-nr: 193 194The file rtsig-max can be used to tune the maximum number 195of POSIX realtime (queued) signals that can be outstanding 196in the system. 197 198Rtsig-nr shows the number of RT signals currently queued. 199 200============================================================== 201 202sg-big-buff: 203 204This file shows the size of the generic SCSI (sg) buffer. 205You can't tune it just yet, but you could change it on 206compile time by editing include/scsi/sg.h and changing 207the value of SG_BIG_BUFF. 208 209There shouldn't be any reason to change this value. If 210you can come up with one, you probably know what you 211are doing anyway :) 212 213============================================================== 214 215shmmax: 216 217This value can be used to query and set the run time limit 218on the maximum shared memory segment size that can be created. 219Shared memory segments up to 1Gb are now supported in the 220kernel. This value defaults to SHMMAX. 221 222============================================================== 223 224tainted: 225 226Non-zero if the kernel has been tainted. Numeric values, which 227can be ORed together: 228 229 1 - A module with a non-GPL license has been loaded, this 230 includes modules with no license. 231 Set by modutils >= 2.4.9. 232 2 - A module was force loaded by insmod -f. 233 Set by modutils >= 2.4.9. 234 235============================================================== 236 237zero-paged: (PPC only) 238 239When enabled (non-zero), Linux-PPC will pre-zero pages in 240the idle loop, possibly speeding up get_free_pages. Since 241this only affects what the idle loop is doing, you should 242enable this and see if anything changes. 243