Download Best Wallet
Download your #1 Monero wallet
Mining and RandomX

What is the difference between CPU threads and mining threads?

Configuring mining software requires understanding the difference between your CPU's capabilities and the actual settings used for mining.

Quick Answer

CPU threads are the logical units of execution provided by your hardware, whereas mining threads are the specific instances of the RandomX algorithm running on those units. Over-allocating mining threads can cause performance degradation because each thread requires a specific amount of cache and memory bandwidth to function efficiently.

Defining the Difference

Your operating system and hardware report a total number of logical CPU threads. However, RandomX is resource-intensive; running one mining thread per logical CPU thread often leads to 'cache contention.'

When threads compete for the same L3 cache, they slow each other down. Most users find that mining with fewer threads than the maximum available often yields higher total performance due to better cache utilization.

Optimizing Thread Count

The optimal number of threads depends on your CPU's L3 cache capacity. As a rule of thumb, ensure that the total number of mining threads respects the cache-per-thread requirements of the RandomX algorithm.

Experimenting with your specific CPU model is recommended to find the 'sweet spot' where hashing rate is maximized without causing system instability or thermal issues.

Sources

Related reading

Key takeaways

  • Do not automatically use every logical thread available.
  • Cache contention can lower mining efficiency.