Configuring Huge Pages
- Updated2024-07-03
- 1 minute(s) read
Huge memory pages are required for the data storage application to work properly. Configure the data storage computer to enable huge pages.
-
Create and mount a huge page directory by executing the
following commands in the Linux terminal:
sudo mkdir /mnt/huge sudo mount -t hugetlbfs pagesize=1GB /mnt/huge
-
Configure the computer to automatically allocate huge pages
each time the computer boots by executing the following
commands in the Linux terminal:
sudo echo 'nodev /mnt/huge hugetlbfs pagesize=1GB 0 0' | sudo tee -a /etc/fstab
Note This command appends text to the end of /etc/fstab. NI recommends reviewing /etc/fstab after completing this step to ensure that there is no duplicate or contradicting configurations. -
Open the grub configuration file at
/etc/default/grub in a text editor.
and add the following within the quotation marks of the
GRUB_CMDLINE_LINUX_DEFAULT
line:
default_hugepagesz=1G hugepagesz=1G hugepages=32
- Save the grub configuration file.
-
Apply the changes by executing the following command in the
Linux terminal:
sudo update-grub
Note If any of these settings were previously configured, ensure that you overwrite the existing configuration to avoid creating duplicates. - Reboot the computer to apply the new configuration.