Author

Topic: [ANN] SpreadCoin | Decentralize Everything (decentralized blockexplorer coming) - page 221. (Read 790391 times)

member
Activity: 81
Merit: 1002
It was only the wind.
Even fixed up, signature2 accounts for around half of the overall time spent or so...
member
Activity: 81
Merit: 1002
It was only the wind.
Can someone shed some light on this:

Code:
uint64_t signature8[5];
    signature8[0] = psign[0];
    signature8[1] = psign[8];
    signature8[2] = psign[16];
    signature8[3] = psign[24];
    signature8[4] = psign[32];

    uint64_t signature[4];
    signature[0] = (DEC64LEng(psign +  0) >> 8) | (signature8[1] << 56);
    signature[1] = (DEC64LEng(psign +  8) >> 8) | (signature8[2] << 56);
    signature[2] = (DEC64LEng(psign + 16) >> 8) | (signature8[3] << 56);
    signature[3] = (DEC64LEng(psign + 24) >> 8) | (signature8[4] << 56);

    signature8[1] = signature[0] >> 56;
    signature8[2] = signature[1] >> 56;
    signature8[3] = signature[2] >> 56;
    signature8[4] = signature[3] >> 56;

    signbe[0] = SWAP8((signature[0] << 8) | signature8[0]);
    signbe[1] = SWAP8((signature[1] << 8) | signature8[1]);
    signbe[2] = SWAP8((signature[2] << 8) | signature8[2]);
    signbe[3] = SWAP8((signature[3] << 8) | signature8[3]);
    signbe[4] = (signature8[4] << 56) | 0x80000000000000;

Just... what is it even doing?

Got it. Fun fact, that can be replaced by this:

Code:
for(int i = 0; i < 4; ++i) signbe[i] = SWAP8(((ulong *)psign)[i]);

signbe[4] = (((ulong)psign[32]) << 56) | 0x80000000000000;

Whoever wrote that needs to stay away from the alcohol...
legendary
Activity: 1484
Merit: 1007
spreadcoin.info
Small update:

For some days now I have been running a small intranet (4 PCs: 2 Win, 1 Mac , 1 Linux, all communicating per localhost, all CPU-mining.)
where I have probably created two dozen blockchains already, always testing a few things, analyzing hexdata and debug.logs and listening to the chitchats between the nodes and then restarting a new blockchain.

That feeling when you ignite a blockchain and it comes to life --> pretty legendary.  Grin

I like how quickly you can test things in such an intranet.

So I am slowly learning the secrets of what an overlay network is made of.

It will not take much longer before your patience will pay of.

Stay tuned.

PS: I will see that I can post some Screenshots and Infos about what I am actually doing right now to help you pass your waiting time. This will follow soon.
hero member
Activity: 646
Merit: 501
Ni dieu ni maître
300 SPR for the person that guesses when Georgem goes Legendary (nearest will do).

What is the criteria for going Legendary?

Also, by when, do you mean a specific date?
legendary
Activity: 1456
Merit: 1000
300 SPR for the person that guesses when Georgem goes Legendary (nearest will do).
member
Activity: 81
Merit: 1002
It was only the wind.
Not quite - you need to take into consideration that the massive number of SHA256 hashes take MOST of the time. So the REMAINING code can probably be doubled in speed, and I'm not sure what I can do with the signature yet.

Right now, signature2 is not looking good - https://ottrbutt.com/tmp/spreadx11-sig2-analysis.png -- it's bigger than the code cache by a lot (code cache on GCN is 32KiB), and uses enough registers to limit it to one wave in flight. Since the kernel also uses some memory, it probably would benefit from more waves in flight.

Interesting,
so SHA256d is THE problem, although SPH is the most obvious thing that can be improved.

I need to look into this CodeXL thing to analyze kernels.

PS: mr. spread asks if you have any NSFW pics of naked hamster girls.  Cheesy

SHA256d, at least the code itself, probably isn't going to get too much faster. HOWEVER, it can be improved, I think, by improving the structure of the kernel. It's partially unrolled, possibly wasting space. There's a tradeoff in rolling it up - I'll have to branch, or use conditional moves - but I'm pretty sure it'll be WELL worth it to decrease register usage and shrink code size.

PS: No hamsters in my collection that I recall, but I *do* have a cute mouse: https://ottrbutt.com/tmp/3121bcd0f67852c01ae4a582bd4ab24e.jpg
sr. member
Activity: 268
Merit: 250
Weird but, who knows maybe somehow the wallet went mad Smiley

I'm running NVidia without issues, except every now and then a rejected block.

I have observed the following in the past (although I don't know if there's a causal relationship there):

1) I get the behavior like you describe when I overclock too much, it's a very fine line in my experience

2) Running GPU and CPU mining at the same time sometimes rejects blocks also (but not as often as you describe)

