Get RAM and cache specs:
sudo lshw -c memory
Theoretical RAM bandwidth
mem_freq_hz = 2666*1e6
num_channels = 2
bus_width_bits = 64
theoretical_mem_bandwidth = mem_freq_hz * bus_width_bits//8 * num_channels
print(f'{theoretical_mem_bandwidth * 1e-9} GiB/s')
Check that processor supports 1G pagefiles
sudo lshw -c processor|grep pdp
You should see pdpe1gb
edit /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash default_hugepagesz=2MB hugepagesz=1G hugepages=2 hugepagesz=2M hugepages=20"
run update-grub and reboot