Open qqzoorthuk opened 7 years ago
Hi @qqzoorthuk, With your CPU, you can try the below config for the best performance.
"cpu_threads_conf" : [ { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 }, { "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" : 10 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 }, { "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" : 18 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 20 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 22 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 13 }, ],
Best Regards.
@HungTr1289 Thanks for the config. Unfortunately this does not really work. The second CPU is not being used. See attached file.
Edit: With this config I get 328 H/s. But still only one cpu is being used. I think I could double that.
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
{ "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" : 10 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
I think this is a optimal conf for you cpu:
"cpu_threads_conf" : [
/*** cores from CPU 1 ***/
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
{ "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" : 10 },
/*** cores from CPU 2 ***/
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 },
{ "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" : 18 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 20 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 22 },
]
or try, 2-3 trads more
"cpu_threads_conf" : [
/*** cores from CPU 1 ***/
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
{ "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" : 10 },
/*** cores from CPU 2 ***/
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 },
{ "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" : 18 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 20 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 22 },
/*** for virtual cores All CPUs ***/
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
]
@Skayver First config: Its still only using cores from first cpu. Core 0-11 are in use(6 physical & 6 virtual). I get about 200 H/s
Second config is even worse.
I would try 12 threads (6 cores per CPU x 2 = 12 threads). You can make affine_to_cpu false so it makes adding and removing threads easier. I don't see a difference in hash rate by using false: { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
"cpu_threads_conf" :
[
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
],
You have 15MB L3 on each CPU, so try add more threads. Maybe 14-16 threads in total? Give it one minute each time you test a new config.txt
I have the same CPU here. Did you found the best config setting already?
I'm on ~ 211H/s
Thanks!
Do you used the precompiled binary? If not have you compiled with hwloc?
Yes precompiled (windows). I think I've made the correct config now (100% CPU usage) with: But my H/s is different between 400 and 180. Maybe thats normal?
"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" : 7 }, { "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" : 15 },
],
Have you tried the auto suggestion? What config was shown to you at the first start. To trigger the auto suggestion again please start with a new config withou changes expect the pool config.
Sure I tried. Auto Suggestion was: _"cpu_threads_conf" : [ { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 }, { "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" : 10 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_tocpu" : 3 }, ],
Aah you have only on socket (cpu) than the auto suggestion ist fine. There is no need to full fill all cores with work.
I had the same error. Your Problem is in your config. After the last CPU-Line there should be no ","
You:
"cpu_threads_conf" :
[
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
{ "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" : 10 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 },
],
right:
"cpu_threads_conf" :
[
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 0 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 2 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 4 },
{ "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" : 10 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 14 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 1 },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 3 }
],
I'm sorry but I cant recognize any difference ...?
Tested and any difference in result, or you don‘t see the difference between the config-examples?
Behind the last line for CPUs (for CPU 3 in your case) is an comma. I had problems with the miners if there were an comma after the last line.
My 2xE5-2620 max hashrate is around 500H/s using 12 threads, set affine_to_cpu:false. This is the optimum hashrate that i can get after trying a lot of configuration (6 threads, 24 threads, etc). OS is Centos 6.9
@junglon Can you show me your config? I can only get one of my processors to work but never both.
On the cpu parts :
"cpu_threads_conf" :
[
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
{ "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : false },
],
I'm using 12 threads, and this configuration can get me around 500H/s (sometimes more). Using more/less threads result in lower hashrate.
Hi!
This is the best configuration I can get for 50/50 split dual xeon E5-2697 V4
red: cpu0 18 core target (0-17) green: cpu1 6 core target (64-71) Any other number goes random
If I attach or remove to this list some core number the whole load goes mostly to cpu0
Could you please test if the new release is running better https://github.com/fireice-uk/xmr-stak/releases We fixed a few thread pinning bugs.
xmr-stak 2.0.0 0005e4a
Test run with auto suggestion strange threads numbers but working 75%/75% utilisation
There is no need to have 100% utilization. You are limited by the L3 cache of your cpu not by the cpu power.
Thank you for your prompt response
Is there any comment on threads 80+ and 90+ numbers? If there are only 72 trheads.
80+ threads should work out of the box
I have spent a lot of time working on a similar situation, see if this explanation helps. You have 2 sockets or cpu's, 18 cores each, 36 physical cores total. You also have hyperthreading, which allows windows task manager to display 72 logical cores. The configuration of the miner should be based on the amount of cpu cahce available, not the number of physical or logical cores. Each miner thread needs 2Mb of L3 cpu cache. You have 45Mb cache per cpu, so you can run 45Mb/2Mb=22 threads per cpu for mining.
On my rig, I have 4x E7-8837 cpu's, which are 8 cores each, no hypherthreading, so 32 physical cores total. Each cpu has 24Mb cache, so 24Mb/2Mb=12 threads for mining on each cpu. To get 12 total threads running on the 8 cores, I run two threads on 4 of the cores, and one thread each on the other 4 cores = 8 total cores of the cpu.. To run two threads I set 'low_power_mode=true', and to run one thread I set 'low_power_mode=false'. So for each cpu, this is what I do on my E7-8837: { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 0 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : true, "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" : 7 }, Then I duplicate that configuration four times for the other 3 cores. This is also the suggested configuration from xmr-stak-cpu. My experience is that a core running a single thread will hash 30/s to 40/s, and a core running two threads will be 60/s to 70/s. If the hash rate drops to 20/s like I see in your attachment, it is because too many threads are running and the cpu cache is being swapped out when the threads run. That means it is inefficient and the total hash rate is lower. I attached a picture showing all 32 cores running, and 48 threads running, hashing about 1650/s. My xmr-stak-cpu version 2 cpu.txt configuration file looks like this. "cpu_threads_conf" : [ { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 0 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 1 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : true, "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" : 7 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 8 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 9 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 10 }, { "low_power_mode" : true, "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" : 15 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 16 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 17 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 18 }, { "low_power_mode" : true, "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" : true, "no_prefetch" : true, "affine_to_cpu" : 24 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 25 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 26 }, { "low_power_mode" : true, "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 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 31 },
],
In your case, you have 36 logical cores on each cpu, but you need to run 22 threads. I think you should skip the logical cores (hyperthreading) and don't use them, just use the physical 18 cores. Then run two threads on some of them to get the total threads needed. To get 22 threads running, run two threads on five cores = 10 threads, and one thread each on another 12 cores = 22 threads total, and 5 + 12 = 17 cores used. You could try adding in one more thread, either two threads in place of one, or add one more thread on core 18, to see what is best. It would look like this: "cpu_threads_conf" : [ { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 0 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 2 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 4 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 6 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 8 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 10 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 12 }, { "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" : 18 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 20 }, { "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" : 26 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 28 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 30 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 32 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 36 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 38 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 40 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 42 }, { "low_power_mode" : true, "no_prefetch" : true, "affine_to_cpu" : 44 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 46 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 48 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 50 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 52 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 54 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 56 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 58 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 60 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 62 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 64 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 66 }, { "low_power_mode" : false, "no_prefetch" : true, "affine_to_cpu" : 68 }, ],
Please post your results, I need to set up another rig similar to this in about a week.
5(10) + 12 = 17(22) cores configuration test run
thread 36 - 62 affinity failed!
auto suggestion "cpu_threads_conf" reduced to 22x2
reduced to 21x2 (best H/s)
reduced to 20x2
Hello, I let the miner run the autoconfig on first start and it suggested me this config:
I get about 300H/S but I don't know how to config for the second CPU. I use Windows Server 2012 R2 and I don't know how to compile on windows. I just use the exe.
Thanks in advance.