XMRig Miner Explained

What the XMRig miner does while it is running, how CPU mining works at a practical level, and which hardware and settings decide the number you see in the log.

What the miner is

XMRig is mining software: a program that repeatedly hashes candidate block data supplied by a pool and reports back any result that clears the target. It is not a wallet, not an exchange and not a pool. It holds no funds — payouts are handled entirely by the pool you connect to, against the address you supply.

Its distinguishing feature is focus. Instead of a graphical suite, you get one binary, one configuration file and a log. That is also why it is used as a building block by mining operating systems and management panels.

How CPU mining works in practice

  1. The miner opens a stratum connection to a pool and authenticates with your wallet address or worker name.
  2. The pool sends a job: block template data plus a difficulty target.
  3. Each worker thread varies a nonce, hashes the data, and checks the result against the target.
  4. A result that clears the target is submitted as a share; the pool credits it and usually raises your difficulty.
  5. When the network finds a block, the pool pushes a new job and the cycle restarts.

Almost all of the time is spent on step three. Everything else is bookkeeping, which is why network latency barely affects earnings while CPU throughput dominates them.

Algorithms and why RandomX is different

XMRig supports several proof-of-work algorithms, but RandomX is the reason most people install it. RandomX deliberately executes randomly generated programs against a large dataset held in memory, so it rewards general-purpose CPUs with big caches and punishes specialised hardware. KawPow is GPU-oriented, GhostRider mixes several algorithms in rotation, and the older CryptoNight family survives on a handful of chains.

What the hardware actually does

ComponentRole in RandomX mining
L3 cacheThe real limit. Roughly 2 MB per active thread; beyond that, extra threads add heat, not hashes.
Memory capacityAbout 2.5 GB per thread for fast mode; less memory forces light mode.
Memory speed and channelsFeeds the dataset. Dual-channel and tighter timings measurably help.
Core countUseful only while cache keeps up with it.
Cooling and power deliveryDecides whether the first-minute hashrate is still there an hour later.

Reading performance honestly

The miner prints three rolling averages. The ten-second figure moves constantly and means little; the fifteen-minute figure is the one to compare against anything. A configuration that looks faster for thirty seconds and then settles lower has simply run into a thermal or power ceiling. Accepted share counts over hours, not hashrate spikes over seconds, tell you whether a change helped. The performance guide covers tuning method.

Configuration concepts worth knowing

Thread count, CPU affinity, huge pages, memory mode and the pool block are the five settings that account for most of the difference between a badly and a well set up miner. Each is explained on the configuration page; the short version is that fewer, well-placed threads with large pages enabled usually beat "every thread the CPU has".

Windows considerations

On Windows the practical differences are the large-pages privilege, the antivirus reaction, and the power plan. All three are covered on the Windows page. Nothing about the mining logic itself changes between operating systems.

Miner questions

What is XMRig Miner?

The mining program itself — a command-line application that performs proof-of-work hashing and talks to a mining pool.

Is CPU mining worth it?

That depends on electricity price, hardware and coin price, all of which change. This site does not publish profitability claims; calculate it for your own situation.

Can it mine with a GPU?

Yes, with the CUDA or OpenCL backends, though the CPU side is what most Windows users run.