Skip to content

Commit 75c05fa

Browse files
rpptJonathan Corbet
authored andcommitted
docs/kernel-parameters: update description of mem=
The existing description of mem= does not cover all the cases and differences between how architectures treat it. Extend the description to match the code. Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Link: https://lore.kernel.org/r/20220310082736.1346366-1-rppt@kernel.org Signed-off-by: Jonathan Corbet <corbet@lwn.net>
1 parent c01c2e4 commit 75c05fa

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Documentation/admin-guide/kernel-parameters.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2827,13 +2827,23 @@
28272827

28282828
For details see: Documentation/admin-guide/hw-vuln/mds.rst
28292829

2830+
mem=nn[KMG] [HEXAGON] Set the memory size.
2831+
Must be specified, otherwise memory size will be 0.
2832+
28302833
mem=nn[KMG] [KNL,BOOT] Force usage of a specific amount of memory
28312834
Amount of memory to be used in cases as follows:
28322835

28332836
1 for test;
28342837
2 when the kernel is not able to see the whole system memory;
28352838
3 memory that lies after 'mem=' boundary is excluded from
28362839
the hypervisor, then assigned to KVM guests.
2840+
4 to limit the memory available for kdump kernel.
2841+
2842+
[ARC,MICROBLAZE] - the limit applies only to low memory,
2843+
high memory is not affected.
2844+
2845+
[ARM64] - only limits memory covered by the linear
2846+
mapping. The NOMAP regions are not affected.
28372847

28382848
[X86] Work as limiting max address. Use together
28392849
with memmap= to avoid physical address space collisions.
@@ -2844,6 +2854,14 @@
28442854
in above case 3, memory may need be hot added after boot
28452855
if system memory of hypervisor is not sufficient.
28462856

2857+
mem=nn[KMG]@ss[KMG]
2858+
[ARM,MIPS] - override the memory layout reported by
2859+
firmware.
2860+
Define a memory region of size nn[KMG] starting at
2861+
ss[KMG].
2862+
Multiple different regions can be specified with
2863+
multiple mem= parameters on the command line.
2864+
28472865
mem=nopentium [BUGS=X86-32] Disable usage of 4MB pages for kernel
28482866
memory.
28492867

0 commit comments

Comments
 (0)