3) Cooling is important, mining goes haywire when the CPU/GPU temperature is too hot (can happen even on a cold day Smiley

ADDED: 4) Make sure the ports are open in the firewall!!

hope this helps!
legendary
Activity: 1484
Merit: 1007
spreadcoin.info
this is correct ...

it is not difficult to do more than that with the right amount of equipment ...

i cant specify what the current state of coin minting would be on a daily basis - but when the hashrate was much higher - thefram brought in many  hundreds of spr a day ... and the difficulty was higher than it is today ...

and no - i dont have just one or two 750ti cards ...

i was only ( only - as in the only miner ) sp's optimized private miner at the time ... and still do when i do mine spr ...

#crysx

Thanks for your input.
Can't wait to start experimenting with GPU mining and OpenCL.
But there are more pressing issues for me right now.
member
Activity: 81
Merit: 1002
It was only the wind.
It's not really the SHA256d that's bad, it's the REST of X11.

You mean the way the whole SPH library has been ported to OpenCL, right?

If you wanna call it that. It hasn't been ported so much as copypasted, and on top of this, SPH is a BAD library to use for any kind of speed-critical application. Its main purpose is to be portable across a wide range of CPUs, not perform well.

I understand now, thanks.
This means that the efficiency can probably be increased by a tenfold, I would guess... wow!

Not quite - you need to take into consideration that the massive number of SHA256 hashes take MOST of the time. So the REMAINING code can probably be doubled in speed, and I'm not sure what I can do with the signature yet.

Right now, signature2 is not looking good - https://ottrbutt.com/tmp/spreadx11-sig2-analysis.png -- it's bigger than the code cache by a lot (code cache on GCN is 32KiB), and uses enough registers to limit it to one wave in flight. Since the kernel also uses some memory, it probably would benefit from more waves in flight.
legendary
Activity: 1484
Merit: 1007
spreadcoin.info
unfortunately i didn't take screenshot :/, and indeed, these are 3x750ti cards

Can you mine just another block (just 1) and if the problem persists, create a screenshot this time.

Yes, your getinfo seems pretty normal.
legendary
Activity: 1484
Merit: 1007
spreadcoin.info
unfortunately i didn't take screenshot :/, and indeed, these are 3x750ti cards

I was running wallet from 11-08-2015
Then updated to latest from 09-2015 - and in new wallet these transactions are completely invisible, like they never existed :O

In previous one they were marked like  0 confirmations, rejected... tho i remember that i literally was behind the PC when first block was found ~ 6pm  yesterday, and early in the morning (8am) there were ~ 100 coins, which seemed a bit too much, but then, its all about luck and statistics Smiley
Weird but, who knows maybe somehow the wallet went mad Smiley

Well, if I understand you correctly, those blocks never made it into the blockchain.

In the new wallet (v0.9.16.1), were the new blocks you found mentioned as immature SPR?
If everything goes right they should be mentioned as immature SPR right away.

As a side note: Are you able to send SPR in your environment? Maybe add a tx fee of 0.001 SPR.
member
Activity: 81
Merit: 1002
It was only the wind.
It's not really the SHA256d that's bad, it's the REST of X11.

You mean the way the whole SPH library has been ported to OpenCL, right?

If you wanna call it that. It hasn't been ported so much as copypasted, and on top of this, SPH is a BAD library to use for any kind of speed-critical application. Its main purpose is to be portable across a wide range of CPUs, not perform well.
legendary
Activity: 1151
Merit: 1001
unfortunately i didn't take screenshot :/, and indeed, these are 3x750ti cards

I was running wallet from 11-08-2015
Then updated to latest from 09-2015 - and in new wallet these transactions are completely invisible, like they never existed :O

In previous one they were marked like  0 confirmations, rejected... tho i remember that i literally was behind the PC when first block was found ~ 6pm  yesterday, and early in the morning (8am) there were ~ 100 coins, which seemed a bit too much, but then, its all about luck and statistics Smiley
Weird but, who knows maybe somehow the wallet went mad Smiley
current getinfo is perhaps completely normal
Quote
{
"version" : 91601,
"protocolversion" : 70019,
"walletversion" : 60000,
"balance" : 0.03050346,
"blocks" : 681617,
"timeoffset" : 0,
"connections" : 8,
"proxy" : "",
"difficulty" : 3.95025358,
"networkhashps" : 313604215,
"moneysupply" : 4288969.47260666,
"testnet" : false,
"keypoololdest" : 1440327664,
"keypoolsize" : 102,
"paytxfee" : 0.00000000,
"mininput" : 0.00001000,
"errors" : ""
}
legendary
Activity: 2870
Merit: 1091
--- ChainWorks Industries ---
Last night my 3 cards mining spread got ~ 100coins, I saw these in the morning showing in the wallet, and then suddenly they all became "rejected" ?!
Any idea?!
Are there newer wallet/miners :S

