|
# Enable huge pages:
|
|
# Enable huge pages:
|
|
The Linux kernel needs to know at boot-time how many huge pages should be created. So, set on the boot command line (e.g. in Grub): `hugepagesz=<2MB|1GB> hugepages=<number_of_pages>` and reboot.
|
|
The Linux kernel needs to know at boot-time how many huge pages should be created. So, set on the boot command line (e.g. in Grub):
|
|
|
|
|
|
|
|
`hugepagesz=<2MB|1GB> hugepages=<number_of_pages>`
|
|
|
|
|
|
|
|
and reboot.
|
|
|
|
|
|
# Configuring huge pages:
|
|
# Configuring huge pages:
|
|
|
|
|
|
Activate huge pages: hugeadm --thp-always
|
|
Activate huge pages: hugeadm --thp-always
|
|
|
|
|
|
Deactivate huge pages: hugeadm --thp-never
|
|
Deactivate huge pages: hugeadm --thp-never
|
|
|
|
|
|
List current state: hugeadm --pool-list
|
|
List current state: hugeadm --pool-list
|
|
|
|
|
|
# User is not allowed to use huge pages:
|
|
# User is not allowed to use huge pages:
|
... | | ... | |