Pages:
Author

Topic: [ANN]: cpuminer-opt v3.8.8.1, open source optimized multi-algo CPU miner - page 37. (Read 444103 times)

legendary
Activity: 1470
Merit: 1114
can anyone give me a link on how to under clock my CPU mining?   

I have a GPU rig working in another room, but using my laptop to play around and learn about CPU mining. 

using awesome mining, with miningpoolhub digging for Electroneum. 

click everything I can click and it looks like I can't just tell awesome mining to use less CPU power. 

I did find I can run a VR and only allocate X number of cores and memory to the program, but IMO that is too much work on my personal gaming rig just to play around with.

With out this ability, I will only mine about an hour at a time and shut it down for a few hours.  can't take a chance to hurt my 8 core i7 as it is my work horse for everything else other then mining.

Thanks for any help and links.

geoff

You're bettter off looking in forums dedicated to CPU overclocking. I don't know if laptop CPUs can do it.
newbie
Activity: 8
Merit: 0
can anyone give me a link on how to under clock my CPU mining?   

I have a GPU rig working in another room, but using my laptop to play around and learn about CPU mining. 

using awesome mining, with miningpoolhub digging for Electroneum. 

click everything I can click and it looks like I can't just tell awesome mining to use less CPU power. 

I did find I can run a VR and only allocate X number of cores and memory to the program, but IMO that is too much work on my personal gaming rig just to play around with.

With out this ability, I will only mine about an hour at a time and shut it down for a few hours.  can't take a chance to hurt my 8 core i7 as it is my work horse for everything else other then mining.

Thanks for any help and links.

geoff
newbie
Activity: 11
Merit: 0
Thank you, but the result is again the same, with both masks.
full member
Activity: 187
Merit: 100
Cryptocurrency enthusiast
Here is the output of enum tool from AMD

So, try these two:
-t 16 --cpu-affinity 1431655765
-t 16 --cpu-affinity 2863311530
newbie
Activity: 11
Merit: 0
You're right, it's not an OS issue, it's a user issue. The OS is only doing what the user configured it to do.

The answer is not clear to me, could you elaborate, please.
legendary
Activity: 1470
Merit: 1114
Cpuminer can only use cores it can see. If it won't use the second package it's because it can't see it.
That's an OS issue.


 Huh
HWMonitor (and many other softwares) can see the second CPU, so IMHO it's not an OS issue.
If you want to further investigate the issue, I can do testing for you.
Thank you again.

You're right, it's not an OS issue, it's a user issue. The OS is only doing what the user configured it to do.
newbie
Activity: 11
Merit: 0
I want to use only 1 thread per physical core on both the CPUs, but I'm not able to do it.

Use the tool I've posted a few posts above (msg27696971) to identify physical cores, and then use the appropriate affinity mask.

Do not underestimate the correct affinity setting, some algos (like lyra2*) are spread between all cores if thread count < core count, e.g. u have 4 cores but wanna use 2 threads, than u may get all 4 cores 50% utilized, and that is not what you usually want :-)

...

Thank you for you suggestion.
Here is the output of enum tool from AMD
Code:
C:\Users\Administrator\Desktop\enum>enum -more
Local APIC Id= 0
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x0
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 1
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x0
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 2
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x1
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 3
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x1
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 4
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x2
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 5
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x2
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 6
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x3
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 7
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x3
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 8
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x4
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 9
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x4
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 10
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x5
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 11
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x5
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 12
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x6
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 13
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x6
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 14
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x7
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 15
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x7
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 16
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x8
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 17
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x8
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 18
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x9
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 19
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0x9
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 20
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xa
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 21
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xa
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 22
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xb
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 23
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xb
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 24
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xc
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 25
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xc
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 26
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xd
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 27
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xd
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 28
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xe
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 29
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xe
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 30
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xf
nCoreId = 0x0
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Local APIC Id= 31
nApicIdCoreIdSize= 0
HTT = 0x1
nLogicalProcessorCount = 0x10
CmpLegacy = 0x0
nNC = 0x0
nMNC = 0x1
nProcId = 0xf
nCoreId = 0x1
nCPUCoresperProcessor = 0x1
nThreadsperCPUCore = 0x10

