Page 1 of 1
enable Hugepage 1GB xrig help
Posted: 15 Oct 2021, 14:31
by henrykfrp
hi guys is there a way to activate xmrig hugepage 1gb ? any help or idea please.
i found this but im not sure
also this instructions
https://github.com/xmrig/xmrig/issues/1411
https://github.com/xmrig/xmrig/blob/dev ... b_pages.sh
Code: Select all
#!/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"
enable Hugepage 1GB xrig help
Posted: 15 Oct 2021, 15:07
by henrykfrp
i also found this but dont know where on pendrive i should write this so it alway activate on boot any help. I alway run the porteus live from a pendrive no persistes ever
enable Hugepage 1GB xrig help
Posted: 16 Oct 2021, 00:48
by fulalas
So you want to execute this script every time you boot?
enable Hugepage 1GB xrig help
Posted: 16 Oct 2021, 04:27
by henrykfrp
well yes that what it explain in the pages but not sure where can i execute this command on boot or on what conf file i should copied it . Any Idea?
enable Hugepage 1GB xrig help
Posted: 16 Oct 2021, 07:33
by ncmprhnsbl
several way to do this: (in no particular order)
1. cheatcode: edit the APPEND line(of your chosen boot option) of /boot/syslinux/porteus.cfg with
cliexe=/path/to/script.sh eg. /dev/sdb1/porteus/scripts/script.sh (name it whatever you want and make sure it's executable( chmod +x script.sh) on POSIX)
2.make a module:
Code: Select all
(as root):
mkdir -p /tmp/mod/{etc/rc.d,usr/local/bin}
cp script.sh /tmp/mod/usr/local/bin
chmod +x /tmp/mod/usr/local/bin/script.sh
echo "/usr/local/bin/script.sh" >> /tmp/mod/etc/rc.d/rc.local
dir2xzm /tmp/mod /tmp/xmrig_hugepage.xzm
mv /tmp/xmrig_hugepage.xzm /to/your/device/porteus/modules/
3. if your usb install is POSIX(ext*) not fat or ntfs you can use rootcopy:
Code: Select all
(as root)
mkdir -p /path/to/your/usb/porteus/rootcopy/{etc/rc.d,usr/local/bin}
cp script.sh /path/to/your/usb/porteus/rootcopy/usr/local/bin
chmod +x /path/to/your/usb/porteus/rootcopy/usr/local/bin/script.sh
echo "/usr/local/bin/script.sh" >> /path/to/your/usb/porteus/rootcopyetc/rc.d/rc.local
presuming that this is early enough in the boot process .. and that the kernel is built with this capability ...
just skimming your link:
would simply adding boot parameters:
hugepagesz=1GB default_hugepagesz=1GB hugepages=6 to the APPEND line work?
enable Hugepage 1GB xrig help
Posted: 18 Oct 2021, 02:30
by henrykfrp
thank you i will check it out and let you know
enable Hugepage 1GB xrig help
Posted: 18 Oct 2021, 06:57
by henrykfrp
i made the module but it convet it but doent run. i made the script called hugepagescript.sh and made it exec but when i try to run it it say:
sysctl: cannot stat /proc/sys/vm/nr_hugepages: No such file or directory
i think code is note made for porteus so it missing folder i think im not sure how can i check if indeed porteus has the hugepage or command since sysctl doent exist