1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-06 23:52:38 -05:00
This commit is contained in:
Craig Andrews
2023-07-26 21:47:54 +02:00
committed by GitHub

View File

@@ -1,12 +1,9 @@
#!/bin/bash -e
#!/bin/sh -e
# https://xmrig.com/docs/miner/hugepages#onegb-huge-pages
sysctl -w vm.nr_hugepages=$(nproc)
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
find /sys/devices/system/node/node* -maxdepth 0 -type d -exec sh -c 'echo 3 > "$1/hugepages/hugepages-1048576kB/nr_hugepages"' _ {} \;
echo "1GB pages successfully enabled"
echo "1GB pages successfully enabled"