Bitcoin Forum
November 21, 2017, 08:23:28 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1] 2 3 4 5 »  All
  Print  
Author Topic: New (more optimized) MRO CPUMiner [Updated 05/28/2014] [PROOF OF 2X INCREASE]  (Read 16520 times)
Wolf0
Legendary
*
Offline Offline

Activity: 1750


Miner Developer


View Profile
May 21, 2014, 03:18:19 PM
 #1

New thread here: https://bitcointalk.org/index.php?topic=632724

Some of my optimizations were just committed to the repo (thanks LucasJones for improving on it), but for all the people on Windows, I made binaries. Optimizations only take effect if your CPU has AES-NI.

<links removed so there's no confusion>

For my GPG key ID and fingerprint, see my signature. Oh, and one more thing - main page is NSFW, so don't go there - same warning is on the litecointalk thread where I compile SGMiner and several forks of it for Win64 every week.

You can donate here if it helps you: 43jtN2e88d4ayn7gxsLwB94fmYzLuXymuGdJxotnvYsCaK3UuhvQRNgKrZUD4i5kxTRtpz49FrB1e2K YiXu4TNyEEGUwu9E

EDIT: Dammit, crashes now. I'm on it.

EDIT2: I think it was the way I compiled winpthreads. Will fix in a minute.

EDIT3: Well, it's not working ATM. LucasJones compiled one, which I'm hosting here: https://ottrbutt.com/cpuminer-multi/cpuminer-multi-1.0.2-LucasJones.zip

It's dynamically linked, which kinda sucks, but it works.

EDIT4: Never mind, fluffypony has taken care of it: https://bitcointalk.org/index.php?topic=583449.msg6857197#msg6857197

EDIT5: Scratch that last part, fluffypony posted binaries of the Monero code, not the miner, which had AES-NI support integrated completely seperately, but at about the same time. I had nothing to do with that.

EDIT6: I have made several improvements to the cpuminer. The best part is - servers will not see much of an increase, but desktops will, evening the playing field a little. There are some limitations and special instructions, however:

It only works on Linux. Several assembly routines that I wrote are *nix specific.
You have to compile it from my repo at https://github.com/wolf9466/cpuminer-multi
The only optimizations are for the AES-NI implementation. The slow one will be about the same.

Do NOT use all threads! Use the number of cores minus one, or it will be rather slow. For this purpose, hyperthreads count as cores.
Do NOT use "./configure CFLAGS="myflags""! This wipes out the already optimized flags I added to the defaults. Put the CFLAGS before the "./configure". I recommend only using -march=native, as it's not set by default.
If you are trying on a system without AES-NI, you must pass "--disable-aes-ni" to configure, or it won't build.
Hashrate will fluctuate a lot with high share diff. Try to find somewhere with a low share diff to benchmark.

Getting reports of 20% hashrate increase! Need more people to test!
Just got a report of almost 2x increase over LucasJones' repo! Test and post!

While testing, I'm beginning to notice that cores - 1 isn't actually optimal. A number between the number of physical cores and the number of threads is. My i7-4770k performs better with 6 threads.

NEW CODE RELEASED! This is even better - and it's portable to Windows!

05/28/2014
Okay, guys - this time, I'll stop coding for more than ten seconds and give you some detail, since it doesn't matter how fast my miner is if no one is using it. I ran a test, LucasJones' repo against mine. Each had the exact same CFLAGS (-Ofast -flto -fuse-linker-plugin -funroll-loops -fsplit-ivs-in-unroller -fvariable-expansion-in-unroller -falign-loops=16 -falign-functions=16 -falign-jumps=16 -falign-loops=16 -falign-labels=16). Each were run with 21 threads for a period of time over 20min. I can't be more accurate than that, because I didn't sit and time it. They were run at seperate times on the same machine - a 32 core Amazon EC2 instance with 58GB of RAM. The results? Lucas' cpuminer reported 627.58H/s - but only pulled 600 at the pool. My miner reported 1021.73 and pulled an impressive 1.25KH/s at the pool. Now, even with vardiff causing high share difficulties and luck contributing to inaccuracy, this shows a clear 100% increase. I have screenshots to prove it, but before I post them, I have to warn - I was too lazy to crop out my wallpapers, so they are NSFW.

Lucas' miner (NSFW): https://ottrbutt.com/tmp/lucasminer-proof.png
My miner (NSFW): https://ottrbutt.com/tmp/wolfminer-proof.png

So... get it here: https://github.com/wolf9466/cpuminer-multi
No binaries yet (Windows or otherwise) - but there should be some soon!

05/29/2014
Build some Win64 binaries. Enjoy.

https://ottrbutt.com/cpuminer-multi/cpuminer-multi-wolf-05-29-2014.zip
https://ottrbutt.com/cpuminer-multi/cpuminer-multi-wolf-05-29-2014.zip.sig

05/30/2014
Mikhaila (the server that ottrbutt is on) is going down at 5:00 AM May 31st GMT for upgrade.

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
1511252608
Hero Member
*
Offline Offline

Posts: 1511252608

View Profile Personal Message (Offline)

Ignore
1511252608
Reply with quote  #2

1511252608
Report to moderator
1511252608
Hero Member
*
Offline Offline

Posts: 1511252608

View Profile Personal Message (Offline)

Ignore
1511252608
Reply with quote  #2

1511252608
Report to moderator
Join ICO Now Coinlancer is Disrupting the Freelance marketplace!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1511252608
Hero Member
*
Offline Offline

Posts: 1511252608

View Profile Personal Message (Offline)

Ignore
1511252608
Reply with quote  #2

1511252608
Report to moderator
1511252608
Hero Member
*
Offline Offline

Posts: 1511252608

View Profile Personal Message (Offline)

Ignore
1511252608
Reply with quote  #2

1511252608
Report to moderator
1511252608
Hero Member
*
Offline Offline

Posts: 1511252608

View Profile Personal Message (Offline)

Ignore
1511252608
Reply with quote  #2

1511252608
Report to moderator
AdamWhite
Hero Member
*****
Offline Offline

Activity: 607



View Profile
May 21, 2014, 04:14:04 PM
 #2

What kind of performance improvements are you seeing with these opimizations? Thanks!
Wolf0
Legendary
*
Offline Offline

Activity: 1750


Miner Developer


View Profile
May 21, 2014, 04:19:30 PM
 #3

What kind of performance improvements are you seeing with these opimizations? Thanks!

Usually people say around 30%, but some people have reported 50%.

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
huhliki.k
Full Member
***
Offline Offline

Activity: 168


View Profile
May 21, 2014, 04:48:12 PM
 #4

no libwinpthread-1.dll
Wolf0
Legendary
*
Offline Offline

Activity: 1750


Miner Developer


View Profile
May 21, 2014, 04:53:19 PM
 #5

Scratch this, fluffypony uploaded them to the official site: https://bitcointalk.org/index.php?topic=583449.msg6857197#msg6857197

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
restless
Legendary
*
Offline Offline

Activity: 1001


View Profile
May 21, 2014, 05:22:45 PM
 #6

How are you measuring the speed?
There is no indication in simpleminer output Sad

PS:
Pools report 3-4 H/s per i3 cpu... so that means people are (ab)using hundreds of CPUs which they don't own ?!
phzi
Hero Member
*****
Offline Offline

Activity: 672


View Profile
May 21, 2014, 05:43:51 PM
 #7

Pools report 3-4 H/s per i3 cpu... so that means people are (ab)using hundreds of CPUs which they don't own ?!
You can get 45H/s on an older core2duo, so something sounds wrong with those numbers.
Remember remember the 5th of November
Legendary
*
Offline Offline

Activity: 1582

Reverse engineer from time to time


View Profile
May 21, 2014, 05:49:16 PM
 #8

Some of my optimizations were just committed to the repo (thanks LucasJones for improving on it), but for all the people on Windows, I made binaries. Optimizations only take effect if your CPU has AES-NI.

https://ottrbutt.com/cpuminer-multi/05-21-2014-cpuminer-multi-win64-git-Wolf0.zip
https://ottrbutt.com/cpuminer-multi/05-21-2014-cpuminer-multi-win64-git-Wolf0.zip.sig

For my GPG key ID and fingerprint, see my signature. Oh, and one more thing - main page is NSFW, so don't go there - same warning is on the litecointalk thread where I compile SGMiner and several forks of it for Win64 every week.

You can donate here if it helps you: 43jtN2e88d4ayn7gxsLwB94fmYzLuXymuGdJxotnvYsCaK3UuhvQRNgKrZUD4i5kxTRtpz49FrB1e2K YiXu4TNyEEGUwu9E

EDIT: Dammit, crashes now. I'm on it.

EDIT2: I think it was the way I compiled winpthreads. Will fix in a minute.

EDIT3: Well, it's not working ATM. LucasJones compiled one, which I'm hosting here: https://ottrbutt.com/cpuminer-multi/cpuminer-multi-1.0.2-LucasJones.zip

It's dynamically linked, which kinda sucks, but it works.

EDIT4: Never mind, fluffypony has taken care of it: https://bitcointalk.org/index.php?topic=583449.msg6857197#msg6857197
Static linking of pthreads is very very difficult.

BTC:1AiCRMxgf1ptVQwx6hDuKMu4f7F27QmJC2
restless
Legendary
*
Offline Offline

Activity: 1001


View Profile
May 21, 2014, 05:56:00 PM
 #9

Pools report 3-4 H/s per i3 cpu... so that means people are (ab)using hundreds of CPUs which they don't own ?!
You can get 45H/s on an older core2duo, so something sounds wrong with those numbers.
But HOW are you measuring these H/s Huh?
There is NO info output from simpleminer
When I use pools "lookout" feature against my wallet it shows... like 15h/s from i5@3.2GHz :/

PS:
WOW, new version seems a lot faster!
Wolf0
Legendary
*
Offline Offline

Activity: 1750


Miner Developer


View Profile
May 21, 2014, 07:16:28 PM
 #10

Some of my optimizations were just committed to the repo (thanks LucasJones for improving on it), but for all the people on Windows, I made binaries. Optimizations only take effect if your CPU has AES-NI.

https://ottrbutt.com/cpuminer-multi/05-21-2014-cpuminer-multi-win64-git-Wolf0.zip
https://ottrbutt.com/cpuminer-multi/05-21-2014-cpuminer-multi-win64-git-Wolf0.zip.sig

For my GPG key ID and fingerprint, see my signature. Oh, and one more thing - main page is NSFW, so don't go there - same warning is on the litecointalk thread where I compile SGMiner and several forks of it for Win64 every week.

You can donate here if it helps you: 43jtN2e88d4ayn7gxsLwB94fmYzLuXymuGdJxotnvYsCaK3UuhvQRNgKrZUD4i5kxTRtpz49FrB1e2K YiXu4TNyEEGUwu9E

EDIT: Dammit, crashes now. I'm on it.

EDIT2: I think it was the way I compiled winpthreads. Will fix in a minute.

EDIT3: Well, it's not working ATM. LucasJones compiled one, which I'm hosting here: https://ottrbutt.com/cpuminer-multi/cpuminer-multi-1.0.2-LucasJones.zip

It's dynamically linked, which kinda sucks, but it works.

EDIT4: Never mind, fluffypony has taken care of it: https://bitcointalk.org/index.php?topic=583449.msg6857197#msg6857197
Static linking of pthreads is very very difficult.

Well, I do it every week with SGMiner and forks.

Pools report 3-4 H/s per i3 cpu... so that means people are (ab)using hundreds of CPUs which they don't own ?!
You can get 45H/s on an older core2duo, so something sounds wrong with those numbers.
But HOW are you measuring these H/s Huh?
There is NO info output from simpleminer
When I use pools "lookout" feature against my wallet it shows... like 15h/s from i5@3.2GHz :/

PS:
WOW, new version seems a lot faster!

Thanks, LucasJones and I worked together on it.

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
Wolf0
Legendary
*
Offline Offline

Activity: 1750


Miner Developer


View Profile
May 21, 2014, 07:35:55 PM
 #11

Okay, fixed the OP.

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
Amph
Legendary
*
Offline Offline

Activity: 1694



View Profile
May 21, 2014, 07:37:50 PM
 #12

how many coin per day with one i5 4670k?
Wolf0
Legendary
*
Offline Offline

Activity: 1750


Miner Developer


View Profile
May 21, 2014, 07:44:59 PM
 #13

Pthread DLL should now be included.

how many coin per day with one i5 4670k?

Are you just hoping that someone has that exact CPU and will come across your post and tell you? I mean, it'd be a reasonable question if you posted your hashrate...

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
Amph
Legendary
*
Offline Offline

Activity: 1694



View Profile
May 21, 2014, 08:04:51 PM
 #14

Pthread DLL should now be included.

how many coin per day with one i5 4670k?

Are you just hoping that someone has that exact CPU and will come across your post and tell you? I mean, it'd be a reasonable question if you posted your hashrate...

that's my only piece, i just want to know if it is worth it to leave my cpu mining this
signo88
Newbie
*
Offline Offline

Activity: 6


View Profile
May 21, 2014, 08:12:11 PM
 #15

no libwinpthread-1.dll

Is possibile to resolve this error?

Thanks..
Wolf0
Legendary
*
Offline Offline

Activity: 1750


Miner Developer


View Profile
May 21, 2014, 08:31:01 PM
 #16

no libwinpthread-1.dll

Is possibile to resolve this error?

Thanks..

Download again, it should be in there.

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
Arlong
Newbie
*
Offline Offline

Activity: 9


View Profile
May 21, 2014, 08:32:10 PM
 #17

Wolf0,are there any plans for a 32bit cpuminer?
Wolf0
Legendary
*
Offline Offline

Activity: 1750


Miner Developer


View Profile
May 21, 2014, 08:37:27 PM
 #18


Commands?   Undecided

--help is your friend if you have never used cpuminer. You'll need to use the cryptonight algorithm.

Wolf0,are there any plans for a 32bit cpuminer?

Just... why? If your CPU is so old that it's not x86-64, then... why on earth would you be mining with it? It'd eat more power than it would ever make you in coin.

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
Arlong
Newbie
*
Offline Offline

Activity: 9


View Profile
May 21, 2014, 08:44:55 PM
 #19

Quote
Just... why? If your CPU is so old that it's not x86-64, then... why on earth would you be mining with it? It'd eat more power than it would ever make you in coin.

I still have 4 computers running on XP 32bit which for various reasons can't upgrade them to 64bit and i have free electricity.So i just thought i should give them a try Wink
Either way,thanks for providing 64bit binaries

PS. Please send me your MRO address for a small donation
Wolf0
Legendary
*
Offline Offline

Activity: 1750


Miner Developer


View Profile
May 21, 2014, 08:50:20 PM
 #20

Commands?   Undecided

--help is your friend if you have never used cpuminer. You'll need to use the cryptonight algorithm.

I have used cpuminer before but not with cryptonight...  how about an example in OP?    Roll Eyes

If you've used cpuminer before, then what I supplied in my post should have been enough, I think - but never mind, I'll give you a full command:

Code:
minerd -a cryptonight -o moneropool.org:80 -O 43jtN2e88d4ayn7gxsLwB94fmYzLuXymuGdJxotnvYsCaK3UuhvQRNgKrZUD4i5kxTRtpz49FrB1e2KYiXu4TNyEEGUwu9E:x -t 4 --no-longpoll

Replace the pool if you want, and the add- actually, no, don't replace the address  Cheesy
The number after -t is the number of threads you want it to run, and --no-longpoll is a workaround for a pool bug with longpolling.

Quote
Just... why? If your CPU is so old that it's not x86-64, then... why on earth would you be mining with it? It'd eat more power than it would ever make you in coin.

I still have 4 computers running on XP 32bit which for various reasons can't upgrade them to 64bit and i have free electricity.So i just thought i should give them a try Wink
Either way,thanks for providing 64bit binaries

PS. Please send me your MRO address for a small donation

That is the first good reason I've ever heard. Let me see if I can get it working. By the way, my address is: 43jtN2e88d4ayn7gxsLwB94fmYzLuXymuGdJxotnvYsCaK3UuhvQRNgKrZUD4i5kxTRtpz49FrB1e2K YiXu4TNyEEGUwu9E

Code:
Donations: BTC: 1WoLFdwcfNEg64fTYsX1P25KUzzSjtEZC -- XMR: 45SLUTzk7UXYHmzJ7bFN6FPfzTusdUVAZjPRgmEDw7G3SeimWM2kCdnDQXwDBYGUWaBtZNgjYtEYA22aMQT4t8KfU3vHLHG
Pages: [1] 2 3 4 5 »  All
  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!