You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
288 B
12 lines
288 B
#!/bin/bash -e
|
|
|
|
# https://xmrig.com/docs/miner/hugepages#onegb-huge-pages
|
|
|
|
sysctl -w vm.nr_hugepages=$(nproc)
|
|
|
|
for i in $(find /sys/devices/system/node/node* -maxdepth 0 -type d);
|
|
do
|
|
echo 3 > "$i/hugepages/hugepages-1048576kB/nr_hugepages";
|
|
done
|
|
|
|
echo "1GB pages successfully enabled"
|