scripts: fix to pages per node, not processor
This commit is contained in:
parent
c89ad6b36d
commit
55292d7211
1 changed files with 2 additions and 2 deletions
|
@ -2,11 +2,11 @@
|
|||
|
||||
# https://xmrig.com/docs/miner/hugepages#onegb-huge-pages
|
||||
|
||||
sysctl -w vm.nr_hugepages=$(nproc)
|
||||
sysctl -w vm.nr_hugepages=$(awk -F '-' '{print NF*3}' /sys/devices/system/node/online)
|
||||
|
||||
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"
|
||||
echo "1GB pages successfully enabled"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue