@@ -101,37 +101,48 @@ be specified in bytes with optional scale suffix [kKmMgG]. The default huge
101101page size may be selected with the "default_hugepagesz=<size>" boot parameter.
102102
103103Hugetlb boot command line parameter semantics
104- hugepagesz - Specify a huge page size. Used in conjunction with hugepages
104+
105+ hugepagesz
106+ Specify a huge page size. Used in conjunction with hugepages
105107 parameter to preallocate a number of huge pages of the specified
106108 size. Hence, hugepagesz and hugepages are typically specified in
107- pairs such as:
109+ pairs such as::
110+
108111 hugepagesz=2M hugepages=512
112+
109113 hugepagesz can only be specified once on the command line for a
110114 specific huge page size. Valid huge page sizes are architecture
111115 dependent.
112- hugepages - Specify the number of huge pages to preallocate. This typically
116+ hugepages
117+ Specify the number of huge pages to preallocate. This typically
113118 follows a valid hugepagesz or default_hugepagesz parameter. However,
114119 if hugepages is the first or only hugetlb command line parameter it
115120 implicitly specifies the number of huge pages of default size to
116121 allocate. If the number of huge pages of default size is implicitly
117122 specified, it can not be overwritten by a hugepagesz,hugepages
118123 parameter pair for the default size.
119- For example, on an architecture with 2M default huge page size:
124+
125+ For example, on an architecture with 2M default huge page size::
126+
120127 hugepages=256 hugepagesz=2M hugepages=512
128+
121129 will result in 256 2M huge pages being allocated and a warning message
122130 indicating that the hugepages=512 parameter is ignored. If a hugepages
123131 parameter is preceded by an invalid hugepagesz parameter, it will
124132 be ignored.
125- default_hugepagesz - Specify the default huge page size. This parameter can
133+ default_hugepagesz
134+ pecify the default huge page size. This parameter can
126135 only be specified once on the command line. default_hugepagesz can
127136 optionally be followed by the hugepages parameter to preallocate a
128137 specific number of huge pages of default size. The number of default
129138 sized huge pages to preallocate can also be implicitly specified as
130139 mentioned in the hugepages section above. Therefore, on an
131- architecture with 2M default huge page size:
140+ architecture with 2M default huge page size::
141+
132142 hugepages=256
133143 default_hugepagesz=2M hugepages=256
134144 hugepages=256 default_hugepagesz=2M
145+
135146 will all result in 256 2M huge pages being allocated. Valid default
136147 huge page size is architecture dependent.
137148
0 commit comments