fireice-uk / xmr-stak-cpu

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

Half performance on dual Opteron 6276 as reported by others #236

Closed numerys closed 7 years ago

numerys commented 7 years ago

I'm trying to get the same performance as reported by monerobenchmarks.info for a Dual-Opteron 6276 machine.

My OS is Debian 9 Stretch. I've donwload and compiled the code as described in LINUXCOMPILE.md and the hashing starts well (except the hashrate is not satisfying).

My hashrate is shown as

Totals:   536.2 311.5 (na) H/s
Highest:  538.0 H/s

Never come up over 540 H/s.

What can I do to speed things up?

fireice-uk commented 7 years ago

@psychocrypt is getting 2058 H/s on a quad Opteron 6276. Are you using the suggested config? If so can you post it and the result of lstopo --of console

numerys commented 7 years ago

config.txt

"cpu_threads_conf" :
[
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 8 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 9 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 10 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 11 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 13 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 16 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 17 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 18 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 19 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 20 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 21 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 22 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 23 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 24 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 25 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 26 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 27 },
],
"use_slow_memory" : "warn",
"nicehash_nonce" : false,
"aes_override" : true,
"use_tls" : false,
"tls_secure_algo" : true,
"tls_fingerprint" : "",
"pool_address" : "xmr.pool.minergate.com:45560",
"wallet_address" : "XXX@XXX.com",
"pool_password" : "",
"call_timeout" : 10,
"retry_time" : 1,
"giveup_limit" : 0,
"verbose_level" : 3,
"h_print_time" : 60,
"daemon_mode" : false,
"output_file" : "",
"httpd_port" : 8080,
"prefer_ipv4" : true,    

lstopo --of console

