Home

Does monerod's built-in miner support RandomX huge pages?

Yes. monerod’s built-in miner supports huge pages for RandomX, Monero’s mining algorithm. It tries to use them automatically when your operating system makes them available, and it can fall back to ordinary memory pages if that allocation fails.

What huge pages do

monerod is the software that runs a Monero node: it checks blocks and transactions and maintains your copy of the blockchain. It also includes a basic CPU miner.

Your operating system divides memory into chunks called pages. Huge pages are larger chunks that reduce some of the bookkeeping needed when your processor accesses memory.

That matters for RandomX because mining involves frequent memory access. In its fast mode, RandomX uses a 2,080 MB dataset—a large collection of data used during mining—and a 256 MB cache used to build it.

Huge pages can improve your mining speed, but they do not change the mining rules or guarantee that you will find a block.

Support is automatic; availability is not

You do not normally need a special mining command to make the built-in miner try huge pages. The important distinction is between:

  • Miner support: monerod knows how to request huge pages.
  • System configuration: Your operating system must have suitable pages available and allow the process to use them.

On Linux, that usually means reserving enough huge pages through the system’s huge-page settings. For a typical configuration using 2 MB huge pages, 1,280 pages is a common starting point. That reserves about 2.5 GiB of RAM, so make sure your computer has enough memory left for the node and your other programs.

On Windows, large-page allocation generally requires the “Lock pages in memory” permission for the account running the miner. A sign-out or restart may be needed after changing that permission.

Support and setup differ across operating systems. Advice written for Linux does not necessarily apply to your computer.

How to check whether they are actually working

Starting the miner successfully does not prove that huge pages are in use. Normal-page fallback means mining can continue without them.

To check your setup:

  • Look at monerod’s startup and mining logs. More detailed logging may help reveal allocation failures.
  • On Linux, inspect /proc/meminfo before and after starting mining. Changes in the huge-page counters can help show whether reserved pages were allocated.
  • Compare sustained mining speed under the same conditions, allowing time for initialization.

System counters can include other programs, so they are evidence rather than a perfect per-process report.

Do not expect monerod to display the same huge-page status summary as XMRig, a separate mining program.

The bottom line

Your built-in monerod miner can use RandomX huge pages automatically, but your operating system must provide them. If huge pages are unavailable, mining can still work—just potentially more slowly. You do not need P2Pool or a different miner merely to get huge-page support.

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