fireice-uk / xmr-stak

Free Monero RandomX Miner and unified CryptoNight miner
GNU General Public License v3.0
4.05k stars 1.79k forks source link

Config option to limit CPU usage by the miner to a certain % #2545

Open ghost opened 4 years ago

ghost commented 4 years ago

I have some CPUs I'd like to prevent from getting too hot, so I thought I could limit the CPU usage of the miner using them. Is that possible through configs? I can't really find anything that helps reducing the mining power and such.

I've tried using "cpulimit -l percentage ./xmr-stak" to achieve this but this seems to REALLY hurt the hashrate in a non linear way since I assume it makes the miner give up on the current hash or something when told to respect the cpu usage? For example if I set the limit to 90%, the hash rate is ten times lower than how it would be without cpulimit.

jaredkaragen commented 4 years ago

depends on cpu being used; just free up some cores by editing the cpu.txt... it will be a hashrate cut roughly the same as the core count loss.