Kernel Boot Parameters for HugeTLB Pages
The kernel boot options enable you to specify values such as the size and the number of pages to be reserved in the kernel's pool. Using the kernel boot parameters is the most reliable method of requesting huge pages.
Table 2-1 The Kernel Boot Command Line Parameters for Requesting HugeTLB Pages
Parameters | Purpose | Accepted Value Option on x86_64 Architecture |
---|---|---|
default_hugepagesz |
Defines the default size of persistent huge pages configured in the kernel at boot time. | 2M (default), 1G |
hugepagesz and
hugepages |
Size parameter
If multiple huge page sizes are supported, the
"
|
|
Note:
In a NUMA system, pages reserved with kernel command line options, as shown in the previous table, are divided equally between the NUMA nodes.If the
requirement is to have a different number of pages on each node, you can use the
file-based HugeTLB parameters in the sysfs
file system. See File-Based Configuration Parameters for HugeTLB Pages and Requesting HugeTLB Pages Using NUMA Node Specific Parameters Early in the Boot Process.