Machine (7982MB total)
  Package L#0
    NUMANode L#0 (P#0 3953MB)
      L3 L#0 (6144KB)
        L2 L#0 (2048KB) + L1i L#0 (64KB)
          L1d L#0 (16KB) + Core L#0 + PU L#0 (P#0)
          L1d L#1 (16KB) + Core L#1 + PU L#1 (P#1)
        L2 L#1 (2048KB) + L1i L#1 (64KB)
          L1d L#2 (16KB) + Core L#2 + PU L#2 (P#2)
          L1d L#3 (16KB) + Core L#3 + PU L#3 (P#3)
        L2 L#2 (2048KB) + L1i L#2 (64KB)
          L1d L#4 (16KB) + Core L#4 + PU L#4 (P#4)
          L1d L#5 (16KB) + Core L#5 + PU L#5 (P#5)
        L2 L#3 (2048KB) + L1i L#3 (64KB)
          L1d L#6 (16KB) + Core L#6 + PU L#6 (P#6)
          L1d L#7 (16KB) + Core L#7 + PU L#7 (P#7)
      HostBridge L#0
        PCIBridge
          PCI 8086:10c9
            Net L#0 "enp5s0f0"
          PCI 8086:10c9
            Net L#1 "enp5s0f1"
        PCIBridge
          PCI 8086:10c9
            Net L#2 "enp4s0f0"
          PCI 8086:10c9
            Net L#3 "enp4s0f1"
        PCIBridge
          PCI 102b:0522
            GPU L#4 "card0"
            GPU L#5 "controlD64"
        PCIBridge
          PCI 103c:323a
        PCI 1002:4391
        PCI 1002:439c
    NUMANode L#1 (P#1) + L3 L#1 (6144KB)
      L2 L#4 (2048KB) + L1i L#4 (64KB)
        L1d L#8 (16KB) + Core L#8 + PU L#8 (P#8)
        L1d L#9 (16KB) + Core L#9 + PU L#9 (P#9)
      L2 L#5 (2048KB) + L1i L#5 (64KB)
        L1d L#10 (16KB) + Core L#10 + PU L#10 (P#10)
        L1d L#11 (16KB) + Core L#11 + PU L#11 (P#11)
      L2 L#6 (2048KB) + L1i L#6 (64KB)
        L1d L#12 (16KB) + Core L#12 + PU L#12 (P#12)
        L1d L#13 (16KB) + Core L#13 + PU L#13 (P#13)
      L2 L#7 (2048KB) + L1i L#7 (64KB)
        L1d L#14 (16KB) + Core L#14 + PU L#14 (P#14)
        L1d L#15 (16KB) + Core L#15 + PU L#15 (P#15)
  Package L#1
    NUMANode L#2 (P#2 4028MB) + L3 L#2 (6144KB)
      L2 L#8 (2048KB) + L1i L#8 (64KB)
        L1d L#16 (16KB) + Core L#16 + PU L#16 (P#16)
        L1d L#17 (16KB) + Core L#17 + PU L#17 (P#17)
      L2 L#9 (2048KB) + L1i L#9 (64KB)
        L1d L#18 (16KB) + Core L#18 + PU L#18 (P#18)
        L1d L#19 (16KB) + Core L#19 + PU L#19 (P#19)
      L2 L#10 (2048KB) + L1i L#10 (64KB)
        L1d L#20 (16KB) + Core L#20 + PU L#20 (P#20)
        L1d L#21 (16KB) + Core L#21 + PU L#21 (P#21)
      L2 L#11 (2048KB) + L1i L#11 (64KB)
        L1d L#22 (16KB) + Core L#22 + PU L#22 (P#22)
        L1d L#23 (16KB) + Core L#23 + PU L#23 (P#23)
    NUMANode L#3 (P#3) + L3 L#3 (6144KB)
      L2 L#12 (2048KB) + L1i L#12 (64KB)
        L1d L#24 (16KB) + Core L#24 + PU L#24 (P#24)
        L1d L#25 (16KB) + Core L#25 + PU L#25 (P#25)
      L2 L#13 (2048KB) + L1i L#13 (64KB)
        L1d L#26 (16KB) + Core L#26 + PU L#26 (P#26)
        L1d L#27 (16KB) + Core L#27 + PU L#27 (P#27)
      L2 L#14 (2048KB) + L1i L#14 (64KB)
        L1d L#28 (16KB) + Core L#28 + PU L#28 (P#28)
        L1d L#29 (16KB) + Core L#29 + PU L#29 (P#29)
      L2 L#15 (2048KB) + L1i L#15 (64KB)
        L1d L#30 (16KB) + Core L#30 + PU L#30 (P#30)
        L1d L#31 (16KB) + Core L#31 + PU L#31 (P#31)]
psychocrypt commented 7 years ago

@gvgit is the config you posted the suggested config or do you created it by hand?

numerys commented 7 years ago

The config.txt is created by myself.

[send by mobile device]

Am 21.07.2017 8:14 nachm. schrieb "psychocrypt" notifications@github.com:

@gvgit https://github.com/gvgit is the config you posted the suggested config or do you created it by hand?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak-cpu/issues/236#issuecomment-317074201, or mute the thread https://github.com/notifications/unsubscribe-auth/AQUJAYM1_QHk8jcremgNVZldTleBvzayks5sQOptgaJpZM4OfoOk .

psychocrypt commented 7 years ago

Please remove your thread config with "cpu_threads_conf" : null, and restart the miner. The miner will show a auto generated config. This config should give you the full performance.

fireice-uk commented 7 years ago

Closing as the problem is user-generated.

numerys commented 7 years ago

OK, I've done so:

$ ./xmr-stak-cpu config.txt 
The configuration for 'cpu_threads_conf' in your config file is 'null'.
The miner evaluates your system and prints a suggestion for the section `cpu_threads_conf` to the terminal.
The values are not optimal, please try to tweak the values based on notes in config.txt.
Please copy & paste the block within the asterisks to your config.

**************** Copy&Paste BEGIN ****************

"cpu_threads_conf" :
[
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 8 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 9 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 10 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 11 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 13 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 16 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 17 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 18 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 19 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 20 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 21 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 22 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 24 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 25 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 26 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 27 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 28 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 29 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 30 },
],

**************** Copy&Paste END ****************

And my config.txt looks like

"cpu_threads_conf" :
[
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 8 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 9 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 10 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 11 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 13 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 16 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 17 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 18 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 19 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 20 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 21 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 22 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 24 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 25 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 26 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 27 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 28 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 29 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 30 },
],
"use_slow_memory" : "warn",
"aes_override" : true,
"use_tls" : false,
"tls_secure_algo" : true,
"tls_fingerprint" : "",
"pool_address" : "xmr.pool.minergate.com:45560",
"wallet_address" : "wilmabegaywb@gmx.com",
"pool_password" : "",
"call_timeout" : 10,
"retry_time" : 1,
"giveup_limit" : 0,
"h_print_time" : 60,
"daemon_mode" : false,
"output_file" : "",
"httpd_port" : 8080,
"prefer_ipv4" : true,

When I start the miner I got a hashrate around 630 H/s. This is better but still not ~1000 H/s. What else could I do?

$ ./xmr-stak-cpu config.txt 
[2017-07-21 22:14:33] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:33] : MEMORY ALLOC FAILED: mmap failed
-------------------------------------------------------------------
xmr-stak-cpu 1.3.0-1.5.0 mining software, CPU Version.
Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).
Brought to you by fireice_uk and psychocrypt under GPLv3.

Configurable dev donation level is set to 2.0 %

You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
[2017-07-21 22:14:33] : Starting single thread, affinity: 0.
[2017-07-21 22:14:33] : Starting single thread, affinity: 1.
[2017-07-21 22:14:33] : Starting single thread, affinity: 2.
[2017-07-21 22:14:33] : Starting single thread, affinity: 3.
[2017-07-21 22:14:33] : Starting single thread, affinity: 4.
[2017-07-21 22:14:33] : Starting single thread, affinity: 5.
[2017-07-21 22:14:33] : Starting single thread, affinity: 6.
[2017-07-21 22:14:33] : Starting single thread, affinity: 8.
[2017-07-21 22:14:33] : Starting single thread, affinity: 9.
[2017-07-21 22:14:33] : Starting single thread, affinity: 10.
[2017-07-21 22:14:33] : Starting single thread, affinity: 11.
[2017-07-21 22:14:33] : Starting single thread, affinity: 12.
[2017-07-21 22:14:33] : Starting single thread, affinity: 13.
[2017-07-21 22:14:33] : Starting single thread, affinity: 14.
[2017-07-21 22:14:33] : Starting single thread, affinity: 16.
[2017-07-21 22:14:33] : Starting single thread, affinity: 17.
[2017-07-21 22:14:33] : Starting single thread, affinity: 18.
[2017-07-21 22:14:33] : Starting single thread, affinity: 19.
[2017-07-21 22:14:33] : Starting single thread, affinity: 20.
[2017-07-21 22:14:33] : Starting single thread, affinity: 21.
[2017-07-21 22:14:33] : Starting single thread, affinity: 22.
[2017-07-21 22:14:33] : Starting single thread, affinity: 24.
[2017-07-21 22:14:33] : Starting single thread, affinity: 25.
[2017-07-21 22:14:33] : Starting single thread, affinity: 26.
[2017-07-21 22:14:33] : Starting single thread, affinity: 27.
[2017-07-21 22:14:33] : Starting single thread, affinity: 28.
[2017-07-21 22:14:33] : Starting single thread, affinity: 29.
[2017-07-21 22:14:33] : Starting single thread, affinity: 30.
[2017-07-21 22:14:33] : Connecting to pool xmr.pool.minergate.com:45560 ...
[2017-07-21 22:14:33] : Connected. Logging in...
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : hwloc: memory pinned
[2017-07-21 22:14:34] : hwloc: can't bind memory
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : MEMORY ALLOC FAILED: mmap failed
[2017-07-21 22:14:34] : Difficulty changed. Now: 1063.
[2017-07-21 22:14:34] : New block detected.
[2017-07-21 22:14:34] : Result accepted by the pool.
[2017-07-21 22:14:36] : Result accepted by the pool.
[2017-07-21 22:14:38] : Result accepted by the pool.
[2017-07-21 22:14:38] : Result accepted by the pool.
[2017-07-21 22:14:39] : Result accepted by the pool.
[2017-07-21 22:14:39] : Result accepted by the pool.
[2017-07-21 22:14:39] : Result accepted by the pool.
[2017-07-21 22:14:42] : Result accepted by the pool.
HASHRATE REPORT
| ID | 2.5s |  60s |  15m | ID | 2.5s |  60s |  15m |
|  0 | 21.3 | (na) | (na) |  1 | 21.8 | (na) | (na) |
|  2 | 21.5 | (na) | (na) |  3 | 21.7 | (na) | (na) |
|  4 | 21.2 | (na) | (na) |  5 | 22.1 | (na) | (na) |
|  6 | 30.4 | (na) | (na) |  7 | 21.4 | (na) | (na) |
|  8 | 20.9 | (na) | (na) |  9 | 21.4 | (na) | (na) |
| 10 | 21.4 | (na) | (na) | 11 | 21.2 | (na) | (na) |
| 12 | 22.3 | (na) | (na) | 13 | 27.5 | (na) | (na) |
| 14 | 22.3 | (na) | (na) | 15 | 22.3 | (na) | (na) |
| 16 | 21.3 | (na) | (na) | 17 | 23.3 | (na) | (na) |
| 18 | 22.7 | (na) | (na) | 19 | 22.8 | (na) | (na) |
| 20 | 32.5 | (na) | (na) | 21 | 19.5 | (na) | (na) |
| 22 | 19.5 | (na) | (na) | 23 | 20.6 | (na) | (na) |
| 24 | 21.2 | (na) | (na) | 25 | 19.4 | (na) | (na) |
| 26 | 19.9 | (na) | (na) | 27 | 26.2 | (na) | (na) |
-----------------------------------------------------
Totals:   629.8 (na) (na) H/s
Highest:  630.7 H/s

What looks weird is MEMORY ALLOC FAILED: mmap failed. Could this be my problem?

numerys commented 7 years ago

@fireice-uk is it possible to reopen the thread?

psychocrypt commented 7 years ago

I tested the current release again on the quad socket Opteron system and I get 2055H/s.

@gvgit MEMORY ALLOC FAILED: mmap failed should not be the problem, my system is also showing this warning. Do you running some other tasks on the some system? Is the system a virtual machine?

psychocrypt commented 7 years ago

@gvgit Could it be that you poll difficulty is to low, your output shows 1036. I think you are finding to fast shares and this slow down the hash rate. Please do NOT use the xmr.pool.minergate.com:45560", Please switch the pool and report if the has rate is increasing.

numerys commented 7 years ago

No, it's a clean Debian 9 installation. It's a Proliant DL165 with 2 Opterons 6276 and 8GB Memory and no HD (boot via ethernet).

Am 21.07.2017 10:50 nachm. schrieb "psychocrypt" notifications@github.com:

I tested the current release again on the quad socket Opteron system and I get 2055H/s.

@gvgit https://github.com/gvgit MEMORY ALLOC FAILED: mmap failed should not be the problem, my system is also showing this warning. Do you running some other tasks on the some system? Is the system a virtual machine?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak-cpu/issues/236#issuecomment-317109209, or mute the thread https://github.com/notifications/unsubscribe-auth/AQUJARz5jm12sUQ6DoOYX05Qso5sJAPgks5sQQ8SgaJpZM4OfoOk .

numerys commented 7 years ago

I will so. Tomorrow I will change the pool and post here. Can you let the thread open? I will repost after testing several pools and show my results. Thanks a ton for your help.

Am 21.07.2017 10:53 nachm. schrieb "psychocrypt" notifications@github.com:

@gvgit https://github.com/gvgit Could it be that you poll difficulty is to low, your output shows 1036. I think you are finding to fast shares and this slow down the hash rate. Please do not use the xmr.pool.minergate.com:45560", Please switch the pool and report if the has rate is increasing.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/fireice-uk/xmr-stak-cpu/issues/236#issuecomment-317109933, or mute the thread https://github.com/notifications/unsubscribe-auth/AQUJAXml5skJOspLHuvMkCiDNzMgvVANks5sQQ_YgaJpZM4OfoOk .

psychocrypt commented 7 years ago

A second point is: It looks like you are using only one RAM-DIMM per socket. This is the reason for the message hwloc: can't bind memory that is coming from the half of the threads. The Opteron has two memory channels per socket, you need at least 4 Memory DIMMs to get the full memory bandwidth.

Both the missing DIMMS and minergate can be the source of the low hash rate.

numerys commented 7 years ago

Now my hashrate is higher at ~700H/s. But still to low.

I've put 4 RAM-DIMMs into the machine, each channel one DIMM.

$ lstopo --of console
Machine (16GB total)
  Package L#0
    NUMANode L#0 (P#0 3964MB)
      L3 L#0 (6144KB)
        L2 L#0 (2048KB) + L1i L#0 (64KB)
          L1d L#0 (16KB) + Core L#0 + PU L#0 (P#0)
          L1d L#1 (16KB) + Core L#1 + PU L#1 (P#1)
        L2 L#1 (2048KB) + L1i L#1 (64KB)
          L1d L#2 (16KB) + Core L#2 + PU L#2 (P#2)
          L1d L#3 (16KB) + Core L#3 + PU L#3 (P#3)
        L2 L#2 (2048KB) + L1i L#2 (64KB)
          L1d L#4 (16KB) + Core L#4 + PU L#4 (P#4)
          L1d L#5 (16KB) + Core L#5 + PU L#5 (P#5)
        L2 L#3 (2048KB) + L1i L#3 (64KB)
          L1d L#6 (16KB) + Core L#6 + PU L#6 (P#6)
          L1d L#7 (16KB) + Core L#7 + PU L#7 (P#7)
      HostBridge L#0
        PCIBridge
          PCI 8086:10c9
            Net L#0 "enp5s0f0"
          PCI 8086:10c9
            Net L#1 "enp5s0f1"
        PCIBridge
          PCI 8086:10c9
            Net L#2 "enp4s0f0"
          PCI 8086:10c9
            Net L#3 "enp4s0f1"
        PCIBridge
          PCI 102b:0522
            GPU L#4 "card0"
            GPU L#5 "controlD64"
        PCIBridge
          PCI 103c:323a
        PCI 1002:4391
        PCI 1002:439c
    NUMANode L#1 (P#1 4031MB) + L3 L#1 (6144KB)
      L2 L#4 (2048KB) + L1i L#4 (64KB)
        L1d L#8 (16KB) + Core L#8 + PU L#8 (P#8)
        L1d L#9 (16KB) + Core L#9 + PU L#9 (P#9)
      L2 L#5 (2048KB) + L1i L#5 (64KB)
        L1d L#10 (16KB) + Core L#10 + PU L#10 (P#10)
        L1d L#11 (16KB) + Core L#11 + PU L#11 (P#11)
      L2 L#6 (2048KB) + L1i L#6 (64KB)
        L1d L#12 (16KB) + Core L#12 + PU L#12 (P#12)
        L1d L#13 (16KB) + Core L#13 + PU L#13 (P#13)
      L2 L#7 (2048KB) + L1i L#7 (64KB)
        L1d L#14 (16KB) + Core L#14 + PU L#14 (P#14)
        L1d L#15 (16KB) + Core L#15 + PU L#15 (P#15)
  Package L#1
    NUMANode L#2 (P#2 4020MB) + L3 L#2 (6144KB)
      L2 L#8 (2048KB) + L1i L#8 (64KB)
        L1d L#16 (16KB) + Core L#16 + PU L#16 (P#16)
        L1d L#17 (16KB) + Core L#17 + PU L#17 (P#17)
      L2 L#9 (2048KB) + L1i L#9 (64KB)
        L1d L#18 (16KB) + Core L#18 + PU L#18 (P#18)
        L1d L#19 (16KB) + Core L#19 + PU L#19 (P#19)
      L2 L#10 (2048KB) + L1i L#10 (64KB)
        L1d L#20 (16KB) + Core L#20 + PU L#20 (P#20)
        L1d L#21 (16KB) + Core L#21 + PU L#21 (P#21)
      L2 L#11 (2048KB) + L1i L#11 (64KB)
        L1d L#22 (16KB) + Core L#22 + PU L#22 (P#22)
        L1d L#23 (16KB) + Core L#23 + PU L#23 (P#23)
    NUMANode L#3 (P#3 4031MB) + L3 L#3 (6144KB)
      L2 L#12 (2048KB) + L1i L#12 (64KB)
        L1d L#24 (16KB) + Core L#24 + PU L#24 (P#24)
        L1d L#25 (16KB) + Core L#25 + PU L#25 (P#25)
      L2 L#13 (2048KB) + L1i L#13 (64KB)
        L1d L#26 (16KB) + Core L#26 + PU L#26 (P#26)
        L1d L#27 (16KB) + Core L#27 + PU L#27 (P#27)
      L2 L#14 (2048KB) + L1i L#14 (64KB)
        L1d L#28 (16KB) + Core L#28 + PU L#28 (P#28)
        L1d L#29 (16KB) + Core L#29 + PU L#29 (P#29)
      L2 L#15 (2048KB) + L1i L#15 (64KB)
        L1d L#30 (16KB) + Core L#30 + PU L#30 (P#30)
        L1d L#31 (16KB) + Core L#31 + PU L#31 (P#31)

I've changed the pool.

$ cat config.txt 
"cpu_threads_conf" :
[
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 5 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 6 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 8 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 9 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 10 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 11 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 13 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 16 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 17 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 18 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 19 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 20 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 21 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 22 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 24 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 25 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 26 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 27 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 28 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 29 },
    { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 30 },
],
"use_slow_memory" : "warn",
"nicehash_nonce" : false,
"aes_override" : true,
"use_tls" : false,
"tls_secure_algo" : true,
"tls_fingerprint" : "",
"pool_address" : "pool.supportxmr.com:5555",
"wallet_address" : "ZZZ",
"pool_password" : "XXX",
"call_timeout" : 10,
"retry_time" : 1,
"giveup_limit" : 0,
"verbose_level" : 3,
"h_print_time" : 60,
"daemon_mode" : false,
"output_file" : "",
"httpd_port" : 8080,
"prefer_ipv4" : true,

The difficulity changed to 5000.

$ ./xmr-stak-cpu config.txt 
[2017-07-22 12:28:47] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:47] : MEMORY ALLOC FAILED: mmap failed
-------------------------------------------------------------------
xmr-stak-cpu 1.3.0-1.5.0 mining software, CPU Version.
Based on CPU mining code by wolf9466 (heavily optimized by fireice_uk).
Brought to you by fireice_uk and psychocrypt under GPLv3.

Configurable dev donation level is set to 2.0 %

You can use following keys to display reports:
'h' - hashrate
'r' - results
'c' - connection
-------------------------------------------------------------------
[2017-07-22 12:28:48] : Starting single thread, affinity: 0.
[2017-07-22 12:28:48] : Starting single thread, affinity: 1.
[2017-07-22 12:28:48] : Starting single thread, affinity: 2.
[2017-07-22 12:28:48] : Starting single thread, affinity: 3.
[2017-07-22 12:28:48] : Starting single thread, affinity: 4.
[2017-07-22 12:28:48] : Starting single thread, affinity: 5.
[2017-07-22 12:28:48] : Starting single thread, affinity: 6.
[2017-07-22 12:28:48] : Starting single thread, affinity: 8.
[2017-07-22 12:28:48] : Starting single thread, affinity: 9.
[2017-07-22 12:28:48] : Starting single thread, affinity: 10.
[2017-07-22 12:28:48] : Starting single thread, affinity: 11.
[2017-07-22 12:28:48] : Starting single thread, affinity: 12.
[2017-07-22 12:28:48] : Starting single thread, affinity: 13.
[2017-07-22 12:28:48] : Starting single thread, affinity: 14.
[2017-07-22 12:28:48] : Starting single thread, affinity: 16.
[2017-07-22 12:28:48] : Starting single thread, affinity: 17.
[2017-07-22 12:28:48] : Starting single thread, affinity: 18.
[2017-07-22 12:28:48] : Starting single thread, affinity: 19.
[2017-07-22 12:28:48] : Starting single thread, affinity: 20.
[2017-07-22 12:28:48] : Starting single thread, affinity: 21.
[2017-07-22 12:28:48] : Starting single thread, affinity: 22.
[2017-07-22 12:28:48] : Starting single thread, affinity: 24.
[2017-07-22 12:28:48] : Starting single thread, affinity: 25.
[2017-07-22 12:28:48] : Starting single thread, affinity: 26.
[2017-07-22 12:28:48] : Starting single thread, affinity: 27.
[2017-07-22 12:28:48] : Starting single thread, affinity: 28.
[2017-07-22 12:28:48] : Starting single thread, affinity: 29.
[2017-07-22 12:28:48] : Starting single thread, affinity: 30.
[2017-07-22 12:28:48] : Connecting to pool pool.supportxmr.com:5555 ...
[2017-07-22 12:28:48] : Connected. Logging in...
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : hwloc: memory pinned
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : MEMORY ALLOC FAILED: mmap failed
[2017-07-22 12:28:49] : Difficulty changed. Now: 5000.
[2017-07-22 12:28:49] : New block detected.
HASHRATE REPORT
| ID | 2.5s |  60s |  15m | ID | 2.5s |  60s |  15m |
|  0 | 23.2 | (na) | (na) |  1 | 23.2 | (na) | (na) |
|  2 | 23.3 | (na) | (na) |  3 | 23.3 | (na) | (na) |
|  4 | 23.8 | (na) | (na) |  5 | 23.5 | (na) | (na) |
|  6 | 33.4 | (na) | (na) |  7 | 23.5 | (na) | (na) |
|  8 | 23.5 | (na) | (na) |  9 | 23.5 | (na) | (na) |
| 10 | 23.5 | (na) | (na) | 11 | 23.5 | (na) | (na) |
| 12 | 23.5 | (na) | (na) | 13 | 34.0 | (na) | (na) |
| 14 | 23.7 | (na) | (na) | 15 | 24.0 | (na) | (na) |
| 16 | 23.6 | (na) | (na) | 17 | 23.6 | (na) | (na) |
| 18 | 23.6 | (na) | (na) | 19 | 23.6 | (na) | (na) |
| 20 | 35.3 | (na) | (na) | 21 | 23.8 | (na) | (na) |
| 22 | 23.8 | (na) | (na) | 23 | 23.6 | (na) | (na) |
| 24 | 24.3 | (na) | (na) | 25 | 23.9 | (na) | (na) |
| 26 | 23.9 | (na) | (na) | 27 | 35.4 | (na) | (na) |
-----------------------------------------------------
Totals:   704.5 (na) (na) H/s
Highest:  704.5 H/s

Could it be some BIOS tweak? Or something else like CPU-freq?

psychocrypt commented 7 years ago

Please check the the governor in linux is performance. Please also check if there are some pci express security features in the bios enabled, please disable the security features those canndecrease the mutithreading performance.

Do you have heating issues? Is the server mounted in a coled rack? What is the air flow temperature around the server?

numerys commented 7 years ago

I've loaded BIOS performance settings and changed the governor to performance too. Got 750 H/s.

What kind of OS/Kernel do you use?

numerys commented 7 years ago

I've found the issue. It was the kernel. The Debian9 standard kernel is not well suited for monero mining. I've tried it with arch linux and it's running well above 1000 H/s

pdelteil commented 6 years ago

You should get rid of the error "MEMORY ALLOC FAILED: mmap failed". To do that you should do:

sudo sysctl -w vm.nr_hugepages=128