XMRig, Support 1GB Page on Fedora
30/05/2022
@ Saigon
Mining Rig
By default, running xmrig to mine Monero will got 1GB PAGES
disabled eventhough config.json
has been configured.
![[1] XMRig without 1GB pages supported.](/image/posts/2022-05-30-xmrig-support-1GB-Page-on-Fedora/1.png)
While running xmrig, you can caught the following log.
[2021-03-15 15:14:59.732] randomx failed to allocate RandomX dataset using 1GB pages
The solution is to edit grub file located at /etc/default/grub
with the following config:
GRUB_CMDLINE_LINUX_DEFAULT="hugepagesz=1G hugepages=3"
Then, update grub.cfg
with this command and do reboot.
grub2-mkconfig -o /boot/grub2/grub.cfg
Finally, run your xmrig
with sudo and enjoy!
![[2] XMRig with 1GB pages supported.](/image/posts/2022-05-30-xmrig-support-1GB-Page-on-Fedora/2.png)