fireice-uk / xmr-stak-amd

Monero AMD miner
GNU General Public License v3.0
193 stars 114 forks source link

Hashrate low on 6x4 Xeon CPU ?! #230

Open krrkrr opened 5 years ago

krrkrr commented 5 years ago

I'm on High Sierra (10.13.6) on a Mac Pro 5,1 with a dual Hexacore 2,66GHz Xeon... meaning 24 threads, plus a RX580.

I've noticed recently that my hashrate on the CPU is pretty low. When I first tried XMR STAK, one year before, I had 300 / 350 H/S on the CPU. Now I barely got 100/130 H/S ... with xmrr stak 10.0.4 ... what do I miss ? I first thought it was because of the hard forks, but I tried on some iMac (i5 form 2011 to 2013) and they got the same rate now than they had before (100 to 160 H/S) .. meaning some dual core i5 are doing better now than my Mac Pro with 24 GB of ram and 24 Threads ?! I've noticed that, now, XMR Stak is only using 50% of the CPU power... before it was 100% ... But it may have been months, as I was too busy to notice that.

My cpu.txt file is the one generated by XMR Stak...

`"cpu_threads_conf" : [ { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 0 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 4 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 6 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 8 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 10 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 12 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 14 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 16 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 18 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 20 }, { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 22 },

], `

I've tried to change prefetch and affine to cpu, that doesn't change anything. I've tried to add more threads... which only make the hashrate lower.

I've tried some video encoding, to check if my CPU got a pb... and they don't.

So, I guess there's something here in the settings, but I don't know what... can someone helps ?? Thanks you...

krrkrr commented 5 years ago

Weird: just to check, I've download the minergate cli... and I'm back to 320/370 H/S with the same parameters ... I don't get it.

Is there something wrong in XMR STAK with these Xeon X5650 ? Is it because of macOS ? ... I have no idea !!

krrkrr commented 5 years ago

anyone ?

psychocrypt commented 5 years ago

please post the output of the miner (from the start), do not remove any line I need all output (first 20 seconds)

krrkrr commented 5 years ago

Ok, here you are, mining with CPU and GPU (R9 380)

[2019-04-16 23:28:01] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:02] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:02] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:03] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:04] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt'

xmr-stak 2.10.4 a5b8fb741

Brought to you by fireice_uk and psychocrypt under GPLv3. Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk). Based on OpenCL mining code by wolf9466.

Configurable dev donation level is set to 2.0%


You can use following keys to display reports: 'h' - hashrate 'r' - results 'c' - connection

Upcoming xmr-stak-gui is sponsored by:

__ ____

| __ \ / \

#| |/ / | / \/

|| #| /| | | | / \ | | | | | || '|| '|/ | ' \ / __|| | | |

| |\ | || || () || _/| || || | | | | /| | | || ( | || |

_| _|_, | _/ __/ __,||| || _||| || _| __, |

/ | / |
              |___/   https://ryo-currency.com                       |___/

This currency is a way for us to implement the ideas that we were unable to in Monero. See https://github.com/fireice-uk/cryptonote-speedup-demo for details.

[2019-04-16 23:28:04] : Mining coin: cryptonight_r [2019-04-16 23:28:04] : Compiling code and initializing GPUs. This will take a while... [2019-04-16 23:28:04] : WARNING: using non AMD device: Apple [2019-04-16 23:28:04] : Device 0 work size 8 / 32. [2019-04-16 23:28:04] : OpenCL device 0 - Load precompiled code from file /Users/insextcl/.openclcache/82c043a795c30887982d7e6dfad71269ca3392fde850e0142af3b592bb37275f.openclbin [2019-04-16 23:28:04] : Device 0 work size 8 / 32. [2019-04-16 23:28:04] : OpenCL device 0 - Load precompiled code from file /Users/insextcl/.openclcache/82c043a795c30887982d7e6dfad71269ca3392fde850e0142af3b592bb37275f.openclbin [2019-04-16 23:28:04] : Starting AMD GPU (OpenCL) thread 0, no affinity. [2019-04-16 23:28:04] : Starting AMD GPU (OpenCL) thread 1, no affinity. [2019-04-16 23:28:05] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:06] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:06] : CPU configuration stored in file 'cpu.txt' [2019-04-16 23:28:06] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:06] : Starting 1x thread, affinity: 0. [2019-04-16 23:28:06] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:06] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:06] : Starting 1x thread, affinity: 2. [2019-04-16 23:28:06] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:06] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:06] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:06] : Starting 1x thread, affinity: 4. [2019-04-16 23:28:07] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:07] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:07] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:07] : Starting 1x thread, affinity: 6. [2019-04-16 23:28:08] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:08] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:08] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:08] : Starting 1x thread, affinity: 8. [2019-04-16 23:28:09] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:09] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:09] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:09] : Starting 1x thread, affinity: 10. [2019-04-16 23:28:09] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:09] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:09] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:09] : Starting 1x thread, affinity: 12. [2019-04-16 23:28:10] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:10] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:10] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:10] : Starting 1x thread, affinity: 14. [2019-04-16 23:28:11] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:11] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:11] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:11] : Starting 1x thread, affinity: 16. [2019-04-16 23:28:12] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:12] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:12] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:12] : Starting 1x thread, affinity: 18. [2019-04-16 23:28:12] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:12] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:12] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:12] : Starting 1x thread, affinity: 20. [2019-04-16 23:28:13] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:13] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:13] : WARNING on macOS thread affinity is only advisory. [2019-04-16 23:28:13] : Starting 1x thread, affinity: 22. [2019-04-16 23:28:14] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:14] : hwloc: set_thisthread_membind not supported [2019-04-16 23:28:15] : MEMORY ALLOC FAILED: mmap failed, check attribute 'use_slow_memory' in 'config.txt' [2019-04-16 23:28:15] : Fast-connecting to pool.supportxmr.com:7777 pool ... [2019-04-16 23:28:16] : Fast-connecting to mine.moneropool.com:7777 pool ... [2019-04-16 23:28:16] : Pool pool.supportxmr.com:7777 connected. Logging in... [2019-04-16 23:28:16] : Pool mine.moneropool.com:7777 connected. Logging in... [2019-04-16 23:28:17] : Difficulty changed. Now: 40000. [2019-04-16 23:28:17] : Pool logged in. [2019-04-16 23:28:27] : Difficulty changed. Now: 58537. [2019-04-16 23:28:27] : New block detected. [2019-04-16 23:29:27] : Difficulty changed. Now: 39025. [2019-04-16 23:29:27] : New block detected. [2019-04-16 23:29:27] : New block detected. [2019-04-16 23:30:27] : Difficulty changed. Now: 26017. [2019-04-16 23:30:27] : New block detected. [2019-04-16 23:30:31] : OpenCL Interleave 0|1: 1181/2986.18 ms - 40.1 [2019-04-16 23:31:20] : New block detected. [2019-04-16 23:31:23] : OpenCL Interleave 0|0: 1197/2987.85 ms - 40.2 [2019-04-16 23:31:24] : OpenCL Interleave 0|1: 809/2842.17 ms - 40.2 [2019-04-16 23:31:26] : OpenCL Interleave 0|0: 427/2864.25 ms - 40.2 [2019-04-16 23:31:27] : Difficulty changed. Now: 17345. [2019-04-16 23:31:27] : New block detected. [2019-04-16 23:31:29] : Result accepted by the pool. [2019-04-16 23:31:30] : OpenCL Interleave 0|0: 1099/2935.84 ms - 40.3 [2019-04-16 23:31:32] : OpenCL Interleave 0|1: 644/2809.05 ms - 40.4 [2019-04-16 23:31:34] : OpenCL Interleave 0|0: 242/2841.85 ms - 40.4 [2019-04-16 23:31:54] : Result accepted by the pool. HASHRATE REPORT - CPU | ID | 10s | 60s | 15m | ID | 10s | 60s | 15m | | 0 | 8.6 | 8.7 | (na) | 1 | 8.5 | 8.7 | (na) | | 2 | 8.5 | 8.7 | (na) | 3 | 8.6 | 8.7 | (na) | | 4 | 8.6 | 8.7 | (na) | 5 | 8.6 | 8.7 | (na) | | 6 | 8.6 | 8.7 | (na) | 7 | 8.4 | 8.6 | (na) | | 8 | 8.6 | 8.7 | (na) | 9 | 8.6 | 8.7 | (na) | | 10 | 8.5 | 8.6 | (na) | 11 | 8.5 | 8.6 | (na) | Totals (CPU): 102.4 104.2 0.0 H/s

HASHRATE REPORT - AMD | ID | 10s | 60s | 15m | ID | 10s | 60s | 15m | | 0 | 127.1 | 118.5 | (na) | 1 | 122.9 | 135.4 | (na) | Totals (AMD): 250.0 253.9 0.0 H/s

Totals (ALL): 352.4 358.1 0.0 H/s Highest: 397.9 H/s

krrkrr commented 5 years ago

as you can see, CPU mine at -/+100 H/s ... with the minergate miner, I easily got 330... and sometimes 400 H/s ... on the same machine (but no GPU on MG, of course). I tried to laucnh MG on the CPU and xmr stak on the GPU, and bingo .. 250/270 H/S on GPU plus 330 to 400 h/s on CPU. But, of course, I'm not fine with MG, I'd rather like to use XMR all the way.

psychocrypt commented 5 years ago

please try to set in cpu.txt the asm option to "intel_avx" it could be that the auto detection not work correct under osx or your cpu has no avx

krrkrr commented 5 years ago

doing it rite now.

aaaaaaaand that's it !!! back to 300+ H/s on CPU with xmr stak !!! nice !

would it be because it's Xeon CPU ? and no i5/i7 ... as AVX was introduced in 2008, the first mac pro can't have it, that's right but the 2010/2012 edition, they have it for sure... and it explains why I had so little success with MP1,1 to 3,1 with mining when I did some tests two years ago.

psychocrypt commented 5 years ago

we are using information from the processor directly but maybe osx is overwriting it and therefore the detection is not working. Since nobody of us has a mac we are not able to test osx stuff.

krrkrr commented 5 years ago

well, I can spare some time to test stuff if you want ? I got MacPro 1,1 and 5,1 ... iMac from 2010 to 2015... Retina 2012 and 2013.. some Mac minis ...