Home

How do I increase my XMRig hashrate?

You can increase your XMRig hashrate by giving it enough memory, enabling huge pages, and choosing the right number of CPU threads. Start with those changes before overclocking, and measure each change separately so you know what actually helps your computer.

Start with a steady baseline

Your hashrate is the number of mining calculations your computer completes each second. XMRig usually shows it in H/s, or hashes per second.

Before changing settings:

  • Use a current, official XMRig release. Avoid “boosted” builds from strangers; they may steal your mining work or contain malware.
  • Confirm that you are mining Monero with RandomX, its mining algorithm—the rules your computer follows to do the work.
  • Close heavy apps and pause other CPU-intensive tasks.
  • Let XMRig finish preparing its memory and run for several minutes before recording its speed.

Compare XMRig’s longer-term average, not a brief peak. Keep the same pool and test conditions while tuning. Your pool’s estimated hashrate can fluctuate because it counts submitted results rather than directly measuring your CPU.

Enable huge pages and check memory setup

Huge pages let your operating system manage memory in larger chunks. RandomX benefits substantially from this, so check XMRig’s startup messages to see whether huge-page allocation succeeded.

On Windows, XMRig may need administrator access to configure the relevant memory permission. A restart may be necessary. On Linux, huge pages need to be reserved and made available to your mining account. Follow XMRig’s instructions for your operating system rather than copying unexplained commands.

Also check these points:

  • RandomX fast mode uses a 2,080 MB dataset, a large working area in memory, plus additional memory for mining.
  • Leave enough RAM for your operating system. Running out and using disk space as substitute memory can crush performance.
  • Use correctly installed memory channels. Two matched RAM sticks in the motherboard’s recommended slots can outperform a single stick.
  • On supported Linux systems, 1 GB huge pages may offer an additional, usually smaller improvement.

RandomX’s light mode uses a 256 MB cache but is much slower. It is not the performance choice just because it uses less RAM.

Tune threads instead of using every thread

A thread is one stream of mining work. More threads do not always mean more speed.

RandomX generally needs about 2 MB of L3 cache per mining thread. L3 cache is a small, fast memory area inside your CPU. For example, 16 MB of L3 suggests testing around eight mining threads—not assuming that every available logical thread will help.

Start with XMRig’s automatic configuration. Then test slightly fewer and slightly more threads, keeping each test long enough to settle. Cache layout, physical cores, and memory speed can change the best setting.

XMRig’s MSR adjustments—changes to certain CPU control registers—can also improve RandomX performance on supported processors. Check its startup log for success or failure. Use documented settings; do not disable security protections blindly for extra speed.

Keep your gains sustainable

Watch CPU temperature, clock speed, and power use during a longer run. Thermal throttling means your CPU slows itself down because it is too hot.

Clean dust, improve airflow, and keep laptop vents clear. Only mine on equipment you own or have explicit permission to use. Aggressive overclocking can add heat, crashes, and electricity costs without worthwhile gains.

The bottom line

Prioritize huge pages, adequate RAM, and thread tuning. Keep only changes that improve sustained hashrate without overheating your computer or making it unstable.

All 1,000 questions

MyAiMiner.com

MyAiMiner.com — Monero mining blog. 1,000 questions. Clear answers.

Monero (XMR) Mining BLOG

Hashes0
Blocks accepted0
Blocks rejected0
Runtime00:00:00