Home

Why does XMRig say "dataset allocation failed"?

XMRig says “dataset allocation failed” when it cannot reserve the memory needed for Monero’s RandomX mining algorithm—the set of rules your computer follows to mine. The usual cause is too little available RAM, but memory limits, huge-page settings, or an extra dataset on a multi-processor system can also cause it.

What XMRig is trying to allocate

RandomX’s normal, fast mining mode needs a 2,080 MB dataset. This is a large collection of data that your processor repeatedly reads while mining. It also uses a 256 MB cache, a smaller working area used to prepare that dataset, plus other memory.

That means having “2 GB free” is not enough. Your operating system and other apps also need room. A computer with only 4 GB of total RAM can struggle, especially if you have a browser and several programs open.

The dataset is normally shared by mining threads, which are separate workers running on your processor. You do not need another 2,080 MB for every thread. However, XMRig may create extra datasets on systems with multiple memory regions, called NUMA nodes, to keep memory access fast.

Check available memory first

Look at your system’s memory use while XMRig starts, not just the amount of RAM installed.

Try these steps:

  • Close memory-heavy apps, browser tabs, virtual machines, and other miners.
  • Check that another XMRig process is not already running.
  • Restart your computer if memory remains heavily used after closing apps.
  • On a virtual machine or container, check its assigned memory limit. Your host computer may have plenty of RAM that XMRig cannot access.
  • Use an official 64-bit XMRig build with a supported 64-bit operating system. A 32-bit program has limited room for memory allocations.

A disabled or very small Windows page file—the disk space Windows uses to support memory management—can also contribute to allocation failures. Restoring system-managed settings may help. Still, disk space is not a performance substitute for enough physical RAM.

Don’t confuse this with a huge-page warning

Huge pages are larger-than-normal blocks of memory that can improve mining speed. A message saying huge pages are unavailable does not automatically mean the dataset allocation failed: XMRig can generally use ordinary memory pages instead.

Read the lines immediately before and after the error. They may identify a memory shortage, failed memory mapping, or a particular NUMA node.

If you changed huge-page settings, especially Linux’s optional 1 GB pages, temporarily return them to their defaults and test again. Reserved huge pages can also reduce the memory available for other allocations.

Running as administrator may help XMRig configure huge-page permissions on Windows, but it does not create more RAM or bypass every memory limit.

Options when your memory is limited

RandomX has a light mode that uses its 256 MB cache without keeping the full dataset in memory. In XMRig, you can test it with --randomx-mode=light. Expect substantially slower mining.

Reducing mining threads can save some working memory, but it does not shrink the shared dataset. On a multi-node system, --randomx-no-numa can reduce duplicate datasets, potentially at the cost of performance.

Download XMRig only from its official distribution channels. Avoid “allocation fix” downloads that ask you to disable security protections or pay a fee.

The bottom line

Start with free RAM and any virtual-machine or container limits. Then check nearby log messages and custom memory settings. If the full RandomX dataset simply will not fit, light mode is a slower fallback—not an earnings upgrade.

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