-
Notifications
You must be signed in to change notification settings - Fork 7
/
ch09.xml
3761 lines (3385 loc) · 99.8 KB
/
ch09.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--<!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">-->
<chapter id="LKN-command-line">
<!--
AO: Some of the options that fix bugs may be obscure. I don't know
how common the hardware is that requires these options. I'll trust
you; if you think a lot of readers will benefit by having these
options, leave them in.
Production will probably want to alphabetize the options under each
sect1, and I think that would be a good idea to make them easier to
find, but we can leave it up to production staff.
-->
<title>Kernel boot command-line parameter reference
<!-- don't put a footnote in a title normally... -->
<footnote>
<para>
The majority of this chapter is based on the in-kernel documentation for the
different kernel boot command line reference options, which were written by the
kernel developers and released under the GPL.
</para>
</footnote>
</title>
<!--
AO: I thought the lead-in could be better. I just wrote up the
following as an experiment.
gkh: looks good, I made a minor edit about the proc stuff, adding sysfs
to it too.
-->
<para>
There are three ways to pass options to the kernel and thus control
its behavior:
</para>
<orderedlist>
<listitem><para>
When building the kernel. Most of this book discusses these options.
</para></listitem>
<listitem><para>
When starting the kernel. Usually, parameters are passed to the kernel
when it is invoked from a boot file such as the GRUB or LILO
configuration file.
</para></listitem>
<listitem><para>
At run-time, by writing to files in the <filename>/proc</filename> and
<filename>/sys</filename> directories.
</para></listitem>
</orderedlist>
<para>
This chapter describes the second method of passing options. The
chapter breaks the boot-time options into different logical sections.
A number of architecture-specific and individual driver options are
not listed here. For a complete list of all known options, please see
the file <filename>Documentation/kernel-parameters.txt</filename> in
the kernel source tree and the individual architecture-specific
documentation files.
</para>
<!--
<para>
The kernel has a wide variety of different command line options that are
able to control lots of different actions. This chapter documents the
majority of them, breaking them down into different logical sections. A
number of architecture specific and individual driver options are not
listed here. For a complete list of all known options, please see the
kernel file, <filename>Documentation/kernel-parameters.txt</filename>
and the individual architecture specific documentation files.
</para>
-->
<!--
AO: I assume the following applies to all boot parameters, not just
module parameters.
gkh: Yes, you are correct.
-->
<para>
Not all of the listed options are always available. Most are
associated with subsystems, and work only if the kernel is configured
with those subsystems built in. They also depend on the presence of
the hardware with which they are associated.
</para>
<para>
All of these parameters are case-sensitive.
</para>
<!--
AO: I thought the module behavior deserves its own section. I think
it would go well at the end of the chapter, but maybe it's important
enough to put up here at the front.
gkh: Yes, a different section is fine. And yes, I think it is important
enough to put here.
-->
<sect1>
<title>Module-specific options</title>
<para>
In addition to the options listed in this chapter, parameters for
modules that are built in to the kernel
can also be passed on the command line. (Dynamically loaded modules,
of course, are not in memory when the kernel boots and therefore
cannot be passed parameters at boot time.)
The syntax for passing parameters consisting of
the module name followed by a dot (<literal>.</literal>) and the
parameter.
</para>
<para>
For example, the
<literal>usbcore</literal> module accepts the parameter
<literal>blinkenlights</literal> to display flashing lights
on all supported USB 2.0 hubs (don't ever say the kernel developers
don't have a sense of humor). To set
this parameter when loading the module dynamically, you would enter:
<screen>
$ <userinput>modprobe usbcore blinkenlights=1</userinput>
</screen>
But if the <literal>usbcore</literal> module is built into the kernel,
you achieve the same effect by invoking the kernel with the following
option:
<screen>
usbcore.blinkenlights=1
</screen>
</para>
<para>
Most module options for modules that are built into the kernel can also be
changed at run time by writing to files in the subdirectory named after the
module under the <filename>/sys/module/</filename> directory. Thus, the
<literal>blinkenlights</literal> option is represented by the file
<filename>/sys/module/usbcore/blinkenlights</filename>.
desired.
</para>
</sect1>
<sect1>
<title>Console options</title>
<para>
These options deal with the console or kernel log, where kernel
debugging and error information are displayed.
</para>
<refentry>
<refnamediv>
<refname>console</refname>
<!--
AO: Do you like having periods at the end of the refpurpose
sentences? Most seem to be sentences, so I put in the periods. We
could easily remove them if you prefer.
gkh: I don't really care either way. I'll leave your changes in.
-->
<refpurpose>Output console device and options.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para><literal>console=</literal></para>
</refsynopsisdiv>
<refsect1>
<title>Options</title> <!-- Description or Options ? I like
options...
AO: Yes, I think "options" is best. -->
<variablelist>
<varlistentry>
<term><literal>tty<replaceable>n</replaceable></literal></term>
<listitem><para>Use the virtual console device <replaceable>n</replaceable>.</para></listitem>
</varlistentry>
<varlistentry>
<term><literal>ttyS<replaceable>n</replaceable>[,<replaceable>options</replaceable>]</literal></term>
<term><literal>ttyUSB0[,<replaceable>options</replaceable>]</literal></term> <!-- can have two, hooray -->
<listitem>
<para>
Use the specified serial port. The options are of the form
<replaceable>bbbbpnf</replaceable>, where <replaceable>bbbb</replaceable> is the baud rate, <replaceable>p</replaceable> is parity (<literal>n</literal>,
<literal>o</literal>, or <literal>e</literal>), <replaceable>n</replaceable> is number of bits, and <replaceable>f</replaceable> is flow control (<literal>r</literal>
for RTS or omitted). Default is <literal>9600n8</literal>.
</para>
<para>
See the file
<filename>Documentation/serial-console.txt</filename> for more
information on how to use a serial console. If you wish to have
access to the kernel console information and do not have a serial
port, see the <literal>netconsole</literal> command-line option.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>uart,io,<replaceable>addr</replaceable>[,<replaceable>options</replaceable>]</literal></term>
<term><literal>uart,mmio,<replaceable>addr</replaceable>[,<replaceable>options</replaceable>]</literal></term>
<listitem>
<para>
Start an early, polled-mode console on the 8250/16550 UART at the
specified I/O port or MMIO address, switching to the specified
ttyS device later. The options are the same as for ttyS
shown earlier.
<!--
AO: Do you also have to specify a ttyS option, or does the kernel
now how to find it automatically?
gkh: you also have to specify one. I've edited it to show this.
-->
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>netconsole</refname>
<refpurpose>Output console data across the network.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>netconsole=</literal>[<replaceable>src-port</replaceable>]<literal>@</literal>[<replaceable>src-ip</replaceable>]<literal>/</literal>[<replaceable>dev</replaceable>]<literal>,</literal>[<replaceable>target-port</replaceable>]<literal>@</literal><replaceable>target-ip</replaceable><literal>/</literal>[<replaceable>target-mac-address</replaceable>]
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Send kernel console data across the network using UDP
packets to another machine. Options are:
<variablelist>
<varlistentry>
<term><replaceable>src-port</replaceable></term>
<listitem>
<para>Source port for the UDP packets.
The default value is 6665.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable>src-ip</replaceable></term>
<listitem>
<para>Source IP address of the interface
to use.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable>dev</replaceable></term>
<listitem>
<para>Network interface to use.
<literal>eth0</literal> is an example.
The network interface can also run normal network traffic, because
the netconsole data is not intrusive and should cause no slowdown
in other network operations.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable>target-port</replaceable></term>
<listitem>
<para>Port that the logging agent
will use. The default value is 6666.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable>target-ip</replaceable></term>
<listitem>
<para>IP address for the logging
agent.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><replaceable>target-mac-address</replaceable></term>
<listitem>
<para>Ethernet MAC address
for the logging agent.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para>
To listen to this data, the remote machine can use the
<command>syslogd</command> program, or run the
<command>netcat</command> program as follows:
<screen>
<userinput>netcat -u -l -p </userinput><replaceable>port</replaceable>
</screen>
</para>
<para>
For more background on how to use this option,
see the file
<filename>Documentation/networking/netconsole.txt</filename>.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>debug</refname>
<refpurpose>Enable kernel debugging.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
<!--
AO: Does "match" accurately replace "default to"?
gkh: "set to" is a bit better, changed.
-->
Cause the kernel log level to be set to the
debug level, so that all debug messages will be printed to the
console at boot time.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>quiet</refname>
<refpurpose>Disable all log messages.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>quiet</literal>
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Set the default kernel log level to KERN_WARNING (4), which
suppresses all messages during boot except extremely serious
ones. (Log levels are defined under the
<literal>loglevel</literal> parameter.)
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>earlyprintk</refname>
<refpurpose>Show early boot messages.
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<!--
AO: I thought the brackets weren't placed quite right, and I added
the keep option.
-->
<literal>earlyprintk=</literal>[<replaceable>vga</replaceable>|<replaceable>serial</replaceable>][,<literal>ttyS</literal><replaceable>n</replaceable>[,<replaceable>baudrate</replaceable>]][,<literal>keep</literal>]
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Show kernel log messages that precede the initialization of
the traditional console. These messages are typically never seen
on the console unless you use this option. Enabling this can be
very useful for tracking down hardware issues. Currently, the
option can specify either the
VGA device or the serial port, but not both at the same time.
Also, only the <literal>ttyS0</literal> or <literal>ttyS1</literal>
serial devices will work. Interaction with the standard serial
driver is not very good, and the VGA output will eventually be
overwritten by the real console.
</para>
<para>
<!--
AO: Does the following mean that by default the console doesn't
display the messages that this option displays? Needs a bit of
explanation.
gkh: yes, these messages are never seen normally, unless this option is
selected. Changed the text a bit to help show this.
-->
Append <literal>,keep</literal> in order not to disable the
messages shown by this option when the real kernel console is
initialized and takes over the system.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>loglevel</refname>
<refpurpose>Set the default console log level.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>loglevel=</literal><replaceable>level</replaceable>
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Specify the initial console log level. Any log
messages with levels less than this (that is, of higher priority) will be printed to the
console, whereas any messages with levels equal to or greater than
this will not be displayed.
</para>
<para>
The console log level can also be changed by the <command>klogd</command> program, or
by writing the specified level to the
<filename>/proc/sys/kernel/printk</filename> file.
</para>
<para>
The kernel log levels are:
<variablelist>
<varlistentry>
<term><literal>0 (KERN_EMERG)</literal></term>
<listitem>
<para>The system is unusable.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>1 (KERN_ALERT)</literal></term>
<listitem>
<para>Actions that must be taken care of immediately.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>2 (KERN_CRIT)</literal></term>
<listitem>
<!--
AO: Is critical the same as fatal (this is, the boot is aborted)?
gkh: No, these are all run-time things. The machine might still boot fine,
but something critical happened that needs to be fixed.
-->
<para>Critical conditions.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>3 (KERN_ERR)</literal></term>
<listitem>
<para>Non-critical error conditions.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>4 (KERN_WARNING)</literal></term>
<listitem>
<para>Warning conditions that should be taken care of.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>5 (KERN_NOTICE)</literal></term>
<listitem>
<para>Normal, but significant events.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>6 (KERN_INFO)</literal></term>
<listitem>
<para>Informational messages that require no action.</para>
</listitem>
</varlistentry>
<varlistentry>
<term><literal>7 (KERN_DEBUG)</literal></term>
<listitem>
<!--
AO: I tried to put in some explanation, but I might be wrong.
gkh: looks good to me.
-->
<para>Kernel debugging messages, output by the kernel if the
developer enabled debugging at compile time.</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>log_buf_len</refname>
<refpurpose>Set the size of the kernel log buffer.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>log_buf_len=</literal><replaceable>n</replaceable>[<replaceable>KMG</replaceable>]
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Set the size of the kernel's internal log buffer.
<replaceable>n</replaceable> must be a power of 2, if not, it will be
rounded up to be a power of two.
This value can also be changed by the
<literal>CONFIG_LOG_BUF_SHIFT</literal> kernel configuration value.
<!--
AO: Which configuration value?
gkh: now specified.
-->
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>initcall_debug</refname>
<refpurpose>Debug the initcall functions in the kernel.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
<!--
AO: Please define initcalls. Are they simply functions in the kernel
code called during kernel initialization?
gkh: yes, that is what they are. changed.
-->
Cause the kernel to trace all functions that are called by the
kernel during initialization of the system as the kernel boots.
This option is useful for determining
where the kernel is dying during startup.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>kstack</refname>
<refpurpose>How many words of the stack to print in kernel oopses.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>kstack=</literal><replaceable>n</replaceable>
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Specify how many words from the kernel stack should be
printed in the kernel oops dumps. <replaceable>n</replaceable> is an
integer value.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>time</refname>
<refpurpose>Show timing data on every kernel log message.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
Cause the kernel to prefix every kernel log message
with a timestamp.
</para>
</refsect1>
</refentry>
</sect1>
<sect1>
<title>Interrupt options</title>
<para>
Interrupts are a complex aspect of kernel behavior. The boot-time
options deal mostly with the interface between the kernel and the
hardware that handles interrupts, such as the Intel chip's Advanced
Programmable Interrupt Controller (APIC).
</para>
<refentry>
<refnamediv>
<refname>apic</refname>
<refpurpose>Change the verbosity of the APIC subsystem when booting.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para><literal>apic=</literal>[<replaceable>quiet</replaceable>(default)|<replaceable>verbose</replaceable>|<replaceable>debug</replaceable>]</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
<!--
AO: What is the difference between verbose and debug? Does debug
show more?
gkh: much more. stuff that only a developer of the apic code would care
about.
-->
Control how much information the APIC subsystem generates when
booting the kernel.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>noapic</refname>
<refpurpose>Do not use any IOAPICs.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
Prevent the kernel from using any of the
IOAPICs that might be present in the system.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>lapic</refname>
<refpurpose>Enable the local APIC.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
Cause the kernel to enable the local APIC even if
the BIOS had disabled it.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>nolapic</refname>
<refpurpose>Do not use the local APIC.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
Tell the kernel not to use the local APIC.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>noirqbalance</refname>
<refpurpose>Disable kernel IRQ balancing.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
Disable all of the built-in kernel IRQ balancing logic.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>irqfixup</refname>
<refpurpose>Basic fix to interrupt problems.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
When an interrupt is not handled, search all known interrupt
handlers for it. This is intended to get systems with badly broken
firmware running.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>irqpoll</refname>
<refpurpose>Extended fix to interrupt problems.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
When an interrupt is not handled, search all known interrupt
handlers for it and also check all handlers on each timer interrupt.
This is intended to get systems with badly broken firmware running.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>noirqdebug</refname>
<refpurpose>Disable unhandled interrupt detection.</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<para>
By default, the kernel attempts to detect and disable unhandled
interrupt sources because they can cause problems with the
responsiveness of the rest of the kernel if left unchecked. This
option will disable this logic.
</para>
</refsect1>
</refentry>
</sect1>
<sect1>
<title>Memory options</title>
<para>
The kernel handles memory in many different chunks and categories for
different purposes. These options allow you to tweak the sizes and settings.
</para>
<refentry>
<refnamediv>
<refname>highmem</refname>
<refpurpose>Specify the size of the highmem memory zone.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>highmem=</literal><replaceable>n</replaceable>
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Force the highmem memory zone to have an exact
size of <replaceable>n</replaceable> bytes. This will work even on
boxes that have no highmem zones by default. It can also
reduce the size of the highmem zone for machines with a lot of
memory.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>hugepages</refname>
<refpurpose>Set the number of hugetlb pages.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>hugepages=</literal><replaceable>n</replaceable>
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
<!--
AO: I tried to define hugetlb. I think readers can find out most of
the other memory values on their own.
gkh: thanks.
-->
The hugetlb feature lets you configure Linux to use 4MB pages,
one thousand times the default size.
If Linux is configured this way, this options sets the maximum
number of hugetlb pages to be <replaceable>n</replaceable>.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>ihash_entries</refname>
<refpurpose>Set the number of inode hash buckets.
</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>ihash_entries=</literal><replaceable>n</replaceable>
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Override the default number of hash buckets
for the kernel's inode cache. Recommended only for kernel
experts.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>max_addr</refname>
<refpurpose>Ignore memory.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>max_addr=</literal><replaceable>n</replaceable>
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Cause the kernel to ignore all physical memory greater than or equal to the physical address
<replaceable>n</replaceable>.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>mem</refname>
<refpurpose>Force memory usage.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>mem=</literal><replaceable>n</replaceable>[<replaceable>KMG</replaceable>]
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Set the specific ammount of memory used by the
kernel. When used with the <literal>memmap=</literal> option,
physical address space collisions can be avoided. Without the
<literal>memmap=</literal> option, this option could cause PCI
devices to be placed at addresses that belong to unused RAM.
<replaceable>n</replaceable> specifies the amount of memory to force and
is measured in units of kilobytes (<literal>K</literal>), megabytes (<literal>M</literal>), or gigabytes (<literal>G</literal>).
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>mem</refname>
<refpurpose>Disable the use of 4MB pages for kernel memory.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>mem=nopentium</literal>
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Disable the use of huge (4MB) pages for kernel memory.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>memmap</refname>
<refpurpose>Enable setting of an exact E820 memory map.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>memmap=</literal><replaceable>exactmap</replaceable>
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Use a specific memory map. The
<replaceable>exactmap</replaceable> lines can be
constructed based on BIOS output or other requirements.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>memmap</refname>
<refpurpose>Force specific memory to be used.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>memmap=</literal><replaceable>n</replaceable>[<replaceable>KMG</replaceable>]<literal>@</literal><replaceable>start</replaceable>[<replaceable>KMG</replaceable>]
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Force the kernel to use a specific memory region.
<replaceable>n</replaceable> is the size of the memory location and
<replaceable>start</replaceable>is the start location in memory of the
range. Units can be kilobytes (<literal>K</literal>),
megabytes (<literal>M</literal>), or gigabytes
(<literal>G</literal>).
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>noexec</refname>
<refpurpose>Enable or disable non-executable mappings.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>noexec=</literal>[(<literal>on</literal>|(<literal>off</literal>]
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
Enable or disable the kernel's ability to map sections of
memory as non-executable. By default, the mapping is enabled (<literal>on</literal>).
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>reserve</refname>
<refpurpose>Reserve some I/O memory.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>reserve=</literal><replaceable>n</replaceable>[<replaceable>KMG</replaceable>]
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>
<!--
AO: What are the units for n?
gkh: same as the others, now changed.
-->
Force the kernel to ignore some of the I/O memory areas.
</para>
</refsect1>
</refentry>
<refentry>
<refnamediv>
<refname>vmalloc</refname>
<refpurpose>Force the vmalloc area to have a specific size.</refpurpose>
</refnamediv>
<refsynopsisdiv>
<para>
<literal>vmalloc=</literal><replaceable>n</replaceable>[<replaceable>KMG</replaceable>]
</para>
</refsynopsisdiv>
<refsect1>
<title>Description</title>
<para>