How to enable Hugepages
How to enable Hugepages
Enabling Hugepages for Cozystack can be done both on initial installation and at any time after it. Applying this configuration after installation will require a full node reboot.
Read more in the Linux Kernel documentation: HugeTLB Pages.
Using Talm
Requires Talm v0.16.0
or later.
Add the following lines to
values.yaml
:... certSANs: [] nr_hugepages: 3000
vm.nr_hugepages
is the count of pages per 2Mi.Apply the configuration:
talm apply -f nodes/node0.yaml
Finally, reboot the nodes:
talm -f nodes/node0.yaml reboot
Using talosctl
Add the following lines to your node template:
machine: sysctls: vm.nr_hugepages: "3000"
vm.nr_hugepages
is the count of pages per 2Mi.Apply the configuration:
talosctl apply -f nodetemplate.yaml -n 192.168.123.11 -e 192.168.123.11
Reboot the nodes:
talosctl reboot -n 192.168.123.11 -e 192.168.123.11
Last modified 2025-09-10: [docs] Configuration: How to enable Hugepages (e5bfc58)