Physical Processor ID 0 has 2 cores
as logical processors 0 1
Physical Processor ID 1 has 2 cores
as logical processors 2 3
Physical Processor ID 2 has 2 cores
as logical processors 4 5
Physical Processor ID 3 has 2 cores
as logical processors 6 7
Physical Processor ID 4 has 2 cores
as logical processors 8 9
Physical Processor ID 5 has 2 cores
as logical processors 10 11
Physical Processor ID 6 has 2 cores
as logical processors 12 13
Physical Processor ID 7 has 2 cores
as logical processors 14 15
Physical Processor ID 8 has 2 cores
as logical processors 16 17
Physical Processor ID 9 has 2 cores
as logical processors 18 19
Physical Processor ID 10 has 2 cores
as logical processors 20 21
Physical Processor ID 11 has 2 cores
as logical processors 22 23
Physical Processor ID 12 has 2 cores
as logical processors 24 25
Physical Processor ID 13 has 2 cores
as logical processors 26 27
Physical Processor ID 14 has 2 cores
as logical processors 28 29
Physical Processor ID 15 has 2 cores
as logical processors 30 31

Number of active logical processors: 32
Number of active physical processors: 16
Number of cores per processor: 1
Number of threads per processor core: 16

I'm assuming that using an affinity mask like 0xAAAAAAAA or 0x55555555 it will use only odd or even logical processors of the 32 available. Am I wrong?
newbie
Activity: 11
Merit: 0
Cpuminer can only use cores it can see. If it won't use the second package it's because it can't see it.
That's an OS issue.


 Huh
HWMonitor (and many other softwares) can see the second CPU, so IMHO it's not an OS issue.
If you want to further investigate the issue, I can do testing for you.
Thank you again.
legendary
Activity: 1470
Merit: 1114
Cpuminer can only use cores it can see. If it won't use the second package it's because it can't see it.
That's an OS issue.
newbie
Activity: 11
Merit: 0
CPU affinity is not working as expected (by me Smiley) on dual Xeon E5-2460v3 on Windows 2012 R2
I want to use only 1 thread per physical core on both the CPUs, but I'm not able to do it.

I'm testing v3.7.9 with the following cmd line:
cpuminer-aes-avx2 -a lbry -t 16 --cpu-affinity 0xAAAAAAAA  [...]

I'd like to spread the threads over the 16 available physical cores, but I'm only able to saturate 16 logical processor of the first CPU:
http://i68.tinypic.com/saupo5.png

No matter what I set in the affinity option, I always obtain the same result.
If I start cpuminer with "-t 1" I get 526 kH/s per CPU, when I start it with "-t 16" I obtain only 249 kH/s per CPU.

On a single CPU system with 8 cores and 16 logical cpu, I'm able to obtain exactly what I want with affinity.


Like the pevious guy you're creating a problem where there is none. Use the default affinity and don't make assumptions.
If you want to see which physical cores are working look at their temperature.

If you have a problem after that post debug output.

I already tried to use default affinity and I got the same result.
I'll check temperature and I'll report the result.

But if my assumption is wrong, why single thread has double rate x CPU than multi-threads?
Beside that, thank you for your great piece of software and for your attention.
--- EDIT ---
My assumption is confirmed by HWMonitor
http://i68.tinypic.com/4jt2xv.png http://i68.tinypic.com/rvixom.png

--- EDIT2 ---
Here's the output with debug enabled
Code:
C:\Program Files\cpumin>cpuminer-aes-avx2 -a lbry -t 16 -D -o stratum+tcp://xxxx -u xxxx -p xxxx

         **********  cpuminer-opt 3.7.9  ***********
     A CPU miner with multi algo support and optimized for CPUs
     with AES_NI and AVX2 and SHA extensions.
     BTC donation address: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT

CPU: Intel(R) Xeon(R) CPU E5-2640 v3 @ 2.60GHz.
SW built on Jan  8 2018 with GCC 5.3.1.
CPU features: SSE2 AES AVX AVX2.
SW features: SSE2 AES AVX AVX2.
Algo features: SSE2 AVX AVX2 SHA.
Start mining with AVX2.

