jceminer / cn_cpu_miner

Cryptonote CPU Miner
35 stars 23 forks source link

Multihash higher than 6 #27

Open Axadiw opened 5 years ago

Axadiw commented 5 years ago

Would it be possible to allow multi hash values over 6?

In my setup (CPU's with a lot of cache, and low cores count) I'm getting positive results when I'm increasing multi_hash values, especially on cryptolite algorithm.

Would it be possible to increase current limit of multi_hash setting in JCE Miner?

jceminer commented 5 years ago

Not impossible, but in all my tests the multi-hash of 7 and above were always slower, because all x86 and x64 run out of registers in such case. Real useful max is 6. What CPU do you use that has more cache than 6x the amount of logical cores? I'm guessing your optimal config could be based on lower multihash, unless you aim for power saving rather than absolute performance.

Otherwise, to make like you mined with multi_hash 8 for example, you can set-up two threads with multi-hash 4 on the same CPU. But i expect this to be far worse than one thread.

Axadiw commented 5 years ago

Hmm, I've tried with more threads, but as you've said - performance is much worse than.

I'm not using any rare CPU's, they are mostly Xeon E5's.

I just don't have an access to all the cores of these CPU's, that's why I'm trying to squeeze as much as I can from those cores that I have access to.

jceminer commented 5 years ago

Sure, I guessed you did some non-standard use of your CPUs, but really, with "only" 16 GPR registers, an x64 cannot afford more than 6 multi hash, from 7 the algo is not writable without punching the stack, which kills all the perfs. May i provide you a 7-multihash you would observe the same disapointing performances.

Axadiw commented 5 years ago

If it won't be a big problem for you - i can surely test a version with 7 multihash, even if it looks like it might not be very performant ;)

Axadiw commented 5 years ago

Quick reminder - would it be possible to get this special version of the miner with multihash x7?:)