Jonathan Corbet | 7358bb2 | 2016-10-26 16:14:52 -0600 | [diff] [blame] | 1 | The kernel's command-line parameters |
| 2 | ==================================== |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 3 | |
Rusty Russell | 5888bcc | 2014-05-14 10:33:45 +0930 | [diff] [blame] | 4 | The following is a consolidated list of the kernel parameters as |
| 5 | implemented by the __setup(), core_param() and module_param() macros |
| 6 | and sorted into English Dictionary order (defined as ignoring all |
| 7 | punctuation and sorting digits before letters in a case insensitive |
| 8 | manner), and with descriptions where known. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 9 | |
Rusty Russell | 5888bcc | 2014-05-14 10:33:45 +0930 | [diff] [blame] | 10 | The kernel parses parameters from the kernel command line up to "--"; |
| 11 | if it doesn't recognize a parameter and it doesn't contain a '.', the |
| 12 | parameter gets passed to init: parameters with '=' go into init's |
| 13 | environment, others are passed as command line arguments to init. |
| 14 | Everything after "--" is passed as an argument to init. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 15 | |
Rusty Russell | 5888bcc | 2014-05-14 10:33:45 +0930 | [diff] [blame] | 16 | Module parameters can be specified in two ways: via the kernel command |
Mauro Carvalho Chehab | 684adc0 | 2016-09-21 09:48:55 -0300 | [diff] [blame] | 17 | line with a module name prefix, or via modprobe, e.g.:: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 18 | |
Rusty Russell | 5888bcc | 2014-05-14 10:33:45 +0930 | [diff] [blame] | 19 | (kernel command line) usbcore.blinkenlights=1 |
| 20 | (modprobe command line) modprobe usbcore blinkenlights=1 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | |
Rusty Russell | 5888bcc | 2014-05-14 10:33:45 +0930 | [diff] [blame] | 22 | Parameters for modules which are built into the kernel need to be |
| 23 | specified on the kernel command line. modprobe looks through the |
| 24 | kernel command line (/proc/cmdline) and collects module parameters |
| 25 | when it loads a module, so the kernel command line can be used for |
| 26 | loadable modules too. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | |
Mauro Carvalho Chehab | 684adc0 | 2016-09-21 09:48:55 -0300 | [diff] [blame] | 28 | Hyphens (dashes) and underscores are equivalent in parameter names, so:: |
| 29 | |
Randy Dunlap | ca1eda2 | 2009-05-06 16:02:58 -0700 | [diff] [blame] | 30 | log_buf_len=1M print-fatal-signals=1 |
Mauro Carvalho Chehab | 684adc0 | 2016-09-21 09:48:55 -0300 | [diff] [blame] | 31 | |
| 32 | can also be entered as:: |
| 33 | |
Randy Dunlap | ca1eda2 | 2009-05-06 16:02:58 -0700 | [diff] [blame] | 34 | log-buf-len=1M print_fatal_signals=1 |
| 35 | |
Mauro Carvalho Chehab | 684adc0 | 2016-09-21 09:48:55 -0300 | [diff] [blame] | 36 | Double-quotes can be used to protect spaces in values, e.g.:: |
| 37 | |
Rusty Russell | 5888bcc | 2014-05-14 10:33:45 +0930 | [diff] [blame] | 38 | param="spaces in here" |
Randy Dunlap | ca1eda2 | 2009-05-06 16:02:58 -0700 | [diff] [blame] | 39 | |
Noam Camus | 2d13e6c | 2016-10-11 13:51:35 -0700 | [diff] [blame] | 40 | cpu lists: |
| 41 | ---------- |
| 42 | |
| 43 | Some kernel parameters take a list of CPUs as a value, e.g. isolcpus, |
| 44 | nohz_full, irqaffinity, rcu_nocbs. The format of this list is: |
| 45 | |
| 46 | <cpu number>,...,<cpu number> |
| 47 | |
| 48 | or |
| 49 | |
| 50 | <cpu number>-<cpu number> |
| 51 | (must be a positive range in ascending order) |
| 52 | |
| 53 | or a mixture |
| 54 | |
| 55 | <cpu number>,...,<cpu number>-<cpu number> |
| 56 | |
| 57 | Note that for the special case of a range one can split the range into equal |
| 58 | sized groups and for each group use some amount from the beginning of that |
| 59 | group: |
| 60 | |
| 61 | <cpu number>-cpu number>:<used size>/<group size> |
| 62 | |
| 63 | For example one can add to the command line following parameter: |
| 64 | |
| 65 | isolcpus=1,2,10-20,100-2000:2/25 |
| 66 | |
| 67 | where the final item represents CPUs 100,101,125,126,150,151,... |
| 68 | |
| 69 | |
| 70 | |
Stefan Richter | a901ebb | 2006-04-01 01:43:18 +0200 | [diff] [blame] | 71 | This document may not be entirely up to date and comprehensive. The command |
| 72 | "modinfo -p ${modulename}" shows a current list of all parameters of a loadable |
| 73 | module. Loadable modules, after being loaded into the running kernel, also |
| 74 | reveal their parameters in /sys/module/${modulename}/parameters/. Some of these |
| 75 | parameters may be changed at runtime by the command |
Mauro Carvalho Chehab | 684adc0 | 2016-09-21 09:48:55 -0300 | [diff] [blame] | 76 | ``echo -n ${value} > /sys/module/${modulename}/parameters/${parm}``. |
Stefan Richter | a901ebb | 2006-04-01 01:43:18 +0200 | [diff] [blame] | 77 | |
Stefan Richter | 6585fa8 | 2006-04-01 01:44:30 +0200 | [diff] [blame] | 78 | The parameters listed below are only valid if certain kernel build options were |
| 79 | enabled and if respective hardware is present. The text in square brackets at |
| 80 | the beginning of each description states the restrictions within which a |
Mauro Carvalho Chehab | 684adc0 | 2016-09-21 09:48:55 -0300 | [diff] [blame] | 81 | parameter is applicable:: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 82 | |
| 83 | ACPI ACPI support is enabled. |
Chuck Ebbert | c99c108 | 2007-07-27 10:46:20 +1000 | [diff] [blame] | 84 | AGP AGP (Accelerated Graphics Port) is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 85 | ALSA ALSA sound support is enabled. |
| 86 | APIC APIC support is enabled. |
| 87 | APM Advanced Power Management support is enabled. |
Randy Dunlap | 1629024 | 2011-08-13 12:34:52 -0700 | [diff] [blame] | 88 | ARM ARM architecture is enabled. |
Haavard Skinnemoen | e7ba176 | 2007-10-10 14:58:29 +0200 | [diff] [blame] | 89 | AVR32 AVR32 architecture is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 90 | AX25 Appropriate AX.25 support is enabled. |
Robin Getz | 0ae5364 | 2007-10-09 17:24:49 +0800 | [diff] [blame] | 91 | BLACKFIN Blackfin architecture is enabled. |
Olof Johansson | 1e43525 | 2013-04-27 14:10:18 -0700 | [diff] [blame] | 92 | CLK Common clock infrastructure is enabled. |
Robert Tivy | 5c71d61 | 2013-03-28 18:41:46 -0700 | [diff] [blame] | 93 | CMA Contiguous Memory Area support is enabled. |
Alan Cox | 9cfe268 | 2011-01-25 14:18:38 +0000 | [diff] [blame] | 94 | DRM Direct Rendering Management support is enabled. |
| 95 | DYNAMIC_DEBUG Build in debug messages and enable them at runtime |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 96 | EDD BIOS Enhanced Disk Drive Services (EDD) is enabled |
| 97 | EFI EFI Partitioning (GPT) is enabled |
| 98 | EIDE EIDE/ATAPI support is enabled. |
Mimi Zohar | 7102ebc | 2011-05-12 18:33:20 -0400 | [diff] [blame] | 99 | EVM Extended Verification Module |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 100 | FB The frame buffer device is enabled. |
Randy Dunlap | 1629024 | 2011-08-13 12:34:52 -0700 | [diff] [blame] | 101 | FTRACE Function tracing enabled. |
Peter Oberparleiter | 2521f2c | 2009-06-17 16:28:08 -0700 | [diff] [blame] | 102 | GCOV GCOV profiling is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 103 | HW Appropriate hardware is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 104 | IA-64 IA-64 architecture is enabled. |
Mimi Zohar | 6146f0d | 2009-02-04 09:06:57 -0500 | [diff] [blame] | 105 | IMA Integrity measurement architecture is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 106 | IOSCHED More than one I/O scheduler is enabled. |
Adrian Bunk | 41e2e8b | 2005-07-12 13:58:33 -0700 | [diff] [blame] | 107 | IP_PNP IP DHCP, BOOTP, or RARP is enabled. |
Brian Haley | b0f83b2 | 2010-02-04 13:36:50 -0800 | [diff] [blame] | 108 | IPV6 IPv6 support is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 109 | ISAPNP ISA PnP code is enabled. |
| 110 | ISDN Appropriate ISDN support is enabled. |
| 111 | JOY Appropriate joystick support is enabled. |
Jason Wessel | 84c08fd | 2010-05-20 21:04:24 -0500 | [diff] [blame] | 112 | KGDB Kernel debugger support is enabled. |
Andre Przywara | fef07aa | 2009-07-10 14:20:35 +0200 | [diff] [blame] | 113 | KVM Kernel Virtual Machine support is enabled. |
Kristen Carlson Accardi | 11ef697 | 2006-09-28 11:29:01 -0700 | [diff] [blame] | 114 | LIBATA Libata driver is enabled |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 115 | LP Printer support is enabled. |
| 116 | LOOP Loopback device support is enabled. |
| 117 | M68k M68k architecture is enabled. |
| 118 | These options have more detailed description inside of |
| 119 | Documentation/m68k/kernel-options.txt. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 120 | MDA MDA console support is enabled. |
Randy Dunlap | 1629024 | 2011-08-13 12:34:52 -0700 | [diff] [blame] | 121 | MIPS MIPS architecture is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 122 | MOUSE Appropriate mouse support is enabled. |
Matthew Wilcox | 309e57d | 2006-03-05 22:33:34 -0700 | [diff] [blame] | 123 | MSI Message Signaled Interrupts (PCI). |
Randy Dunlap | c8facbb | 2007-07-31 00:37:40 -0700 | [diff] [blame] | 124 | MTD MTD (Memory Technology Device) support is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 125 | NET Appropriate network support is enabled. |
| 126 | NUMA NUMA support is enabled. |
| 127 | NFS Appropriate NFS support is enabled. |
| 128 | OSS OSS sound support is enabled. |
Randy Dunlap | c8facbb | 2007-07-31 00:37:40 -0700 | [diff] [blame] | 129 | PV_OPS A paravirtualized kernel is enabled. |
| 130 | PARIDE The ParIDE (parallel port IDE) subsystem is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 131 | PARISC The PA-RISC architecture is enabled. |
| 132 | PCI PCI bus support is enabled. |
Randy Dunlap | 7f78576 | 2007-10-05 13:17:58 -0700 | [diff] [blame] | 133 | PCIE PCI Express support is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 134 | PCMCIA The PCMCIA subsystem is enabled. |
| 135 | PNP Plug & Play support is enabled. |
| 136 | PPC PowerPC architecture is enabled. |
| 137 | PPT Parallel port support is enabled. |
| 138 | PS2 Appropriate PS/2 support is enabled. |
| 139 | RAM RAM disk support is enabled. |
| 140 | S390 S390 architecture is enabled. |
| 141 | SCSI Appropriate SCSI support is enabled. |
Randy Dunlap | 163475f | 2010-08-14 12:36:14 -0700 | [diff] [blame] | 142 | A lot of drivers have their options described inside |
| 143 | the Documentation/scsi/ sub-directory. |
James Morris | 20510f2 | 2007-10-16 23:31:32 -0700 | [diff] [blame] | 144 | SECURITY Different security models are enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 145 | SELINUX SELinux support is enabled. |
John Johansen | c1c124e | 2010-07-29 14:48:09 -0700 | [diff] [blame] | 146 | APPARMOR AppArmor support is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 147 | SERIAL Serial support is enabled. |
Paul Mundt | e523d93 | 2007-02-28 18:30:01 +0900 | [diff] [blame] | 148 | SH SuperH architecture is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 149 | SMP The kernel is an SMP kernel. |
| 150 | SPARC Sparc architecture is enabled. |
David Brownell | 77437fd | 2008-07-23 21:28:33 -0700 | [diff] [blame] | 151 | SWSUSP Software suspend (hibernation) is enabled. |
| 152 | SUSPEND System suspend states are enabled. |
Rajiv Andrade | 225a9be | 2010-03-25 00:55:32 -0300 | [diff] [blame] | 153 | TPM TPM drivers are enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 154 | TS Appropriate touchscreen support is enabled. |
Alan Stern | d4f373e | 2008-11-10 14:07:45 -0500 | [diff] [blame] | 155 | UMS USB Mass Storage support is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 156 | USB USB support is enabled. |
| 157 | USBHID USB Human Interface Device support is enabled. |
| 158 | V4L Video For Linux support is enabled. |
Pawel Moll | 81a054c | 2012-05-09 18:30:16 +0100 | [diff] [blame] | 159 | VMMIO Driver for memory mapped virtio devices is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 160 | VGA The VGA console has been enabled. |
| 161 | VT Virtual terminal support is enabled. |
| 162 | WDT Watchdog support is enabled. |
| 163 | XT IBM PC/XT MFM hard disk support is enabled. |
Alan Cox | cd4f0ef | 2007-07-31 00:37:59 -0700 | [diff] [blame] | 164 | X86-32 X86-32, aka i386 architecture is enabled. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 165 | X86-64 X86-64 architecture is enabled. |
| 166 | More X86-64 boot options can be found in |
Uwe Hermann | 71cced6 | 2008-10-20 09:32:21 -0700 | [diff] [blame] | 167 | Documentation/x86/x86_64/boot-options.txt . |
Randy Dunlap | 1629024 | 2011-08-13 12:34:52 -0700 | [diff] [blame] | 168 | X86 Either 32-bit or 64-bit x86 (same as X86-32+X86-64) |
Alex Thorlton | 1c532e0 | 2016-03-31 14:18:29 -0500 | [diff] [blame] | 169 | X86_UV SGI UV support is enabled. |
Stefano Stabellini | c1c5413 | 2010-05-14 12:44:30 +0100 | [diff] [blame] | 170 | XEN Xen support is enabled |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 171 | |
Mauro Carvalho Chehab | 684adc0 | 2016-09-21 09:48:55 -0300 | [diff] [blame] | 172 | In addition, the following text indicates that the option:: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 173 | |
| 174 | BUGS= Relates to possible processor bugs on the said processor. |
| 175 | KNL Is a kernel start-up parameter. |
| 176 | BOOT Is a boot loader parameter. |
| 177 | |
| 178 | Parameters denoted with BOOT are actually interpreted by the boot |
| 179 | loader, and have no meaning to the kernel directly. |
| 180 | Do not modify the syntax of boot loader parameters without extreme |
Kyle McMartin | 954a8b8 | 2009-02-19 16:48:14 -0500 | [diff] [blame] | 181 | need or coordination with <Documentation/x86/boot.txt>. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 182 | |
Karsten Weiss | 5558870 | 2007-02-13 13:26:21 +0100 | [diff] [blame] | 183 | There are also arch-specific kernel-parameters not documented here. |
Uwe Hermann | 71cced6 | 2008-10-20 09:32:21 -0700 | [diff] [blame] | 184 | See for example <Documentation/x86/x86_64/boot-options.txt>. |
Karsten Weiss | 5558870 | 2007-02-13 13:26:21 +0100 | [diff] [blame] | 185 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 186 | Note that ALL kernel parameters listed below are CASE SENSITIVE, and that |
| 187 | a trailing = on the name of any parameter states that that parameter will |
| 188 | be entered as an environment variable, whereas its absence indicates that |
| 189 | it will appear as a kernel argument readable via /proc/cmdline by programs |
| 190 | running once the system is up. |
| 191 | |
jens m. noedler | 9c4751f | 2006-09-29 02:00:27 -0700 | [diff] [blame] | 192 | The number of kernel parameters is not limited, but the length of the |
| 193 | complete command line (parameters including spaces etc.) is limited to |
| 194 | a fixed number of characters. This limit depends on the architecture |
| 195 | and is between 256 and 4096 characters. It is defined in the file |
| 196 | ./include/asm/setup.h as COMMAND_LINE_SIZE. |
| 197 | |
Ahmed S. Darwish | 7a19a23 | 2011-02-20 20:08:35 -0800 | [diff] [blame] | 198 | Finally, the [KMG] suffix is commonly described after a number of kernel |
| 199 | parameter values. These 'K', 'M', and 'G' letters represent the _binary_ |
| 200 | multipliers 'Kilo', 'Mega', and 'Giga', equalling 2^10, 2^20, and 2^30 |
Jani Nikula | e52347b | 2016-11-03 12:10:10 +0200 | [diff] [blame] | 201 | bytes respectively. Such letter suffixes can also be entirely omitted: |
Ahmed S. Darwish | 7a19a23 | 2011-02-20 20:08:35 -0800 | [diff] [blame] | 202 | |
Jani Nikula | e52347b | 2016-11-03 12:10:10 +0200 | [diff] [blame] | 203 | .. include:: kernel-parameters.txt |
| 204 | :literal: |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 205 | |
Mauro Carvalho Chehab | 684adc0 | 2016-09-21 09:48:55 -0300 | [diff] [blame] | 206 | Todo |
| 207 | ---- |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 208 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 209 | Add more DRM drivers. |