Bitcoin Forum
May 05, 2024, 11:37:09 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Warning: One or more bitcointalk.org users have reported that they strongly believe that the creator of this topic is a scammer. (Login to see the detailed trust ratings.) While the bitcointalk.org administration does not verify such claims, you should proceed with extreme caution.
Pages: « 1 ... 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 [106] 107 108 109 110 111 112 113 114 115 116 117 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 ... 328 »
  Print  
Author Topic: [ANN] SpreadCoin | Decentralize Everything (decentralized blockexplorer coming)  (Read 790354 times)
stonehedge
Legendary
*
Offline Offline

Activity: 1652
Merit: 1002


Decentralize Everything


View Profile
November 19, 2015, 03:03:05 PM
 #2101

Its just a shame I am AMD Smiley

Just a quick note for anybody updating to Windows 10 (and associated latest AMD drivers).  On Windows 8.1 I was able to download the SpreadX11 miner and mine away reasonably happy without an sgminer.conf file.  On Windows 10 this will not work as sgminer will not take your card out of power saving mode leading to very low hashrates (slower than CPU mining!).  It is easy to fix...you just need to create an sgminer.conf for your AMD card with appropriate parameters to force the AMD drivers to wake themselves up from power saving mode.

I just googled for a .conf file for X11 for my card and those parameters worked fine for me.

What hashrates are you getting?

Hi!

About 1.2M with an AMD R9 270

I get a *lot* more than that with your optimised X11 miner with the same card  Smiley
1714952229
Hero Member
*
Offline Offline

Posts: 1714952229

View Profile Personal Message (Offline)

Ignore
1714952229
Reply with quote  #2

1714952229
Report to moderator
1714952229
Hero Member
*
Offline Offline

Posts: 1714952229

View Profile Personal Message (Offline)

Ignore
1714952229
Reply with quote  #2

1714952229
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714952229
Hero Member
*
Offline Offline

Posts: 1714952229

View Profile Personal Message (Offline)

Ignore
1714952229
Reply with quote  #2

1714952229
Report to moderator
1714952229
Hero Member
*
Offline Offline

Posts: 1714952229

View Profile Personal Message (Offline)

Ignore
1714952229
Reply with quote  #2

1714952229
Report to moderator
1714952229
Hero Member
*
Offline Offline

Posts: 1714952229

View Profile Personal Message (Offline)

Ignore
1714952229
Reply with quote  #2

1714952229
Report to moderator
stonehedge
Legendary
*
Offline Offline

Activity: 1652
Merit: 1002


Decentralize Everything


View Profile
November 19, 2015, 03:08:19 PM
 #2102

Its just a shame I am AMD Smiley

Just a quick note for anybody updating to Windows 10 (and associated latest AMD drivers).  On Windows 8.1 I was able to download the SpreadX11 miner and mine away reasonably happy without an sgminer.conf file.  On Windows 10 this will not work as sgminer will not take your card out of power saving mode leading to very low hashrates (slower than CPU mining!).  It is easy to fix...you just need to create an sgminer.conf for your AMD card with appropriate parameters to force the AMD drivers to wake themselves up from power saving mode.

I just googled for a .conf file for X11 for my card and those parameters worked fine for me.

What hashrates are you getting?

Hi!

About 1.2M with an AMD R9 270

I get a *lot* more than that with your optimised X11 miner with the same card  Smiley

Yeah, but you also do a SHITTON of stupid sha256 hashes that aren't done in X11 with SpreadX11.

Being generally clueless, I had the good fortune to be on Slack when georgem unravelled what was going on with SPRX11.  I like what it stands for but I hate how inefficient it is.

stonehedge
Legendary
*
Offline Offline

Activity: 1652
Merit: 1002


Decentralize Everything


View Profile
November 19, 2015, 03:15:58 PM
 #2103

Its just a shame I am AMD Smiley

Just a quick note for anybody updating to Windows 10 (and associated latest AMD drivers).  On Windows 8.1 I was able to download the SpreadX11 miner and mine away reasonably happy without an sgminer.conf file.  On Windows 10 this will not work as sgminer will not take your card out of power saving mode leading to very low hashrates (slower than CPU mining!).  It is easy to fix...you just need to create an sgminer.conf for your AMD card with appropriate parameters to force the AMD drivers to wake themselves up from power saving mode.

I just googled for a .conf file for X11 for my card and those parameters worked fine for me.

What hashrates are you getting?

Hi!

About 1.2M with an AMD R9 270

I get a *lot* more than that with your optimised X11 miner with the same card  Smiley

Yeah, but you also do a SHITTON of stupid sha256 hashes that aren't done in X11 with SpreadX11.

Being generally clueless, I had the good fortune to be on Slack when georgem unravelled what was going on with SPRX11.  I like what it stands for but I hate how inefficient it is.



Why over 3000 SHA256 hashes were used, I'll never know.

We may never find out.  Something to be addressed one day.  Inefficiency by design is inexcusable.  Roll on X11 ASICS Wink
georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 19, 2015, 05:32:56 PM
Last edit: November 19, 2015, 05:43:41 PM by georgem
 #2104

Why over 3000 SHA256 hashes were used, I'll never know. What's the URL for Slack?

Yeah, I'm sure mr.spread's mining algo can be optimized.
The reason we use a little SHA256 in our algo is because the miner has to provide a hashWholeBlock value (to prove he himself had first knowledge about the block content, called POK "Proof Of Knowledge" in the sourcecode https://github.com/spreadcoin/spreadcoin/blob/master/src/main.cpp#L1529 ),
which ofcourse is derived thru a common double SHA256, and which has to be recalculated whenever ANYTHING in the block changes (timestamp, nonce (but only every 64 nonces), txs, etc...)

It's explained in mr. spread's whitepaper : http://www.spreadcoin.info/downloads/SpreadCoin-WhitePaper.pdf
(which admittedly is a little bit cryptic and not using the "clearest" english... I'm working on a more readable whitepaper version when servicenodes have progressed a little bit)

georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 19, 2015, 05:58:24 PM
 #2105

Why over 3000 SHA256 hashes were used, I'll never know. What's the URL for Slack?

Yeah, I'm sure mr.spread's mining algo can be optimized.
The reason we use a little SHA256 in our algo is because the miner has to provide a hashWholeBlock value (to prove he himself had first knowledge about the block content, called POK "Proof Of Knowledge" in the sourcecode),
which ofcourse is derived thru a common double SHA256, and which has to be recalculated whenever ANYTHING in the block changes (timestamp, nonce (but only every 64 nonces), txs, etc...)

It's explained in mr. spread's whitepaper : http://www.spreadcoin.info/downloads/SpreadCoin-WhitePaper.pdf
(which admittedly is a little bit cryptic and not using the "clearest" english... I'm working on a more readable whitepaper version when servicenodes have progressed a little bit)

No, I know that. What I don't know is why you need 3000 goddamned iterations.

I'm not sure about that either.

Mr. Spread uses the hashPrevBlock (which is known and stays the same while we hash) to fill up the padding he's using to construct a complete MAX SIZE block which is then run thru doubleSHA256 to create the hashWholeBlock value.
So you probably assume that it would be enough if we derived the hashWholeBlock just once after a miner has found a solution (since hashWholeBlock is not part of the actual POW).

But I'm not sure if we are not missing something important here.

I wouldn't mind if a mining specialist like you takes a close look at it.  Wink

georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 19, 2015, 06:05:58 PM
 #2106

Why over 3000 SHA256 hashes were used, I'll never know. What's the URL for Slack?

Yeah, I'm sure mr.spread's mining algo can be optimized.
The reason we use a little SHA256 in our algo is because the miner has to provide a hashWholeBlock value (to prove he himself had first knowledge about the block content, called POK "Proof Of Knowledge" in the sourcecode),
which ofcourse is derived thru a common double SHA256, and which has to be recalculated whenever ANYTHING in the block changes (timestamp, nonce (but only every 64 nonces), txs, etc...)

It's explained in mr. spread's whitepaper : http://www.spreadcoin.info/downloads/SpreadCoin-WhitePaper.pdf
(which admittedly is a little bit cryptic and not using the "clearest" english... I'm working on a more readable whitepaper version when servicenodes have progressed a little bit)

No, I know that. What I don't know is why you need 3000 goddamned iterations.

I'm not sure about that either.

Mr. Spread uses the hashPrevBlock (which is known and stays the same while we hash) to fill up the padding he's using to construct a complete MAX SIZE block which is then used to create the hashWholeBlock value.
So you probably assume that it would be enough if we derived the hashWholeBlock just once after a miner has found a solution (since hashWholeBlock is not part of the actual POW).

But I'm not sure if we are not missing something important here.

I wouldn't mind if a mining specialist like you takes a close look at it.  Wink


Nope. There is ZERO reason to hash the same data that many times. It's barbaric overkill.

I'm currently occupied with servicenode development, and I was going to look into mining optimization only after that.
But if you want to give it a try and optimize the mining code, you are highly welcomed, and I'm sure the community is going to reward your efforts.

BTW, nobody doubts that mr. spread's code can be optimized. He left us in freaking mid-air.

georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 19, 2015, 06:19:40 PM
 #2107

Mining optimization meaning the current algo?

Yes, but wait, let's first further analyze this.

So you are saying we have about 3000 unnecessary SHA256 calculations per second, right?

On what GPU with what settings are you getting those values?

stonehedge
Legendary
*
Offline Offline

Activity: 1652
Merit: 1002


Decentralize Everything


View Profile
November 19, 2015, 06:25:17 PM
 #2108

Why over 3000 SHA256 hashes were used, I'll never know. What's the URL for Slack?

Yeah, I'm sure mr.spread's mining algo can be optimized.
The reason we use a little SHA256 in our algo is because the miner has to provide a hashWholeBlock value (to prove he himself had first knowledge about the block content, called POK "Proof Of Knowledge" in the sourcecode),
which ofcourse is derived thru a common double SHA256, and which has to be recalculated whenever ANYTHING in the block changes (timestamp, nonce (but only every 64 nonces), txs, etc...)

It's explained in mr. spread's whitepaper : http://www.spreadcoin.info/downloads/SpreadCoin-WhitePaper.pdf
(which admittedly is a little bit cryptic and not using the "clearest" english... I'm working on a more readable whitepaper version when servicenodes have progressed a little bit)

No, I know that. What I don't know is why you need 3000 goddamned iterations.

I'm not sure about that either.

Mr. Spread uses the hashPrevBlock (which is known and stays the same while we hash) to fill up the padding he's using to construct a complete MAX SIZE block which is then used to create the hashWholeBlock value.
So you probably assume that it would be enough if we derived the hashWholeBlock just once after a miner has found a solution (since hashWholeBlock is not part of the actual POW).

But I'm not sure if we are not missing something important here.

I wouldn't mind if a mining specialist like you takes a close look at it.  Wink


Nope. There is ZERO reason to hash the same data that many times. It's barbaric overkill.

Maybe a deliberately crippled miner? I don't like to suggest it but I can't see any other reason behind it.
georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 19, 2015, 06:29:54 PM
 #2109

Mining optimization meaning the current algo?

Wait, let's first further analyze this.

So you are saying we have about 3000 unnecessary SHA256 calculations per second, right?

On what GPU with what settings are you getting those values?


Not per second. PER HASH. I'm looking at the OpenCL code, it's right there.

ok, I'm only looking at the in-wallet CPU miner code, probably it's just an error in the OpenCL version?

Can you point me to the line in the sourcecode of the OpenCL version please.

georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 19, 2015, 06:32:44 PM
 #2110


If it was an error, it wouldn't get the right hash. It's correct.

I meant to say "bug", not error, ofcourse.

EDIT: BTW There is something peculiar in the in-wallet-miner where we are only applying the PoK-mechanism every 64 nonces:

https://github.com/spreadcoin/spreadcoin/blob/master/src/main.cpp#L1500

does it work the same in the openCL version?

georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 19, 2015, 06:35:22 PM
 #2111


If it was an error, it wouldn't get the right hash. It's correct.

I meant to say "bug", not error, ofcourse.


Not a bug - if I change/remove it, wrong hashes.

well, if - as you say - it causes a horrible inefficiency, then it's a bug in my book.

Hey thanks, that you take your time to look into this BTW.

georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 19, 2015, 06:40:55 PM
 #2112


No problem. The OpenCL is still slow, the current algorithm can be implemented a lot better, even if not changed.

Well, I don't think the current algorithm needs to be changed at the core,
except to get rid of inefficiencies or to make the "pool-prevention"-mechanism stronger (which is certainly necessary).

If you have any ideas, let us know!


georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 19, 2015, 06:47:32 PM
 #2113


No problem. The OpenCL is still slow, the current algorithm can be implemented a lot better, even if not changed.

Well, I don't think the current algorithm needs to be changed at the core,
except to get rid of inefficiencies or to make the "pool-prevention"-mechanism stronger (which is certainly necessary).

If you have any ideas, let us know!



More splitting of the kernels, replacing most of the X11 code. I think the AMD compiler will derp out of some kernels are seperated, but more can be without error.

One of these days, I'll need to dive into GPU/ OpenCL programming too... it giggity-geeks the hell out of me already, lol!  Grin

georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 19, 2015, 06:54:17 PM
 #2114

If you know C, you should already be able to see how ridiculous most of the code is. Echo is really bad.

I'm fighting with priorities on a daily basis, but I'll take a look at it soon.

You talking about both the AMD and NVidia version here?
They were created by different people as far as I know.

georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 20, 2015, 09:57:53 PM
 #2115

Looks like I oopsed, they're not hashing the same thing over 3k times, they're hashing an INSANE amount of data. What the fuck is all of this...?

I don't remember who put together the AMD miner, I'm not even sure if I was part of spreadcoin community yet back then.

Looks like whoever did this was pretty negligent.

e1ghtSpace
Legendary
*
Offline Offline

Activity: 1526
Merit: 1001


Crypto since 2014


View Profile WWW
November 20, 2015, 10:54:42 PM
 #2116

Looks like I oopsed, they're not hashing the same thing over 3k times, they're hashing an INSANE amount of data. What the fuck is all of this...?

I don't remember who put together the AMD miner, I'm not even sure if I was part of spreadcoin community yet back then.

Looks like whoever did this was pretty negligent.

I remember who it was, it was Mr. Spread. lol Smiley
georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 20, 2015, 11:02:44 PM
 #2117

Looks like I oopsed, they're not hashing the same thing over 3k times, they're hashing an INSANE amount of data. What the fuck is all of this...?

I don't remember who put together the AMD miner, I'm not even sure if I was part of spreadcoin community yet back then.

Looks like whoever did this was pretty negligent.

I remember who it was, it was Mr. Spread. lol Smiley

But didn't someone else (girino?) create an "improved" version after that?

hm.... need to check the old thread's history.

e1ghtSpace
Legendary
*
Offline Offline

Activity: 1526
Merit: 1001


Crypto since 2014


View Profile WWW
November 20, 2015, 11:05:51 PM
 #2118

Looks like I oopsed, they're not hashing the same thing over 3k times, they're hashing an INSANE amount of data. What the fuck is all of this...?

I don't remember who put together the AMD miner, I'm not even sure if I was part of spreadcoin community yet back then.

Looks like whoever did this was pretty negligent.

I remember who it was, it was Mr. Spread. lol Smiley

But didn't someone else (girino?) create an "improved" version after that?

hm.... need to check the old thread's history.
What about the commit history on GitHub? It's on there, right?
georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 20, 2015, 11:07:10 PM
 #2119

What about the commit history on GitHub? It's on there, right?

Yep, exactly... that's why I had girino in my mind in the first place.

georgem (OP)
Legendary
*
Offline Offline

Activity: 1484
Merit: 1007


spreadcoin.info


View Profile WWW
November 20, 2015, 11:11:31 PM
 #2120

Mr. Spread first created an AMD gpu miner, around 20th Nov 2014:

https://bitcointalk.org/index.php?topic=715435.msg9606917#msg9606917

And then during the next month it was decided that girino's GPU miner was "the better one" ?

https://github.com/girino/spreadcoinx11-sgminer

Anyway...

Pages: « 1 ... 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 [106] 107 108 109 110 111 112 113 114 115 116 117 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 ... 328 »
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!