How much does enabling huge pages increase hashrate?
Enabling huge pages can increase your Monero mining hashrate—the number of mining calculations your computer performs each second—by around 20% to 50% on many PCs and servers. Some setups gain less, while others can get close to doubling their speed, so treat those figures as a rough guide rather than a promise. The reliable answer for your machine comes from testing the same miner with huge pages off and on.
Why huge pages help RandomX
Monero uses RandomX, a mining algorithm, or set of calculations, designed to favor CPUs. Your CPU is your computer’s main processor.
RandomX repeatedly accesses a large amount of memory. Your operating system normally divides that memory into small chunks called pages, often just 4 KB each. Huge pages use much larger chunks, commonly 2 MB.
Your processor keeps a small lookup list of where memory pages are located. With larger pages, fewer entries cover the same amount of memory. That reduces time spent looking up memory locations and leaves more time for mining.
RandomX’s fast mode uses a dataset of about 2,080 MB, making this reduction in overhead especially useful. Huge pages do not make your processor’s clock speed faster; they help it spend less time on memory bookkeeping.
What changes the size of your gain?
The improvement depends on your starting setup, not just whether you have an expensive CPU.
Important factors include:
- Processor design: Different CPUs handle memory lookups differently.
- Mining thread count: Threads are separate streams of work. More threads can put more pressure on memory resources.
- Cache capacity: Cache is fast memory inside your CPU. RandomX generally needs about 2 MB of L3 cache per mining thread. Huge pages cannot make up for running far too many threads.
- Successful allocation: Turning on a setting does not guarantee the miner actually receives huge pages. Check its startup messages.
- Server memory placement: On servers with multiple CPU sockets, memory attached to another processor can be slower to access. Huge pages do not fix poor placement.
Also distinguish standard huge pages, usually 2 MB, from 1 GB pages. Moving from ordinary pages to 2 MB huge pages can deliver the large improvement described above. Moving from 2 MB to 1 GB pages typically adds only a small extra gain, often roughly 1% to 3% in supported RandomX setups.
How to measure your actual improvement
Use a native mining program’s benchmark—a built-in performance test—or compare steady mining speeds.
- Record your speed with huge pages disabled.
- Enable huge pages and confirm the miner reports successful allocation.
- Repeat with the same thread count, power settings, and background workload.
- Allow startup work to finish and temperatures to settle before comparing.
Calculate the increase as:
(New hashrate ÷ old hashrate − 1) × 100
For example, going from 4,000 to 5,200 hashes per second is a 30% increase. Those numbers are an illustration, not an earnings estimate.
If you mine inside a web browser, you generally cannot directly request the operating system’s huge-page support. Do not assume a browser miner will receive the same boost as a native RandomX miner.
The bottom line
Huge pages are often one of the most worthwhile performance settings for native Monero mining. A 20%–50% gain is a useful rough expectation, but verify that huge pages are actually active and measure your own result. Faster mining also does not automatically mean profitable mining; electricity still matters.
