fireice-uk / xmr-stak-cpu

Monero CPU miner
GNU General Public License v3.0
1.11k stars 478 forks source link

Hashrate on i7-6700K #382

Open Morgon opened 6 years ago

Morgon commented 6 years ago

I'm running an i7-6700K (4.2 GHz) with 32GB RAM.

XSC suggested running 4 threads - one per each physical core - and I'm hitting between 240-250 H/s, which is about 60 H/s per physical core. Several benchmark sites claim this should be getting 320+.

"cpu_threads_conf" :
[
    { "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 0 },
    { "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 2 },
    { "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 4 },
    { "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 6 },
],

When I change my affinity to add the secondary threads ('odd' cpu numbers), my per-core hashrate sinks (20-30 Hs/thread), overall performance drops (~185 H/s), and my system starts to get unstable.

The sad part is that I'm running XSC on other machines without CPU AES support and getting a higher hashrate. How do I take proper advantage of my hardware? I am using hwlock and I don't seem to have any other errors in relation to the miner.

otmezger commented 6 years ago

I have something similar, i7@2.2GHz giving 35-45 H/s per core. Benchmarks say I should get more.

Morgon commented 6 years ago

Changing no_prefetch to true has helped quite a bit. Average around 315 with spikes to 325.

chris-pang commented 6 years ago

I have 10 cpu i7-6700k (stock speed) & 32GB RAM and surprisingly all 9 getting around 355H/s which is more than the suggested hashrate and 1 getting only 320H/s

seems like chip performance though

antopenwright commented 6 years ago

Hi all not sure if this ever got solved i wanted to share what im getting after some tweaks

System i7-7700 - 4.2ghz have 4 cores 8 threads. - Note i only have 4gb ddr4 operational Settings "cpu_threads_conf" : [ { "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 0 }, { "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 4 }, { "low_power_mode" : false, "no_prefetch" : false, "affine_to_cpu" : 6 }, ], Hashrate | ID | 10s | 60s | 15m | ID | 10s | 60s | 15m | | 0 | 68.2 | (na) | (na) | 1 | 72.8 | (na) | (na) | | 2 | 70.6 | (na) | (na) | 3 | 70.9 | (na) | (na) |