mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-17 16:27:44 +00:00
12 lines
No EOL
288 B
Bash
Executable file
12 lines
No EOL
288 B
Bash
Executable file
#!/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" |