Huge Pages Tutotial

Window

On Windows you need special privilege called as SeLockMemoryPrivilege to use huge pages.

Linux

You must know how many huge pages you need, general recommendations is 20 pages per thread for Qubic, eg. set 960 pages for 48 threads, which means 1920MB of memory will be reserved for huge pages and become not available for other usage.

Temporary (until next reboot) reserve huge pages:

sudo sysctl -w vm.nr_hugepages=960

Permanent huge pages reservation

sudo bash -c "echo vm.nr_hugepages=960 >> /etc/sysctl.conf"

Last updated