The single setting that most affects a CPU miner is the thread count. Too few and you leave hashrate on the table; too many and the whole PC becomes sluggish for no extra reward. Here is a methodical way to find the right number for your specific processor.

Step 1: Find out how many threads you have

On Windows, open Task Manager, go to the Performance tab, and read the Logical processors count. On Linux, run nproc. That number is your ceiling. A modern CPU might report 8, 16, or 32 logical threads.

Step 2: Start at half

Set the miner thread count to half your logical processors. On a 16-thread chip, start at 8. Run the miner for ten minutes and note the steady hashrate once it has settled.

Step 3: Step up and compare

Increase by one or two threads, restart the miner, and let it settle again for ten minutes. Record the new hashrate. Keep stepping up. You will usually see hashrate climb, then plateau, then sometimes fall as the threads start fighting over memory bandwidth and cache.

Step 4: Watch for the cache wall

Malairte hashing is memory-hard, so it leans heavily on CPU cache and memory bandwidth, not just core count. On many CPUs the best hashrate comes well short of using every thread, because beyond a point the cores starve each other. The plateau or dip you found in step 3 is that wall.

Step 5: Leave headroom for the system

Even if maximum hashrate comes at full threads, back off by at least one or two so the operating system, your browser, and background tasks stay responsive. Mining at 14 of 16 threads is far more pleasant to live with than 16 of 16.

Step 6: Verify responsiveness

  • Open a few browser tabs and scroll - any stutter means too many threads.
  • Move windows around the desktop - lag means back off.
  • Check CPU temperature stays in a safe range under sustained load.

Step 7: Save the winning number

Write the chosen thread count into the miner config so it persists across restarts. Note it somewhere too, because if you upgrade the CPU later you will want to repeat this whole process from scratch.

A note on hyperthreading

Logical threads from hyperthreading do not always add proportional hashrate for memory-hard work. Do not assume doubling threads doubles output - measure it, because your CPU may prefer physical cores only.