Bitcoin Forum
April 22, 2019, 07:27:41 PM *
News: Latest Bitcoin Core release: 0.17.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 [168] 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 »
  Print  
Author Topic: [ANN]: cpuminer-opt v3.8.8.1, open source optimized multi-algo CPU miner  (Read 419396 times)
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
February 03, 2018, 07:32:13 PM
 #3341

PLS ADD BTVcoin  this coin  https://www.bitvote.one/       https://github.com/bitcoinvote/cpuminer-multi,  POOLs   http://bitvotepool.com/workers   https://www.vvpool.com/   thinks.

This looks like cryptonight without the custom stratum protocol. I don't feel like pouring through
the code to see if there are any differences in the hash. Either way I don't have any improvements
to add to it, it would be just for convenience. Not worth the effort at this time.

I am also concerned about the 20% pool fee. I didn't see it mentioned anywhere, just buried in the
pool's code.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
1555961261
Hero Member
*
Offline Offline

Posts: 1555961261

View Profile Personal Message (Offline)

Ignore
1555961261
Reply with quote  #2

1555961261
Report to moderator
1555961261
Hero Member
*
Offline Offline

Posts: 1555961261

View Profile Personal Message (Offline)

Ignore
1555961261
Reply with quote  #2

1555961261
Report to moderator
1555961261
Hero Member
*
Offline Offline

Posts: 1555961261

View Profile Personal Message (Offline)

Ignore
1555961261
Reply with quote  #2

1555961261
Report to moderator
PLAY NOW
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1555961261
Hero Member
*
Offline Offline

Posts: 1555961261

View Profile Personal Message (Offline)

Ignore
1555961261
Reply with quote  #2

1555961261
Report to moderator
1555961261
Hero Member
*
Offline Offline

Posts: 1555961261

View Profile Personal Message (Offline)

Ignore
1555961261
Reply with quote  #2

1555961261
Report to moderator
Enth
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
February 03, 2018, 09:02:21 PM
Last edit: February 03, 2018, 11:09:45 PM by Enth
 #3342

Hi. I have only ~650H/s with my 4690k (lyra2z330), what's wrong?

There's nothing wrong or you're doing something wrong. Take your pick.
Want a better answer ask a better question.

Ok, how much H/s (kH/s) normal for 4690k in stock?

I do disable all OC
Performance at 2 treads more than 4 treads

A have "Accepted 104/104 (100%), diff 1.08e-005, 525.88 H/s"
vorthtoura
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
February 04, 2018, 12:40:03 PM
 #3343

Do anybody know  the lyra2z hashrate for "core i5 6400"?
4ward
Member
**
Offline Offline

Activity: 451
Merit: 17


View Profile
February 04, 2018, 01:13:58 PM
 #3344

Do anybody know  the lyra2z hashrate for "core i5 6400"?

i5 7600k @ 4.5Ghz gives ~500kh/s
So I would guess something like ~450kh/s

Enth
Newbie
*
Offline Offline

Activity: 53
Merit: 0


View Profile
February 04, 2018, 01:25:56 PM
 #3345

Do anybody know  the lyra2z hashrate for "core i5 6400"?

i5 7600k @ 4.5Ghz gives ~500kh/s
So I would guess something like ~450kh/s

can you make screenshot?
erixxx
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 04, 2018, 01:32:43 PM
 #3346

Hi! can someone please make a full guide step by step on how to compile this miner static , on linux? thx
mangoo
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
February 04, 2018, 02:30:51 PM
 #3347

Do anybody know  the lyra2z hashrate for "core i5 6400"?

Not exactly the same CPU - 4 of these cores:

Code:
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 158
model name      : Intel(R) Core(TM) i5-7440HQ CPU @ 2.80GHz
stepping        : 9
microcode       : 0x7c
cpu MHz         : 2800.000
cache size      : 6144 KB
physical id     : 0
siblings        : 4
core id         : 0
cpu cores       : 4
apicid          : 0
initial apicid  : 0
fpu             : yes
fpu_exception   : yes
cpuid level     : 22
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf tsc_known_freq pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single pti intel_pt spec_ctrl tpr_shadow vnmi flexpriority ept vpid fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx rdseed adx smap clflushopt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp
bugs            : cpu_meltdown spectre_v1 spectre_v2
bogomips        : 5616.00
clflush size    : 64
cache_alignment : 64
address sizes   : 39 bits physical, 48 bits virtual
power management:


is giving me (on a laptop with several programs running, browsers with many tabs etc.):

Code:
$ ./cpuminer-opt-3.8.0-fast --benchmark -a lyra2z

         **********  cpuminer-opt 3.8.0  ***********
     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) Core(TM) i5-7440HQ CPU @ 2.80GHz.
SW built on Jan 25 2018 with GCC 7.2.0.
CPU features: SSE2 AES AVX AVX2.
SW features: SSE2 AES AVX AVX2.
Algo features: AVX AVX2.
Start mining with AVX2.

[2018-02-04 23:28:02] 4 miner threads started, using 'lyra2z' algorithm.
[2018-02-04 23:28:05] CPU #3: 65.53 kH, 23.36 kH/s
[2018-02-04 23:28:05] Total: 65.53 kH, 23.36 kH/s, 44C
[2018-02-04 23:28:05] CPU #0: 65.53 kH, 22.18 kH/s
[2018-02-04 23:28:05] CPU #1: 65.53 kH, 21.49 kH/s
[2018-02-04 23:28:06] CPU #2: 65.53 kH, 17.79 kH/s
[2018-02-04 23:28:07] CPU #2: 17.79 kH, 18.85 kH/s
[2018-02-04 23:28:07] CPU #0: 44.36 kH, 23.52 kH/s
[2018-02-04 23:28:07] CPU #3: 46.71 kH, 22.99 kH/s
[2018-02-04 23:28:07] Total: 174.40 kH, 86.85 kH/s, 44C
[2018-02-04 23:28:08] CPU #1: 42.98 kH, 19.48 kH/s
[2018-02-04 23:28:11] CPU #1: 77.90 kH, 21.00 kH/s
[2018-02-04 23:28:12] CPU #3: 114.96 kH, 23.65 kH/s
[2018-02-04 23:28:12] Total: 255.01 kH, 87.01 kH/s, 44C
[2018-02-04 23:28:12] CPU #0: 117.59 kH, 23.64 kH/s
[2018-02-04 23:28:12] CPU #1: 21.00 kH, 23.64 kH/s
[2018-02-04 23:28:13] CPU #2: 94.23 kH, 17.06 kH/s
[2018-02-04 23:28:17] CPU #2: 68.23 kH, 13.95 kH/s
[2018-02-04 23:28:19] CPU #0: 118.18 kH, 17.96 kH/s
[2018-02-04 23:28:19] CPU #1: 118.20 kH, 17.74 kH/s
[2018-02-04 23:28:19] CPU #3: 118.23 kH, 16.74 kH/s
[2018-02-04 23:28:19] Total: 422.84 kH, 66.38 kH/s, 44C
[2018-02-04 23:28:22] CPU #1: 53.22 kH, 17.02 kH/s
[2018-02-04 23:28:22] CPU #3: 50.21 kH, 17.05 kH/s
[2018-02-04 23:28:22] Total: 289.84 kH, 65.98 kH/s, 44C
[2018-02-04 23:28:23] CPU #2: 69.73 kH, 12.83 kH/s
[2018-02-04 23:28:24] CPU #0: 53.88 kH, 9815.55 H/s
[2018-02-04 23:28:25] CPU #0: 29.45 kH, 24.28 kH/s
[2018-02-04 23:28:26] CPU #3: 85.27 kH, 19.96 kH/s
[2018-02-04 23:28:26] Total: 237.65 kH, 74.09 kH/s, 44C
[2018-02-04 23:28:26] CPU #1: 85.12 kH, 19.31 kH/s
[2018-02-04 23:28:27] CPU #2: 51.32 kH, 12.96 kH/s
[2018-02-04 23:28:27] CPU #1: 19.31 kH, 20.62 kH/s
[2018-02-04 23:28:27] CPU #3: 19.96 kH, 20.04 kH/s
[2018-02-04 23:28:27] Total: 120.03 kH, 77.90 kH/s, 44C
[2018-02-04 23:28:28] CPU #0: 48.55 kH, 20.79 kH/s
[2018-02-04 23:28:30] CPU #2: 64.78 kH, 19.26 kH/s
[2018-02-04 23:28:32] CPU #0: 83.15 kH, 18.63 kH/s
[2018-02-04 23:28:33] CPU #3: 100.22 kH, 18.88 kH/s
[2018-02-04 23:28:33] Total: 267.46 kH, 77.39 kH/s, 44C
[2018-02-04 23:28:33] CPU #1: 103.12 kH, 19.11 kH/s
[2018-02-04 23:28:33] CPU #2: 38.51 kH, 12.85 kH/s
[2018-02-04 23:28:36] CPU #2: 51.38 kH, 21.52 kH/s
[2018-02-04 23:28:36] CPU #1: 76.42 kH, 21.01 kH/s
[2018-02-04 23:28:37] CPU #3: 75.50 kH, 19.31 kH/s
[2018-02-04 23:28:37] Total: 286.45 kH, 80.47 kH/s, 45C
[2018-02-04 23:28:37] CPU #2: 21.52 kH, 17.81 kH/s
[2018-02-04 23:28:37] CPU #0: 93.16 kH, 18.68 kH/s
[2018-02-04 23:28:37] CPU #1: 21.00 kH, 24.06 kH/s
[2018-02-04 23:28:41] CPU #3: 96.55 kH, 20.38 kH/s
[2018-02-04 23:28:41] Total: 232.24 kH, 80.93 kH/s, 45C
[2018-02-04 23:28:42] CPU #0: 93.37 kH, 21.32 kH/s
[2018-02-04 23:28:42] CPU #2: 89.06 kH, 16.71 kH/s
[2018-02-04 23:28:43] CPU #3: 20.38 kH, 14.62 kH/s
[2018-02-04 23:28:43] Total: 223.82 kH, 76.71 kH/s, 45C
[2018-02-04 23:28:43] CPU #1: 120.31 kH, 20.39 kH/s
[2018-02-04 23:28:46] CPU #3: 58.47 kH, 17.43 kH/s
[2018-02-04 23:28:46] Total: 361.22 kH, 75.85 kH/s, 45C
[2018-02-04 23:28:47] CPU #2: 83.54 kH, 18.76 kH/s
[2018-02-04 23:28:47] CPU #0: 106.60 kH, 21.05 kH/s
[2018-02-04 23:28:47] CPU #3: 17.43 kH, 24.00 kH/s
[2018-02-04 23:28:47] Total: 327.88 kH, 84.20 kH/s, 45C
[2018-02-04 23:28:48] CPU #1: 81.55 kH, 18.48 kH/s
[2018-02-04 23:28:51] CPU #1: 73.90 kH, 20.35 kH/s
[2018-02-04 23:28:51] CPU #0: 105.25 kH, 22.69 kH/s
[2018-02-04 23:28:52] CPU #3: 120.00 kH, 23.60 kH/s
[2018-02-04 23:28:52] Total: 382.69 kH, 85.39 kH/s, 44C
mangoo
Newbie
*
Offline Offline

Activity: 23
Merit: 0


View Profile
February 04, 2018, 02:33:01 PM
 #3348

Hi! can someone please make a full guide step by step on how to compile this miner static , on linux? thx

Did you try these instructions:

https://lxadm.com/Static_compilation_of_cpuminer
Andre100
Newbie
*
Offline Offline

Activity: 118
Merit: 0


View Profile
February 04, 2018, 03:27:50 PM
 #3349

Do anybody know  the lyra2z hashrate for "core i5 6400"?

i5 7600k @ 4.5Ghz gives ~500kh/s
So I would guess something like ~450kh/s

Can I ask, after monero fly away with Diff, now more profitable LYRA2 ?
4ward
Member
**
Offline Offline

Activity: 451
Merit: 17


View Profile
February 04, 2018, 03:35:56 PM
 #3350

Do anybody know  the lyra2z hashrate for "core i5 6400"?

i5 7600k @ 4.5Ghz gives ~500kh/s
So I would guess something like ~450kh/s

Can I ask, after monero fly away with Diff, now more profitable LYRA2 ?

Lyra2z, Yescrypt, sometimes HODL on NiceHash, Yenten, HPP coin

This is in general the algos that can still get some profit on a CPU

erixxx
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 04, 2018, 04:41:32 PM
 #3351

Hi! can someone please make a full guide step by step on how to compile this miner static , on linux? thx

Did you try these instructions:

https://lxadm.com/Static_compilation_of_cpuminer

Hi! thx for your quick answer , yes i did try those steps from the link above, i try like almost everything possible, im sure im missing something, but i dont know what..thats why i ask for guide, i have a lot of errors when i compile!  error '__int128' is not supported on this target
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
February 04, 2018, 06:49:11 PM
 #3352

Hi! can someone please make a full guide step by step on how to compile this miner static , on linux? thx

Did you try these instructions:

https://lxadm.com/Static_compilation_of_cpuminer

Hi! thx for your quick answer , yes i did try those steps from the link above, i try like almost everything possible, im sure im missing something, but i dont know what..thats why i ask for guide, i have a lot of errors when i compile!  error '__int128' is not supported on this target

You followed the guide but but now you're asking for a guide??? You're account is brand new so unless you can demostrate
you know what you're doing I have to assume you are a real noob. So, as a noob,  DO EVERYTHING DEFAULT! Make sureyou
can do that before messing with stuff.

And if you want help you'll have to provide proper data including exactly what you're doing and what you're seeing.
I will ignore any posts without supporting data.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
Etherion
Sr. Member
****
Offline Offline

Activity: 480
Merit: 258


View Profile
February 04, 2018, 07:09:54 PM
Last edit: February 04, 2018, 07:20:31 PM by Etherion
 #3353

I'm using this to mine zcoin/lyra2v on i7 7700k. I get about 770khs whish is great. But when mining yescrypt I get 2, 8khs which seems very low. Is that about what one can expect from a i7 7700k?
erixxx
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
February 05, 2018, 12:37:08 PM
 #3354

Hi! can someone please make a full guide step by step on how to compile this miner static , on linux? thx

Did you try these instructions:

https://lxadm.com/Static_compilation_of_cpuminer

Hi mangoo! i manage to compile another cpuminer using the steps from the link you provide, if u want send me a pm with a xmr adress, i want to send you 1xmr! have a nice day all
Andre100
Newbie
*
Offline Offline

Activity: 118
Merit: 0


View Profile
February 05, 2018, 01:58:52 PM
 #3355

Can I ask, after monero fly away with Diff, now more profitable LYRA2 ?

Lyra2z, Yescrypt, sometimes HODL on NiceHash, Yenten, HPP coin

This is in general the algos that can still get some profit on a CPU


ohh, on NiceHash i see. Thx.
4ward
Member
**
Offline Offline

Activity: 451
Merit: 17


View Profile
February 05, 2018, 03:24:24 PM
Last edit: February 05, 2018, 03:38:04 PM by 4ward
 #3356

cpuminer-opt-3.8.0 released.

https://github.com/JayDDee/cpuminer-opt/releases/tag/v3.8.0

4way no longer a seperate feature, included in AVX2.
Added x16r algo for Ravencoin, anime algo for Animecoin.
More 4way optimizations for X13 and up.
Tweaked CPU affinity to better support more than 64 CPUs.
Fixed compile problem on some old AMD CPUs.

This release is a major milestone for cpuminer-opt. It essentially marks the end of
4way phase 1. 15 of the 17 functions in X17 have some form of optimization. Only
fugue and whirlpool still use unoptimized code and 4 way seems impossible on
these functions using SIMD.

for some reason X16r shows about 4x the hashrate of the official cpuminer (by Tpuvot), while actually delivering lower hashrate and sharerate on the pool side

p.s. dropped a penny in the ETH jar Smiley

Thanks for the tip. Your report about hash rate is scary because it's hard to verify. x16r by it's nature has a very volatile
hash rate and Suprnova has been notorious for displaying incorrect hash rates.

There is no difference in the miner-side hashrate calculation for x16r. I made a change for 4way to account for 4 nonces
per iteration but it applies to all 4way algos and seems to be accurate.

It'll need more data from other users to determine if there is a problem with hashrate calculation.

Edit: hash rate for x16r is more volatile with opt vs multi due to the mix of optimized and unoptimized hash functions.
X16r can theoretically run the same function 16 times. If it's an unoptimized function the hash rate with opt wil be the
same as multi. But if it's a highly optimized function the hash rate gain will be higher than average.

So I finally got some time to test this and confirm the results I saw
I have mined to 2 wallets on http://pool.threeeyed.info/
Running 2 miners in parallel, with 2 threads each, on 4 core cpu, with manually defined affinity in task manager to make sure they use separate cores

Running for 2 hours with no interruptions, here is the results
multi gave double the profit, and reported more or less correct speed
opt reported speed was about 4 times higher that the received speed on pool

cpuminer-opt 3.8.0:
Screenshot:
http://prntscr.com/iafztr
Miner output:
https://text-share.com/view/e95290d4
Pool link:
http://pool.threeeyed.info/?address=RMuoJFg2qDSxEaDaCZG24Yhn3k99gW6SkF

cpuminer-multi-1.3.3
Screenshot:
http://prntscr.com/iafzkk
Miner output:
https://text-share.com/view/59a010b3
Pool link:
http://pool.threeeyed.info/?address=RJmz1bAtpa4hXrX7LC82cVikoB4gpd5L52

joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
February 05, 2018, 05:24:35 PM
Last edit: February 05, 2018, 09:38:00 PM by joblo
 #3357

So I finally got some time to test this and confirm the results I saw
I have mined to 2 wallets on http://pool.threeeyed.info/
Running 2 miners in parallel, with 2 threads each, on 4 core cpu, with manually defined affinity in task manager to make sure they use separate cores

Running for 2 hours with no interruptions, here is the results
multi gave double the profit, and reported more or less correct speed
opt reported speed was about 4 times higher that the received speed on pool

cpuminer-opt 3.8.0:
Screenshot:
http://prntscr.com/iafztr
Miner output:
https://text-share.com/view/e95290d4
Pool link:
http://pool.threeeyed.info/?address=RMuoJFg2qDSxEaDaCZG24Yhn3k99gW6SkF

cpuminer-multi-1.3.3
Screenshot:
http://prntscr.com/iafzkk
Miner output:
https://text-share.com/view/59a010b3
Pool link:
http://pool.threeeyed.info/?address=RJmz1bAtpa4hXrX7LC82cVikoB4gpd5L52

That's not good. I have confirmed the hash rate calculation for other 4way algos
so this seems specific to x16r. The fact that the pool-side hash rate lower than multi
suggests that only one of the 4 lanes is finding shares and the other three are finding
nothing, not even rejects.

There is a simple test I can do to confirm the lane issue but I'm pretty deep in debugging
more optimizations right now so I can't follow up immediately. I'll try to find a window to
do this test (I'll use your addresses at 3eyed for testing) then decide how to move forward.

Thanks for the hard work.

Edit: confirmed, only lane 0 submitting shares.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
guytechie
Hero Member
*****
Offline Offline

Activity: 645
Merit: 500


View Profile
February 05, 2018, 05:39:19 PM
 #3358

Hi guys, I have a question about the --cpu-afinnity switch.  Yeah, I know, yet another one.

I tried searching for the answers here, but thread is so long, the search is coming up with stuff that didn't help.

I have a TR 1950x and a Ryzen 7 1700/

Without messing with the affinity switch, just halving the # of threads doesn't actually distribute the load to all physical cores.  It just goes from cpu 0 to cpu 8 (in the case of Ryzen 1700).  This is apparent with Cryptonight, which hashes much faster when halving the # of threads to just the physical cores (not the virtual ones).

--cpu-affinity 1 works perfectly with the TR 1950x.  It alternates the load from cpu 0, 2, 4, etc.  However, the behavior is not the same on the Ryzen 7 1700.  Instead, it would just run all threads on cpu 0 only.

Is there a different affinity mask for Ryzen 7 1700s specifically?

Put something in my tip jar if I made your day. Smiley
BTC:
1MkmBHDjonAFXui6JEx9ZmEemfMtUo9Cmu
joblo
Legendary
*
Offline Offline

Activity: 1148
Merit: 1050


View Profile
February 05, 2018, 09:13:51 PM
 #3359

Hi guys, I have a question about the --cpu-afinnity switch.  Yeah, I know, yet another one.

I tried searching for the answers here, but thread is so long, the search is coming up with stuff that didn't help.

I have a TR 1950x and a Ryzen 7 1700/

Without messing with the affinity switch, just halving the # of threads doesn't actually distribute the load to all physical cores.  It just goes from cpu 0 to cpu 8 (in the case of Ryzen 1700).  This is apparent with Cryptonight, which hashes much faster when halving the # of threads to just the physical cores (not the virtual ones).

--cpu-affinity 1 works perfectly with the TR 1950x.  It alternates the load from cpu 0, 2, 4, etc.  However, the behavior is not the same on the Ryzen 7 1700.  Instead, it would just run all threads on cpu 0 only.

Is there a different affinity mask for Ryzen 7 1700s specifically?

Your tr 1950x with cpu-affinity 1 makes no sense, the Ryzen is behaving as expected.
Affinity of 1 means that only CPU 0 will be used for all threads..
There should be as many bits set in the affinity mask as there are threads to run,
If there are fewer bits than threads you start doubling up threads on logical cores, very bad.

The only affinity that might make sense with 8 threads is either 0x5555 or 0xaaaa.
The only difference is even vs odd numbered cores. Some think 0xaaaa is better
because it leaves core 0 free. I don't know if it matters, but I digress.

How do you know cpus 0 to 8 are not on seperate physical cores? Check the CPU core
temperatures with 1/2 threads and default affinity and confirm all cores are the same relative temperature.
If 4 cores are hot and 4 cool your assumption was correct and you need to use affinity to
spread the threads over all the cores.

With your TR1950x you would use a mask of 0x55555555 for 16 threads, IF YOU NEED IT.

And remember NEVER USE AFFINITY WITH DEFAULT THREADS.

Please provide a full report to clear up all this confusion.

I don't have any idea if TR maps logical cores differently than Ryzen, or differently than Intel.
If it does blame AMD. I don't have any problem with Intel CPUs, never use affinity.

Some people tend to use decimal for affinity. Those that do probably don't know what they
are doing because affinity is a bitmap. If you don't understand a bitmap represented in hexadecimal
it's even more difficult to understand it in decimal.

cpuminer-opt developer, https://bitcointalk.org/index.php?topic=1326803.0
BTC: 12tdvfF7KmAsihBXQXynT6E6th2c2pByTT,
ETH: 0x72122edabcae9d3f57eab0729305a425f6fef6d0
guytechie
Hero Member
*****
Offline Offline

Activity: 645
Merit: 500


View Profile
February 05, 2018, 10:11:07 PM
Last edit: February 05, 2018, 10:33:57 PM by guytechie
 #3360

Your tr 1950x with cpu-affinity 1 makes no sense, the Ryzen is behaving as expected.
Affinity of 1 means that only CPU 0 will be used for all threads..
There should be as many bits set in the affinity mask as there are threads to run,
If there are fewer bits than threads you start doubling up threads on logical cores, very bad.

I don't know what to tell you.  For some reason, this is happening on the TR CPU.

So for some reason, that's expected behavior on my Ryzen, but not the TR.

As for WHY I did "1", it's because I read somewhere on this thread that value means to alternate every other core starting with CPU 0.  Misinformation, perhaps, but it was the only info I had to go on until now.

Quote
The only affinity that might make sense with 8 threads is either 0x5555 or 0xaaaa.
The only difference is even vs odd numbered cores. Some think 0xaaaa is better
because it leaves core 0 free. I don't know if it matters, but I digress.

Thanks.  With that info, I can reverse-conclude that the hex value is just binary for 0101010101010101 (representing 16 threads).

I was wondering how that worked.

I will try this and get back to you (not in a position to test right now).

Quote
How do you know cpus 0 to 8 are not on seperate physical cores? Check the CPU core
temperatures with 1/2 threads and default affinity and confirm all cores are the same relative temperature.
If 4 cores are hot and 4 cool your assumption was correct and you need to use affinity to
spread the threads over all the cores.

I know with Cryptonight because something about making sure they're on the right CCX so they don't share cache - or something of that matter.  Without doing anything, the hashrate is terrible.  After getting it to alternate cores, hashrate was 5 to 6x faster.

I used xmr-stak to verify. Their miner was easier to mine Cryptonight.  They alternated the cores - can verify with monitoring tools such as HWInfo, Task Manager, and CoreTemp.

I want to use cpuminer-opt because of xmr-stak's dev fee.  Using cpuminer-opt, I noticed without any affinity settings (just the thread setting), they were not alternating - AND the hasrate was much lower.

Quote
With your TR1950x you would use a mask of 0x55555555 for 16 threads, IF YOU NEED IT.

Thanks for this.  Will try and report back.

Quote
And remember NEVER USE AFFINITY WITH DEFAULT THREADS.

Of course - default threads usually mean 100% of CPU, so no reason to set affinity.

Quote
Please provide a full report to clear up all this confusion.

Will do.

Quote
I don't have any idea if TR maps logical cores differently than Ryzen, or differently than Intel.
If it does blame AMD. I don't have any problem with Intel CPUs, never use affinity.

I'm not sure, but I think with my Haswell, it might just automatically alternate (use physical cores) without the need of setting affinity (just set the threads).  I haven't had the time to play with Cryptonight on my Haswell yet.  I'll check it out when I have time and let you know.

Quote
Some people tend to use decimal for affinity. Those that do probably don't know what they
are doing because affinity is a bitmap. If you don't understand a bitmap represented in hexadecimal
it's even more difficult to understand it in decimal.

Does it work with binary values?

Code:
--cpu-affinity 1010101010101010

UPDATE:
With 0x5555 and 8 threads for Ryzen (or 0x55555555 and 16 threads for TR), I get an overall 60-65% CPU utilization, and the load is spread evenly across all cores (virtual and physical).

What's weirder is on the TR, I revert back to "1", and it behaves the exact same!  WTF is going on?

Hashrate using 16 threads (out of 32) - no affinity settings:
Around 400 H/s

Hashrate using 16 threads - affinity set to 1 (previously):
Around 850 H/s

Hashrate using 16 threads - affinity 0x55555555:
Around 600 H/s

Hashrate using after going back to affinity 1, still 16 threads:
Around 600 H/s



I tried also on the Ryzen.  So affinity 1 = only mines on core 0.  With Affinity set to 0x5555 (8 threads out of 16), around 60% cpu utilization spread across all cores (same behavior as TR).


I'm baffled.

Put something in my tip jar if I made your day. Smiley
BTC:
1MkmBHDjonAFXui6JEx9ZmEemfMtUo9Cmu
Pages: « 1 ... 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 [168] 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 »
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!