Windows 10/11 & Linux Tuning
DodaRig runs on both Windows 10/11 (64-bit) and Linux (x86_64) from the same Rust codebase.
Windows 10 / 11 Setup & Building
If you have a pre-built dodarig.exe binary, no compiler or extra tools are needed — just run it.
If you are compiling from source on a Windows 10/11 PC:
- Install Rust (
rustup/cargo). - Install CMake (required by
randomx-rsto compilelibrandomx). - Install a C/C++ compiler: either MinGW GCC (e.g. via Scoop:
scoop install gcc cmake) or Visual Studio C++ Build Tools. - Build the release binary:
cargo build --release
Windows Behavior: Linux-only kernel features (
mlockall,sched_setaffinity, and/dev/cpu/*/msr) are safely skipped on Windows. If huge pages are unavailable, DodaRig logs a warning and automatically falls back to standard memory pages.
Linux Setup & Performance Tuning (Recommended for Rigs)
Linux provides native 2 MB huge pages and direct MSR access, typically delivering 10–20% higher RandomX hashrates:
1. Build from Source
sudo apt update && sudo apt install -y build-essential cmake pkg-config libssl-dev
cargo build --release2. Enable Huge Pages
sudo sysctl -w vm.nr_hugepages=1280To persist across reboots, add vm.nr_hugepages=1280 to /etc/sysctl.conf.
3. MSR Prefetcher Mods & Memory Locking
Run DodaRig with sudo (or CAP_SYS_RAWIO + CAP_IPC_LOCK) and set wrmsr = 6 (Intel) or wrmsr = 15 (AMD) in config.toml to disable hardware prefetchers that contend with RandomX’s random memory accesses.
4. CPU Topology & NUMA
When cpu.threads = 0 (default), DodaRig inspects /sys/devices/system/cpu and L3 cache size (2 MB per RandomX thread) to pick the optimal thread count and pins threads with sched_setaffinity.
Related Documentation
- Getting Started — Run your first benchmark.
- CLI & Web GUI Reference —
--threads,--affinity,--wrmsr,--huge-pages. - Troubleshooting & FAQ — Huge pages & mode questions.