[2018-01-12 10:31:44] Binding thread 13 to cpu 13 (mask 2000)
[2018-01-12 10:31:44] Starting Stratum on stratum+tcp://xxxx
[2018-01-12 10:31:44] Binding thread 0 to cpu 0 (mask 1)
[2018-01-12 10:31:44] Binding thread 14 to cpu 14 (mask 4000)
[2018-01-12 10:31:44] Binding thread 1 to cpu 1 (mask 2)
[2018-01-12 10:31:44] Binding thread 2 to cpu 2 (mask 4)
[2018-01-12 10:31:44] Binding thread 3 to cpu 3 (mask 8)
[2018-01-12 10:31:44] Binding thread 4 to cpu 4 (mask 10)
[2018-01-12 10:31:44] Binding thread 5 to cpu 5 (mask 20)
[2018-01-12 10:31:44] Binding thread 6 to cpu 6 (mask 40)
[2018-01-12 10:31:44] Binding thread 7 to cpu 7 (mask 80)
[2018-01-12 10:31:44] 16 miner threads started, using 'lbry' algorithm.
[2018-01-12 10:31:44] Binding thread 8 to cpu 8 (mask 100)
[2018-01-12 10:31:44] Binding thread 9 to cpu 9 (mask 200)
[2018-01-12 10:31:44] Binding thread 15 to cpu 15 (mask 8000)
[2018-01-12 10:31:44] Binding thread 10 to cpu 10 (mask 400)
[2018-01-12 10:31:44] Binding thread 11 to cpu 11 (mask 800)
[2018-01-12 10:31:44] Binding thread 12 to cpu 12 (mask 1000)
[2018-01-12 10:31:44] Stratum session id: deadbeefcafebabe8681430000000000
[2018-01-12 10:31:44] Stratum difficulty set to 256
[2018-01-12 10:31:47] stratum extranonce subscribe timed out
[2018-01-12 10:31:47] DEBUG: job_id='34b9' extranonce2=00000000 ntime=1f24d637
[2018-01-12 10:31:47] xxxx asks job 13497 for block 303984
[2018-01-12 10:31:48] CPU #6: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #7: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #14: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #1: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #0: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #15: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #9: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #8: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #13: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #12: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #3: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #2: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #5: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #4: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #11: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:48] CPU #10: 131.07 kH, 158.28 kH/s
[2018-01-12 10:31:51] DEBUG: job_id='34ba' extranonce2=00000000 ntime=1f24d637
[2018-01-12 10:31:51] lbry block 303985, diff 427620.506
[2018-01-12 10:31:51] CPU #0: 707.05 kH, 243.28 kH/s
[2018-01-12 10:31:51] CPU #6: 706.87 kH, 243.22 kH/s
[2018-01-12 10:31:51] CPU #5: 706.71 kH, 243.17 kH/s
[2018-01-12 10:31:51] CPU #10: 706.25 kH, 244.32 kH/s
[2018-01-12 10:31:51] CPU #7: 706.67 kH, 243.15 kH/s
[2018-01-12 10:31:51] CPU #8: 705.90 kH, 242.89 kH/s
[2018-01-12 10:31:51] CPU #4: 706.64 kH, 243.14 kH/s
[2018-01-12 10:31:51] CPU #13: 706.68 kH, 243.16 kH/s
[2018-01-12 10:31:51] CPU #1: 707.15 kH, 243.32 kH/s
[2018-01-12 10:31:51] CPU #3: 704.80 kH, 242.51 kH/s
[2018-01-12 10:31:51] CPU #2: 704.64 kH, 242.45 kH/s
[2018-01-12 10:31:51] CPU #11: 706.47 kH, 243.08 kH/s
[2018-01-12 10:31:51] CPU #14: 706.79 kH, 243.19 kH/s
[2018-01-12 10:31:51] CPU #12: 706.55 kH, 243.11 kH/s
[2018-01-12 10:31:51] CPU #9: 706.03 kH, 242.93 kH/s
[2018-01-12 10:31:51] CPU #15: 706.02 kH, 242.93 kH/s
[2018-01-12 10:32:46] DEBUG: job_id='34bb' extranonce2=00000000 ntime=1f24d637
[2018-01-12 10:32:46] xxxx asks job 13499 for block 303985
[2018-01-12 10:32:50] CPU #2: 14.55 MH, 249.27 kH/s
[2018-01-12 10:32:50] CPU #8: 14.57 MH, 249.31 kH/s
[2018-01-12 10:32:50] CPU #1: 14.60 MH, 249.55 kH/s
[2018-01-12 10:32:50] CPU #11: 14.59 MH, 249.31 kH/s
[2018-01-12 10:32:50] CPU #15: 14.58 MH, 249.16 kH/s
[2018-01-12 10:32:50] CPU #12: 14.59 MH, 249.28 kH/s
[2018-01-12 10:32:50] CPU #3: 14.55 MH, 248.66 kH/s
[2018-01-12 10:32:50] CPU #14: 14.59 MH, 249.36 kH/s
[2018-01-12 10:32:50] CPU #13: 14.59 MH, 249.32 kH/s
[2018-01-12 10:32:50] CPU #5: 14.59 MH, 249.33 kH/s
[2018-01-12 10:32:50] CPU #7: 14.59 MH, 249.32 kH/s
[2018-01-12 10:32:50] CPU #6: 14.59 MH, 249.39 kH/s
[2018-01-12 10:32:50] CPU #4: 14.59 MH, 249.24 kH/s
[2018-01-12 10:32:50] CPU #9: 14.58 MH, 248.30 kH/s
[2018-01-12 10:32:50] CPU #0: 14.60 MH, 248.52 kH/s
[2018-01-12 10:32:50] CPU #10: 14.66 MH, 249.45 kH/s
[2018-01-12 10:33:42] DEBUG: job_id='34bc' extranonce2=00000000 ntime=1f24d637
[2018-01-12 10:33:42] xxxx asks job 13500 for block 303985
...
full member
Activity: 187
Merit: 100
Cryptocurrency enthusiast
I want to use only 1 thread per physical core on both the CPUs, but I'm not able to do it.

