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,7 +2,7 @@
|
|||
|
||||
# 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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue