Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug in CPU mining config? #2587

Open
Tualua opened this issue Dec 1, 2019 · 4 comments
Open

Bug in CPU mining config? #2587

Tualua opened this issue Dec 1, 2019 · 4 comments
Assignees
Labels
backend cpu bug randomX issue with xmr-stak-rx

Comments

@Tualua
Copy link

Tualua commented Dec 1, 2019

Hello!

My rig is 2xE5-2660v2 and 2x4GB RAM and xmr-stak-rx 1.0.1, Ubuntu 16.04

If I manually run xmr-stak-rx with testing it starts with 26 threads and hashrate is 2.2kH/s

If I close miner and restart it without pointing it to newly generated cpu.txt it starts same 26 threads but hashrate is only 1.2kH/s

So my question is how do I properly configure it?

How it looks with fresh start without cpu.txt

[2019-12-01 11:47:15] : Mining coin: randomx
[2019-12-01 11:47:16] : CPU configuration stored in file 'cpu.txt'
[2019-12-01 11:47:16] : Starting 1x thread, affinity: 0.
[2019-12-01 11:47:17] : hwloc: memory pinned
[2019-12-01 11:47:17] : Starting 1x thread, affinity: 1.
[2019-12-01 11:47:18] : Starting 1x thread, affinity: 2.
[2019-12-01 11:47:19] : Starting 1x thread, affinity: 3.
[2019-12-01 11:47:20] : Starting 1x thread, affinity: 4.
[2019-12-01 11:47:22] : Starting 1x thread, affinity: 5.
[2019-12-01 11:47:23] : hwloc: memory pinned
[2019-12-01 11:47:23] : Starting 1x thread, affinity: 6.
[2019-12-01 11:47:24] : Starting 1x thread, affinity: 7.
[2019-12-01 11:47:25] : Starting 1x thread, affinity: 8.
[2019-12-01 11:47:26] : Starting 1x thread, affinity: 9.
[2019-12-01 11:47:27] : Starting 1x thread, affinity: 20.
[2019-12-01 11:47:28] : Starting 1x thread, affinity: 21.
[2019-12-01 11:47:30] : Starting 1x thread, affinity: 22.
[2019-12-01 11:47:31] : Starting 1x thread, affinity: 10.
[2019-12-01 11:47:32] : Starting 1x thread, affinity: 11.
[2019-12-01 11:47:33] : hwloc: memory pinned
[2019-12-01 11:47:33] : Starting 1x thread, affinity: 12.
[2019-12-01 11:47:34] : Starting 1x thread, affinity: 13.
[2019-12-01 11:47:35] : hwloc: memory pinned
[2019-12-01 11:47:35] : Starting 1x thread, affinity: 14.
[2019-12-01 11:47:36] : Starting 1x thread, affinity: 15.
[2019-12-01 11:47:37] : hwloc: memory pinned
[2019-12-01 11:47:37] : Starting 1x thread, affinity: 16.
[2019-12-01 11:47:39] : Starting 1x thread, affinity: 17.
[2019-12-01 11:47:40] : Starting 1x thread, affinity: 18.
[2019-12-01 11:47:40] : Starting 1x thread, affinity: 19.
[2019-12-01 11:47:41] : Starting 1x thread, affinity: 30.
[2019-12-01 11:47:42] : Starting 1x thread, affinity: 31.
[2019-12-01 11:47:43] : Starting 1x thread, affinity: 32.
[2019-12-01 11:47:44] : Fast-connecting to fin01.supportxmr.com:7777 pool ...
[2019-12-01 11:47:44] : Fast-connecting to fr06.supportxmr.com:7777 pool ...
[2019-12-01 11:47:44] : Fast-connecting to fr01.supportxmr.com:7777 pool ...
[2019-12-01 11:47:45] : Fast-connecting to de01.supportxmr.com:7777 pool ...
[2019-12-01 11:47:45] : Pool fin01.supportxmr.com:7777 connected. Logging in...
[2019-12-01 11:47:45] : Pool fr06.supportxmr.com:7777 connected. Logging in...
[2019-12-01 11:47:45] : Pool de01.supportxmr.com:7777 connected. Logging in...
[2019-12-01 11:47:45] : Difficulty changed. Now: 200007.
[2019-12-01 11:47:45] : Pool logged in.
[2019-12-01 11:47:49] : New block detected.

Hashrate:

HASHRATE REPORT - CPU
| ID |    10s |    60s |    15m | ID |    10s |    60s |    15m |
|  0 |   87.5 |   (na) |   (na) |  1 |   87.3 |   (na) |   (na) |
|  2 |   87.1 |   (na) |   (na) |  3 |  103.3 |   (na) |   (na) |
|  4 |  104.4 |   (na) |   (na) |  5 |   63.7 |   (na) |   (na) |
|  6 |  103.7 |   (na) |   (na) |  7 |  104.1 |   (na) |   (na) |
|  8 |  103.5 |   (na) |   (na) |  9 |  104.5 |   (na) |   (na) |
| 10 |   87.7 |   (na) |   (na) | 11 |   87.3 |   (na) |   (na) |
| 12 |   87.1 |   (na) |   (na) | 13 |   61.1 |   (na) |   (na) |
| 14 |   88.6 |   (na) |   (na) | 15 |   60.7 |   (na) |   (na) |
| 16 |  112.9 |   (na) |   (na) | 17 |   83.7 |   (na) |   (na) |
| 18 |  112.9 |   (na) |   (na) | 19 |   83.5 |   (na) |   (na) |
| 20 |   83.5 |   (na) |   (na) | 21 |   83.5 |   (na) |   (na) |
| 22 |   83.5 |   (na) |   (na) | 23 |   61.2 |   (na) |   (na) |
| 24 |   63.0 |   (na) |   (na) | 25 |   60.8 |   (na) |   (na) |
Totals (CPU):  2250.2    0.0    0.0 H/s
-----------------------------------------------------------------
Totals (ALL):   2250.2    0.0    0.0 H/s
Highest:  2250.2 H/s
-----------------------------------------------------------------

After restart:

[2019-12-01 11:49:44] : Mining coin: randomx
[2019-12-01 11:49:44] : Starting 1x thread, affinity: 0.
[2019-12-01 11:49:45] : Starting 1x thread, affinity: 1.
[2019-12-01 11:49:46] : Starting 1x thread, affinity: 2.
[2019-12-01 11:49:47] : Starting 1x thread, affinity: 3.
[2019-12-01 11:49:48] : Starting 1x thread, affinity: 4.
[2019-12-01 11:49:49] : Starting 1x thread, affinity: 5.
[2019-12-01 11:49:50] : Starting 1x thread, affinity: 6.
[2019-12-01 11:49:51] : Starting 1x thread, affinity: 7.
[2019-12-01 11:49:53] : Starting 1x thread, affinity: 8.
[2019-12-01 11:49:54] : Starting 1x thread, affinity: 9.
[2019-12-01 11:49:55] : hwloc: memory pinned
[2019-12-01 11:49:55] : Starting 1x thread, affinity: 20.
[2019-12-01 11:49:56] : hwloc: memory pinned
[2019-12-01 11:49:56] : Starting 1x thread, affinity: 21.
[2019-12-01 11:49:57] : hwloc: memory pinned
[2019-12-01 11:49:57] : Starting 1x thread, affinity: 22.
[2019-12-01 11:49:58] : hwloc: memory pinned
[2019-12-01 11:49:58] : Starting 1x thread, affinity: 10.
[2019-12-01 11:49:59] : hwloc: memory pinned
[2019-12-01 11:49:59] : Starting 1x thread, affinity: 11.
[2019-12-01 11:50:01] : hwloc: memory pinned
[2019-12-01 11:50:01] : Starting 1x thread, affinity: 12.
[2019-12-01 11:50:02] : hwloc: memory pinned
[2019-12-01 11:50:02] : Starting 1x thread, affinity: 13.
[2019-12-01 11:50:03] : hwloc: memory pinned
[2019-12-01 11:50:03] : Starting 1x thread, affinity: 14.
[2019-12-01 11:50:04] : hwloc: memory pinned
[2019-12-01 11:50:04] : Starting 1x thread, affinity: 15.
[2019-12-01 11:50:05] : hwloc: memory pinned
[2019-12-01 11:50:05] : Starting 1x thread, affinity: 16.
[2019-12-01 11:50:06] : hwloc: memory pinned
[2019-12-01 11:50:06] : Starting 1x thread, affinity: 17.
[2019-12-01 11:50:07] : hwloc: memory pinned
[2019-12-01 11:50:07] : Starting 1x thread, affinity: 18.
[2019-12-01 11:50:09] : hwloc: memory pinned
[2019-12-01 11:50:09] : Starting 1x thread, affinity: 19.
[2019-12-01 11:50:10] : hwloc: memory pinned
[2019-12-01 11:50:10] : Starting 1x thread, affinity: 30.
[2019-12-01 11:50:11] : hwloc: memory pinned
[2019-12-01 11:50:11] : Starting 1x thread, affinity: 31.
[2019-12-01 11:50:12] : hwloc: memory pinned
[2019-12-01 11:50:12] : Starting 1x thread, affinity: 32.
[2019-12-01 11:50:13] : hwloc: memory pinned
[2019-12-01 11:50:13] : Fast-connecting to fin01.supportxmr.com:7777 pool ...
[2019-12-01 11:50:13] : Fast-connecting to fr06.supportxmr.com:7777 pool ...
[2019-12-01 11:50:13] : Fast-connecting to fr01.supportxmr.com:7777 pool ...
[2019-12-01 11:50:13] : Fast-connecting to de01.supportxmr.com:7777 pool ...
[2019-12-01 11:50:13] : Pool fin01.supportxmr.com:7777 connected. Logging in...
[2019-12-01 11:50:13] : Pool fr06.supportxmr.com:7777 connected. Logging in...
[2019-12-01 11:50:14] : Pool de01.supportxmr.com:7777 connected. Logging in...
[2019-12-01 11:50:14] : Difficulty changed. Now: 200007.
[2019-12-01 11:50:14] : Pool logged in.
[2019-12-01 11:50:23] : New block detected

Hashrate after restart:

HASHRATE REPORT - CPU
| ID |    10s |    60s |    15m | ID |    10s |    60s |    15m |
|  0 |   40.9 |   (na) |   (na) |  1 |   40.9 |   (na) |   (na) |
|  2 |   40.8 |   (na) |   (na) |  3 |   54.8 |   (na) |   (na) |
|  4 |   54.8 |   (na) |   (na) |  5 |   54.9 |   (na) |   (na) |
|  6 |   54.8 |   (na) |   (na) |  7 |   54.8 |   (na) |   (na) |
|  8 |   54.8 |   (na) |   (na) |  9 |   55.0 |   (na) |   (na) |
| 10 |   40.9 |   (na) |   (na) | 11 |   40.8 |   (na) |   (na) |
| 12 |   40.8 |   (na) |   (na) | 13 |   39.3 |   (na) |   (na) |
| 14 |   39.0 |   (na) |   (na) | 15 |   39.2 |   (na) |   (na) |
| 16 |   52.2 |   (na) |   (na) | 17 |   52.2 |   (na) |   (na) |
| 18 |   52.2 |   (na) |   (na) | 19 |   52.2 |   (na) |   (na) |
| 20 |   52.2 |   (na) |   (na) | 21 |   52.2 |   (na) |   (na) |
| 22 |   52.2 |   (na) |   (na) | 23 |   39.2 |   (na) |   (na) |
| 24 |   39.0 |   (na) |   (na) | 25 |   39.0 |   (na) |   (na) |
Totals (CPU):  1229.3    0.0    0.0 H/s
-----------------------------------------------------------------
Totals (ALL):   1229.3    0.0    0.0 H/s
Highest:     0.0 H/s
-----------------------------------------------------------------

If I delete cpu.txt and start again - everything is fine again.

cpu.txt

"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" : 1 },
    { "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" : 3 },
    { "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" : 5 },
    { "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" : 7 },
    { "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" : 9 },
    { "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" : 21 },
    { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 22 },
    { "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" : 11 },
    { "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" : 13 },
    { "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" : 15 },
    { "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" : 17 },
    { "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" : 19 },
    { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 30 },
    { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 31 },
    { "low_power_mode" : false, "no_prefetch" : true, "asm" : "auto", "affine_to_cpu" : 32 },

],
@psychocrypt
Copy link
Collaborator

psychocrypt commented Dec 1, 2019 via email

@psychocrypt
Copy link
Collaborator

bug should be fixed with #2590, even for the first start the miner was not working correct.

@psychocrypt psychocrypt added backend cpu bug randomX issue with xmr-stak-rx labels Dec 1, 2019
@psychocrypt psychocrypt self-assigned this Dec 1, 2019
@Tualua
Copy link
Author

Tualua commented Dec 1, 2019

bug should be fixed with #2590, even for the first start the miner was not working correct.

It works. Thank you.

Also a question about CPU autoconfig. Why xmr-stak thinks that best number of threads is number of physical cores+3? On randomX for 2660v2 my best result is num of threads = num of physical cores.

@psychocrypt
Copy link
Collaborator

psychocrypt commented Dec 1, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend cpu bug randomX issue with xmr-stak-rx
Projects
None yet
Development

No branches or pull requests

2 participants