Use the tool I've posted a few posts above (msg27696971) to identify physical cores, and then use the appropriate affinity mask.

Do not underestimate the correct affinity setting, some algos (like lyra2*) are spread between all cores if thread count < core count, e.g. u have 4 cores but wanna use 2 threads, than u may get all 4 cores 50% utilized, and that is not what you usually want :-)

Interesting and probably faster because it's benchmark tested. He had the benefit of seeing the results
and tweaking. I gave up on super-optimizing memcpy and went with a simpler approach because all I
wanted was to avoid some the overhead to detect alignment, odd sizes and vector capabilities.

I've just benched that variant for cryptonight (using it in skein, keccak, jh and blake256) and sse2 build, setting correct L3 cache size in header manually for 4 particular cpu pieces (Pentium G620, Pentium G4600, i3-7350k and i5-7600)

So, the speed "boost" for resulting hashrate is ~ +0,006% yay Grin And this also costs +5% for resulting binary size.

Will continue soon with other algos, got an interest for avx version together with avx algos.
legendary
Activity: 1470
Merit: 1114
CPU affinity is not working as expected (by me Smiley) on dual Xeon E5-2460v3 on Windows 2012 R2
I want to use only 1 thread per physical core on both the CPUs, but I'm not able to do it.

I'm testing v3.7.9 with the following cmd line:
cpuminer-aes-avx2 -a lbry -t 16 --cpu-affinity 0xAAAAAAAA  [...]

I'd like to spread the threads over the 16 available physical cores, but I'm only able to saturate 16 logical processor of the first CPU:


No matter what I set in the affinity option, I always obtain the same result.
If I start cpuminer with "-t 1" I get 526 kH/s per CPU, when I start it with "-t 16" I obtain only 249 kH/s per CPU.

On a single CPU system with 8 cores and 16 logical cpu, I'm able to obtain exactly what I want with affinity.


Like the pevious guy you're creating a problem where there is none. Use the default affinity and don't make assumptions.
If you want to see which physical cores are working look at their temperature.

If you have a problem after that post debug output.
newbie
Activity: 11
Merit: 0
CPU affinity is not working as expected (by me Smiley) on dual Xeon E5-2460v3 on Windows 2012 R2
I want to use only 1 thread per physical core on both the CPUs, but I'm not able to do it.

I'm testing v3.7.9 with the following cmd line:
cpuminer-aes-avx2 -a lbry -t 16 --cpu-affinity 0xAAAAAAAA  [...]

I'd like to spread the threads over the 16 available physical cores, but I'm only able to saturate 16 logical processor of the first CPU:
http://i68.tinypic.com/saupo5.png

No matter what I set in the affinity option, I always obtain the same result.
If I start cpuminer with "-t 1" I get 526 kH/s per CPU, when I start it with "-t 16" I obtain only 249 kH/s per CPU.

On a single CPU system with 8 cores and 16 logical cpu, I'm able to obtain exactly what I want with affinity.
legendary
Activity: 1470
Merit: 1114
Can anybody explain me what is the meaning of "4way optimization" or give me a link to read about it? Will this optimization also be available for the hodl algorithm in the future? Thanks a lot!


It's all in this thread.
member
Activity: 154
Merit: 22
Can anybody explain me what is the meaning of "4way optimization" or give me a link to read about it? Will this optimization also be available for the hodl algorithm in the future? Thanks a lot!
legendary
Activity: 1470
Merit: 1114
Hi, i have a little problem, i have a dual E5649, when i set the thread count to 12 i have like 400 H/s with cryptonight, but when i set the thread count to 24 i have like 270 H/s, i was thinking that maybe if i set the --cpu-affinity to some value i can run another instance that use the other 12 cores.


How do you know it's not using both CPUs? What about the obvious, don't set the thread count and use the default?
Also don't force me to make assumptions like what OS you're using, miner version, how/if you compiled etc.
Sorry,

