monero-miner/scripts/huge_pages.sh

5 lines
214 B
Bash
Raw Normal View History

2021-03-02 19:01:04 +00:00
#!/bin/bash
sysctl -w vm.nr_hugepages=1300
sh -c ' echo 3 >/sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages'
# check if the pages are enabled
cat /sys/kernel/mm/hugepages/hugepages-1048576kB/free_hugepages