Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Latest commit

 

History

History
49 lines (31 loc) · 944 Bytes

File metadata and controls

49 lines (31 loc) · 944 Bytes

RandomX Algorithm in XDAG

Linux Requirements:

Install RandomX library

git clone https://github.com/tevador/RandomX.git
cd RandomX
mkdir build && cd build
cmake -DARCH=native ..
make
sudo make install

Enable huge pages

Temporary (until next reboot) reserve huge pages

sudo sysctl -w vm.nr_hugepages=1280

Permanent huge pages reservation

sudo bash -c "echo vm.nr_hugepages=1280 >> /etc/sysctl.conf"
  • A miner using randomx hash needs 1280 huge pages, about 2.5 Gigabytes

The miner can't change PoW algorithm automatically. So miner must start new version after algorithm fork manually.

CPU RandowX Benchmark

DaggerMiner -cpu  -M -t <MINING_THREAD_NUMBER> 

CPU RandowX Miner

DaggerMiner -cpu  -p <POOL_ADDRESS>:<POOL_PORT> -t <MINING_THREAD_NUMBER> -a <WALLET_ADDRESS>

miner not support GPU yet.