I know im not using both looking at "top"



Interesting i have a little better performance using taskset -c 0,1,2,3,4,5,6,7,8,9,10,11 before the ./cpuminer (i expected to get better performance with even or odd cores considering that when i run numactl -H i get the even cores on one node and odd on the other)

If i don't set the thread count it uses all the cores but the performance drops to ~300 H/s.

Miner version is 3.7.9 and was compiled following the instructions on https://github.com/JayDDee/cpuminer-opt/blob/master/RELEASE_NOTES , im mining XMR and the OS is Centos 7.

You're reading top wrong. With 12 threads it's using 12 of the 24 logical cores. You have 12 physical cores with 12 threads.
You're jumping to the wrong conclusion.

Now the issue is clear. Your problem is the number of miner threads, not the cpu affinity. For cryptonight the optimum thread
count is: threads = L3 cache size / 2MB. Your CPUs have 12 MB each so that's 12 threads. Default affinity should spread them
over all physical cores.
newbie
Activity: 8
Merit: 0
Hi, i have a little problem, i have a dual E5649, when i set the thread count to 12 i have like 400 H/s with cryptonight, but when i set the thread count to 24 i have like 270 H/s, i was thinking that maybe if i set the --cpu-affinity to some value i can run another instance that use the other 12 cores.


How do you know it's not using both CPUs? What about the obvious, don't set the thread count and use the default?
Also don't force me to make assumptions like what OS you're using, miner version, how/if you compiled etc.
Sorry,

I know im not using both looking at "top"

https://i.imgur.com/zdz7I0B.png

Interesting i have a little better performance using taskset -c 0,1,2,3,4,5,6,7,8,9,10,11 before the ./cpuminer (i expected to get better performance with even or odd cores considering that when i run numactl -H i get the even cores on one node and odd on the other)

If i don't set the thread count it uses all the cores but the performance drops to ~300 H/s.

Miner version is 3.7.9 and was compiled following the instructions on https://github.com/JayDDee/cpuminer-opt/blob/master/RELEASE_NOTES , im mining XMR and the OS is Centos 7.
newbie
Activity: 7
Merit: 0
Finally I can mine with the tool on my ubuntu server and realized that the difficulty for cryptonight is pretty high thus resulting in a low mining performance. This has already been discussed before.

Now I have 10 ubuntu servers with ryzen 1700X CPUs.

Is there anyway to bundle the hashing power together to mine as one unit in order to get atleast the threshold needed to have a "stable" mining performance rather than just doing a stopNgo mining?

If all 10 servers mine with their standalone hashing power VS. bundling them as one hashing unit. Is there any way to do this to mine for nicehash servers?

Sincerely

If you are pointing them at nicehash they are already being bundled.  The scenario you are thinking of would only occur if you have 10 servers each individually mining to a wallet.

All my 10 servers mine to the same wallet and same pool.

Does this mean that their hash performance is bundled?

So basicly the more servers I would have (due to current cryptonight situation) the better it is to achieve a more stable performance ratio?

BTW my current performance:
https://i.imgur.com/IaMrWvv.png

I want to avoid these downtimes...
full member
Activity: 1179
Merit: 131
Finally I can mine with the tool on my ubuntu server and realized that the difficulty for cryptonight is pretty high thus resulting in a low mining performance. This has already been discussed before.

Now I have 10 ubuntu servers with ryzen 1700X CPUs.

Is there anyway to bundle the hashing power together to mine as one unit in order to get atleast the threshold needed to have a "stable" mining performance rather than just doing a stopNgo mining?

If all 10 servers mine with their standalone hashing power VS. bundling them as one hashing unit. Is there any way to do this to mine for nicehash servers?

Sincerely

If you are pointing them at nicehash they are already being bundled.  The scenario you are thinking of would only occur if you have 10 servers each individually mining to a wallet.
newbie
Activity: 7
Merit: 0
Finally I can mine with the tool on my ubuntu server and realized that the difficulty for cryptonight is pretty high thus resulting in a low mining performance. This has already been discussed before.

Now I have 10 ubuntu servers with ryzen 1700X CPUs.

Is there anyway to bundle the hashing power together to mine as one unit in order to get atleast the threshold needed to have a "stable" mining performance rather than just doing a stopNgo mining?

If all 10 servers mine with their standalone hashing power VS. bundling them as one hashing unit. Is there any way to do this to mine for nicehash servers?

Sincerely

Stratum proxy.

Is there a tutorial how to establish it with xmr-stak or would I need a specific miner with the proxy support?

Sincerely
Pages:
Jump to: