A worker is where the RandomX hashing happens, so its CPU determines your hashrate. The requirements are modest; most of the performance comes from tuning, which RigForge applies for you.
This page sizes the miner. The stack host your workers connect to (Monero node, P2Pool, proxy, dashboard) is sized separately; see Pithead's Hardware Requirements.
| Resource | Requirement | Recommended |
|---|---|---|
| CPU | 64-bit x86 with AVX2 support | A high-core-count CPU (e.g. AMD Ryzen / EPYC); more and faster cores mean more hashrate. XMRig auto-detects the CPU and sizes the tuning to it. |
| RAM | ~2.3 GB free for RandomX fast mode (a 2080 MB dataset + 256 MB cache), plus ~2 MB of L3 cache per mining thread | 4 GB+; budget more on high-core-count CPUs. |
| HugePages | Optional, but a significant speedup | RigForge configures 2 MB and 1 GB HugePages (plus MSR access) for you. Linux only, and it needs a reboot to take effect. |
| OS | Ubuntu 22.04+ or Debian 12 | Ubuntu 24.04 is fully supported. macOS is best effort with degraded features. |
| Network | Reach your pool / stack host on its Stratum port (Pithead uses 3333) | A LAN pool needs no Tor. An .onion pool needs an operator-managed Tor SOCKS proxy. |
RandomX light mode uses a shared 256 MiB cache instead of the fast dataset and is far slower; fast mode (the default) is what you want for real hashrate. Select
xmrig.randomx.mode: "light"explicitly when the host needs the smaller HugePages reservation.automay fall back inside XMRig, but RigForge reserves for fast mode. These figures are from XMRig's own RandomX optimization guide.
RandomX is bottlenecked by L3 cache, not core count alone: each mining thread wants ~2 MB of L3. A CPU
with lots of cores but little L3 can't feed every core, so the effective thread count is roughly
L3 size ÷ 2 MB. This is the math XMRig's auto thread-sizing uses (and the
util/proposed-grub.sh HugePage sizing helper).
Most of a worker's performance comes from configuration RigForge applies automatically, not from the raw silicon:
- HugePages (1 GB + 2 MB): reduces TLB misses on the 2 GB RandomX dataset. Biggest single win.
- MSR registers:
randomx.wrmsrtells XMRig to disable the hardware prefetchers (they hurt RandomX's random access pattern). XMRig auto-detects your CPU family and applies the right preset. - Thread count, ASM, NUMA: XMRig auto-detects these from the CPU topology (see below).
- Performance governor:
cpupowerpins the CPU to its performance frequency under load.
The full mechanics are in How It Works.
RigForge does not keep a table of CPU models. It relies on XMRig's own cache-aware auto-detection and adds a few defaults that make sense because the box is a dedicated miner:
| Setting | Value | Why |
|---|---|---|
cpu.rx |
{} (auto) |
With no constraint RigForge writes an empty profile object so XMRig loads its own L3-sized (~2 MB/thread) profile from detected topology — correct on EPYC, Ryzen, Intel hybrid, and X3D (incl. dual-CCD parts) alike. A threads ceiling or tuned count is passed as the array or object form XMRig 6.x honours (a bare integer is silently ignored), never above the auto profile RigForge observes with one short probe run of XMRig against a dead local pool (a sink config with no credentials, HugePages, MSR or API); if that probe fails on a box with a built miner, RigForge warns and applies the cap without the auto ceiling (#588). |
cpu.asm |
auto |
XMRig picks the Ryzen / Intel / Bulldozer assembly path for the detected CPU. |
randomx.wrmsr |
true |
Auto-applies the correct per-family MSR preset (needs root + the msr module). |
randomx.numa |
true |
A no-op on single-NUMA machines; on multi-NUMA CPUs it gives each node its own dataset copy. Note a single-socket EPYC can still expose several NUMA nodes, so RigForge sizes the 1 GB HugePage reservation per NUMA node rather than per socket. |
randomx.mode |
fast |
auto lets RigForge check available memory at apply time; if there is not enough for the fast dataset (~2080 MiB), it picks light mode with an info message. Explicit light uses the shared 256 MiB cache and the smaller 2 MB HugePages reservation. There is no hard floor. |
randomx.init / randomx.init-avx2 |
-1 / -1 (auto) |
The xmrig.randomx settings can limit dataset-initialization threads and control AVX2 initialization; init-avx2: 1 enables it only on supporting CPUs. A smaller thread count reduces startup and thermal-resume contention on a co-located host. |
cpu.yield |
false |
Busy-wait for maximum hashrate (we own the whole machine). |
cpu.priority |
2 |
Wins scheduling vs. background daemons (XMRig warns >2 can hang a desktop). |
cpu.huge-pages / randomx.1gb-pages |
true (Linux) |
The single biggest lever; light mode forces 1gb-pages off because it has no dataset. |
Why not a per-model lookup table? XMRig's auto-config is cache-aware and updated every release, so it gets thread placement right for CPUs a static table would miss or mishandle. Take dual-CCD X3D parts (7950X3D/7900X3D), where only one CCD has the V-cache and using all cores would push threads onto the slow CCD. Letting XMRig decide is both simpler and more correct.
The only branch that remains is OS-level: macOS (best effort) has no HugePages or MSRs, so those are disabled and the API binds IPv6 :: instead of
0.0.0.0.
The resulting XMRig config (pools, donate level, API, CPU section) lives under your worker root; see Configuration for how it's generated.
- Getting Started — provision a worker in one command.
- How It Works — the mechanics of every optimization above.
- Configuration — the config keys and how the XMRig config is generated.