💾 Archived View for darknesscode.xyz › notes › hugepages.gmi captured on 2024-08-18 at 17:27:55. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2022-07-16)
-=-=-=-=-=-=-
Check the size of hugepages
grep Huge /proc/meminfo
To enable hugepages run
sudo sysctl -w vm.nr_hugepages=16
To ensure that the change stays persistent across future reboots, open
For **Arch Linux** the file is in
sudo vim /etc/sysctl.d/sysctl.conf
For **Debian** the file is in
sudo vim /etc/sysctl.conf
Add at the end of the file
vm.nr_hugepages = 16
Reboot for these changes to take effect
sudo reboot
The size of the hugepages can be has high as need
----------
----------
© DarknessCode