WyvernTKC / cpuminer-gr-avx2

Optimised Version of GR miner for RTM
GNU General Public License v2.0
371 stars 193 forks source link

wrong thread usage #100

Closed GuilhermeLessa closed 3 years ago

GuilhermeLessa commented 3 years ago

My CPU is a Ryzen 7 5700g with 16 threads.

When i configure json with 16, or fix 0 zero, my CPU usage oscile between 70 and sometimes 100%;

When i overload threads json configuration, like 24 or 32, so cpu usage aways do 100%.

Theres somethink wrong with this threads manager.

Images 16 THREADS 70% USAGE: https://drive.google.com/file/d/1Szj5jQZ0ehAt5x1_yJm8-CvXAMHpE42K/view?usp=sharing

24 THREADS FULL CPU USED https://drive.google.com/file/d/1GJ4fULO0Yefa1pYG-Vvmq5-do8OWd9ch/view?usp=sharing

michal-zurkowski commented 3 years ago

Did you benchmark it to get those hashrates? Either benchmark (or run the miner for at least 24h which is not only comparable but good enough). Include benchmark results.

Miner is doing its job properly. It is getting you the most amount of hashrate there is. APUs from AMD has cut down cache size which means they need to have some threads disabled on some of the heavier rotations. In those cases, fewer threads = more hash rate. This is mostly done on Intels, Zen/Zen+ and AMD APUs (this is what you have). When you increase the number of threads you are overloading the CPU making it perform much worse.

GuilhermeLessa commented 3 years ago

Yes, i agree.

I saw that hashrate is better when cpu usage oscile in 70% then is 100%.