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: 3000vm.nr_hugepagesis the count of pages per 2Mi.Apply the configuration:
talm apply -f nodes/node0.yamlFinally, 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_hugepagesis the count of pages per 2Mi.Apply the configuration:
talosctl apply -f nodetemplate.yaml -n 192.168.123.11 -e 192.168.123.11Reboot the nodes:
talosctl reboot -n 192.168.123.11 -e 192.168.123.11