No, most people are still mining with the GPU miners created by Mr. Spread / girino and tsiv.

Can you provide us with a getinfo of the wallet you used for mining?

BTW mining 100 coins with 3 cards in 1 day seems unbelievable... what's going on here? Could it be that you started the wallet in testnet mode?

Every day about 8000 SPR are mined. Right now nethash is around 300MH/s so you need about 3.75MH/s to get 100 coins a day. That is about 2-3 GTX750ti or one GTX970.

Yes, this makes sense alright.
I haven't done any GPU mining yet, so I have only secondary opinions from other people about what can be achieved with what GPU model.

this is correct ...

it is not difficult to do more than that with the right amount of equipment ...

i cant specify what the current state of coin minting would be on a daily basis - but when the hashrate was much higher - thefram brought in many  hundreds of spr a day ... and the difficulty was higher than it is today ...

and no - i dont have just one or two 750ti cards ...

i was only ( only - as in the only miner ) sp's optimized private miner at the time ... and still do when i do mine spr ...

#crysx
member
Activity: 81
Merit: 1002
It was only the wind.
What I don't get is why the AMD miner is so much worse than nvidia; and it has problems too.

I can't really judge it (yet), but it's probably badly implemented.

It's largely SPH code... really, really bad. About the same as the original darkcoin-mod.

EDIT: Idea! What's the padding made out of? Maybe I can shortcut the memory usage!

What I want to find out how many times we actually need to calculate those double-SHA256 for the whole 200KBytes.
Maybe we can skip / hold a few iterations.

It's not really the SHA256d that's bad, it's the REST of X11.
legendary
Activity: 1484
Merit: 1007
spreadcoin.info
Last night my 3 cards mining spread got ~ 100coins, I saw these in the morning showing in the wallet, and then suddenly they all became "rejected" ?!
Any idea?!
Are there newer wallet/miners :S

No, most people are still mining with the GPU miners created by Mr. Spread / girino and tsiv.

Can you provide us with a getinfo of the wallet you used for mining?

BTW mining 100 coins with 3 cards in 1 day seems unbelievable... what's going on here? Could it be that you started the wallet in testnet mode?

Every day about 8000 SPR are mined. Right now nethash is around 300MH/s so you need about 3.75MH/s to get 100 coins a day. That is about 2-3 GTX750ti or one GTX970.

Yes, this makes sense alright.
I haven't done any GPU mining yet, so I have only secondary opinions from other people about what can be achieved with what GPU model.
legendary
Activity: 1694
Merit: 1002
Decentralize Everything
Last night my 3 cards mining spread got ~ 100coins, I saw these in the morning showing in the wallet, and then suddenly they all became "rejected" ?!
Any idea?!
Are there newer wallet/miners :S

No, most people are still mining with the GPU miners created by Mr. Spread / girino and tsiv.

Can you provide us with a getinfo of the wallet you used for mining?

BTW mining 100 coins with 3 cards in 1 day seems unbelievable... what's going on here? Could it be that you started the wallet in testnet mode?

Every day about 8000 SPR are mined. Right now nethash is around 300MH/s so you need about 3.75MH/s to get 100 coins a day. That is about 2-3 GTX750ti or one GTX970.

Fair point.  You're doing better than I am though!

Could you post your getinfo details please?  We've never encountered anything like you describe before.
legendary
Activity: 1176
Merit: 1015
Last night my 3 cards mining spread got ~ 100coins, I saw these in the morning showing in the wallet, and then suddenly they all became "rejected" ?!
Any idea?!
Are there newer wallet/miners :S

No, most people are still mining with the GPU miners created by Mr. Spread / girino and tsiv.

Can you provide us with a getinfo of the wallet you used for mining?

BTW mining 100 coins with 3 cards in 1 day seems unbelievable... what's going on here? Could it be that you started the wallet in testnet mode?

Every day about 8000 SPR are mined. Right now nethash is around 300MH/s so you need about 3.75MH/s to get 100 coins a day. That is about 2-3 GTX750ti or one GTX970.
legendary
Activity: 1484
Merit: 1007
spreadcoin.info
Last night my 3 cards mining spread got ~ 100coins, I saw these in the morning showing in the wallet, and then suddenly they all became "rejected" ?!
Any idea?!
Are there newer wallet/miners :S

No, most people are still mining with the GPU miners created by Mr. Spread / girino and tsiv.

Can you provide us with a getinfo of the wallet you used for mining?

BTW mining 100 coins with 3 cards in 1 day seems unbelievable... what's going on here? Could it be that you started the wallet in testnet mode?
legendary
Activity: 1151
Merit: 1001
Last night my 3 cards mining spread got ~ 100coins, I saw these in the morning showing in the wallet, and then suddenly they all became "rejected" ?!
Any idea?!
Are there newer wallet/miners :S
Jump to: