Bitcoin Forum
April 24, 2024, 09:01:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 »
  Print  
Author Topic: [ANN] Stratum mining protocol - ASIC ready  (Read 145767 times)
slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
December 04, 2012, 10:12:11 AM
 #321

luke-jr's code is intentionally checking far too often, trying to make stratum look worse than GBT. Enough of his crap, don't let his influence ruin stratum too.

Stepping out of holy war, do we have some solution how to prevent miners to abuse these calls? Make them non-free?

I think bfgminer users will be a bit surprised when they'll see charges of few hundreds satoshis every 30 seconds :-D.

BitcoinCleanup.com: Learn why Bitcoin isn't bad for the environment
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713949310
Hero Member
*
Offline Offline

Posts: 1713949310

View Profile Personal Message (Offline)

Ignore
1713949310
Reply with quote  #2

1713949310
Report to moderator
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
December 04, 2012, 10:14:33 AM
 #322

luke-jr's code is intentionally checking far too often, trying to make stratum look worse than GBT. Enough of his crap, don't let his influence ruin stratum too.

Stepping out of holy war, do we have some solution how to prevent miners to abuse these calls? Make them non-free?

I think bfgminer users will be a bit surprised when they'll see charges of few hundreds satoshis every 30 seconds :-D.
Well this is what happens with his current approach to unsuspecting miners:
https://bitcointalk.org/index.php?topic=16385.msg1376838#msg1376838

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
Graet
VIP
Legendary
*
Offline Offline

Activity: 980
Merit: 1001



View Profile WWW
December 04, 2012, 10:44:26 AM
 #323

luke-jr's code is intentionally checking far too often, trying to make stratum look worse than GBT. Enough of his crap, don't let his influence ruin stratum too.

Stepping out of holy war, do we have some solution how to prevent miners to abuse these calls? Make them non-free?

I think bfgminer users will be a bit surprised when they'll see charges of few hundreds satoshis every 30 seconds :-D.
Slush,
holy war and associated FUD aside

what attracted me to stratum was low bandwidth minimal pool software which is giving miners great results re stales and bandwidth savings (especially with VarDiff), where is the demand from miners to include this extra "functionality"- I see only 1 individual calling for this
Leave the author of GBT to fix his software and you focus on stratum - rather than changing stratum to suit him Smiley
Please do not bog down stratum with extra unneeded and unwanted code - if miners don't trust the pool they are mining on to do the right thing - why do they mine there at all?

Making a BIP for this is also a diversionary measure to waste your time, please, take a moment, step back and consider what is actually needed and will improve the protocol you have designed Smiley
Thanks for your time and effort creating a viable mining protocol and sharing it with us all Smiley
Graeme


| Ozcoin Pooled Mining Pty Ltd https://ozcoin.net Double Geometric Reward System https://lc.ozcoin.net for Litecoin mining DGM| https://crowncloud.net VPS and Dedicated Servers for the BTC community
-ck
Legendary
*
Offline Offline

Activity: 4088
Merit: 1631


Ruu \o/


View Profile WWW
December 04, 2012, 10:48:52 AM
 #324

Stepping out of holy war, do we have some solution how to prevent miners to abuse these calls? Make them non-free?
Specifically I think it's inappropriate to ask for more than one set of transactions for each stratum notify push. I don't know what else you'd want to do to prevent them using this for every single stratum push.

Developer/maintainer for cgminer, ckpool/ckproxy, and the -ck kernel
2% Fee Solo mining at solo.ckpool.org
-ck
slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
December 04, 2012, 11:02:16 AM
 #325

Ok, let's focus to important things and don't solve something, what's not a problem. I'm going to disable get_transactions() on my pool, at least until Luke stops abusing it in holyminer.

generalfault
Newbie
*
Offline Offline

Activity: 26
Merit: 0


View Profile WWW
December 05, 2012, 02:54:23 AM
 #326

I've been working on my stratum-mining fork (which is pretty far along at this point.) But I've come to a conundrum that I'd like opinions on.

So let's start out with two important points:
there are 3 DB Libraries (Sqlite, Postgresql, and MySql) that I'm maintaining
I do NOT want to double that number (6) (In fact I WILL not... so I have to make a choice)

Currently they are using the native libraries (sqlite3,psycopg2,and MySQLdb)
These libraries are VERY fast (since they are basically just C libs)

I have ported the sqlite DB library interface over to sqlalchemy for testing and to get my footing on what it takes. (quite a bit of work, but doable)

However they do not have connection pooling (not a big deal for this application) and do not auto-reconnect (as far as I know.)

So to get these two features, the only real "popular" option seems to be SQLAlchemy (Core, not ORM)
I've done some profiling and SqlAlchemy bulk loading (after optimizations) seems to be half the speed of the native libraries. It's understandable... I'm not complaining mind you.

This brings me to the question, Is it worth the slowdown (and extra work) for the benefits (connection pooling and reconnects)

Thralen
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
December 07, 2012, 03:47:21 AM
 #327

Okay, stupid question here. I'm sure there is a simple answer but I'm not pulling it right now. Here is my problem:

I'm running BAMT on a headless, caseless setup. I'm trying to install Stratum, I have it installed and working. I have two problems though:

1. Since I'm headless, if I open a terminal window and putty in to the BAMT box I need to keep the computer I am logging in from turned on and the terminal window open, or Stratum stops. I know I can probably use nohup to get around this but since it automatically redirects to a log, and BAMT runs off of a flash drive, I need to figure a way for it to not be logging or I'm going to wear out my flashdrive mighty quickly (not to mention filling it to overflow first probably).

2. Same issue, Bamt, headless, caseless, etc... I want to set Stratum to start in the startup sequence so if I have to power down the BAMT box Stratum automatically starts up before the mining software does. I know where to put it, in theory, to do so but I need the same issue resolved. If the actual solution to my question #1 won't work in a startup sequence, then I need to know how to do the same thing in the startup sequence.

I keep my BAMT box on 24/7 except for reboots. I do not keep the windows machine I am using to log into the BAMT box on 24/7 so I'm trying to figure out how to resolve these issues so I can use Stratum all the time. Sorry if they are newbieish questions but I haven't been doing much with linux in more than a decade (except minimal experimentation to get BAMT going).

Thank you for any help in advance.
Thralen

Supporting bitcoin as best I can with 1. mining, 2. buying with bitcoin, 3. selling (or trying to) for bitcoin. If you make a donation to:  1MahzUUEYJrZ4VbPRm2h5itGZKEguGVZK1  I'll get it into circulation.
Graet
VIP
Legendary
*
Offline Offline

Activity: 980
Merit: 1001



View Profile WWW
December 07, 2012, 03:57:41 AM
Last edit: December 07, 2012, 05:26:43 AM by Graet
 #328

Okay, stupid question here. I'm sure there is a simple answer but I'm not pulling it right now. Here is my problem:

I'm running BAMT on a headless, caseless setup. I'm trying to install Stratum, I have it installed and working. I have two problems though:

1. Since I'm headless, if I open a terminal window and putty in to the BAMT box I need to keep the computer I am logging in from turned on and the terminal window open, or Stratum stops. I know I can probably use nohup to get around this but since it automatically redirects to a log, and BAMT runs off of a flash drive, I need to figure a way for it to not be logging or I'm going to wear out my flashdrive mighty quickly (not to mention filling it to overflow first probably).

2. Same issue, Bamt, headless, caseless, etc... I want to set Stratum to start in the startup sequence so if I have to power down the BAMT box Stratum automatically starts up before the mining software does. I know where to put it, in theory, to do so but I need the same issue resolved. If the actual solution to my question #1 won't work in a startup sequence, then I need to know how to do the same thing in the startup sequence.

I keep my BAMT box on 24/7 except for reboots. I do not keep the windows machine I am using to log into the BAMT box on 24/7 so I'm trying to figure out how to resolve these issues so I can use Stratum all the time. Sorry if they are newbieish questions but I haven't been doing much with linux in more than a decade (except minimal experimentation to get BAMT going).

Thank you for any help in advance.
Thralen
screen is your friend
open a screen session (type screen -help after ssh to headless linux box) do as you would usually the screen session, when you are finished screen -d CTRL-a dto detach out of screen (programs keep running) then turn your pc off
 next time you want to check it ssh in screen -r and it is all still there waiting for you Cheesy

| Ozcoin Pooled Mining Pty Ltd https://ozcoin.net Double Geometric Reward System https://lc.ozcoin.net for Litecoin mining DGM| https://crowncloud.net VPS and Dedicated Servers for the BTC community
Thralen
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
December 07, 2012, 04:22:30 AM
 #329

Thanks Graet, that looks like it'll be a solution for problem #1. There probably isn't any way to integrate that to problem #2 though, is there? Sorry to be a pain and as I said, thank you for the solution. That should at least let me be shutting my windows box off overnight. So long as I don't have an unexpected reboot on the BAMT box it'll work and I can always set it to roll over to non-Stratum proxy mining if it does reboot on me.

Thralen

Supporting bitcoin as best I can with 1. mining, 2. buying with bitcoin, 3. selling (or trying to) for bitcoin. If you make a donation to:  1MahzUUEYJrZ4VbPRm2h5itGZKEguGVZK1  I'll get it into circulation.
Inaba
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000



View Profile WWW
December 07, 2012, 04:22:49 AM
 #330

screen -d?  That's pretty rude!

Just CTRL-a d out of the screen session.  screen -d is kind of like kill -9... it's useful but not something you want to do if you don't have to.


If you're searching these lines for a point, you've probably missed it.  There was never anything there in the first place.
Graet
VIP
Legendary
*
Offline Offline

Activity: 980
Merit: 1001



View Profile WWW
December 07, 2012, 05:26:03 AM
 #331

screen -d?  That's pretty rude!

Just CTRL-a d out of the screen session.  screen -d is kind of like kill -9... it's useful but not something you want to do if you don't have to.


my bad, I rarely detach Tongue
I'll edit post - cheers

| Ozcoin Pooled Mining Pty Ltd https://ozcoin.net Double Geometric Reward System https://lc.ozcoin.net for Litecoin mining DGM| https://crowncloud.net VPS and Dedicated Servers for the BTC community
crazyates
Legendary
*
Offline Offline

Activity: 952
Merit: 1000



View Profile
December 07, 2012, 05:40:29 AM
 #332

I heard of other people using byobu, so I tried it and it works pretty well. Similar to screen, but it's one command to get into it, and I press F6 to exit back to the SSH.

Tips? 1crazy8pMqgwJ7tX7ZPZmyPwFbc6xZKM9
Previous Trade History - Sale Thread
slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
December 07, 2012, 12:03:47 PM
Last edit: December 07, 2012, 12:23:15 PM by slush
 #333

2. Same issue, Bamt, headless, caseless, etc... I want to set Stratum to start in the startup sequence so if I have to power down the BAMT box Stratum automatically starts up before the mining software does. I know where to put it, in theory, to do so but I need the same issue resolved. If the actual solution to my question #1 won't work in a startup sequence, then I need to know how to do the same thing in the startup sequence.

Put something like this to /etc/rc.local
Code:
screen -AmdS proxy /home/youruser/proxydir/mining_proxy.py

Then you can attach console by "screen -x proxy" and detach it (without stopping it) by Ctrl-a,d (double combo)

Thralen
Full Member
***
Offline Offline

Activity: 123
Merit: 100


View Profile
December 07, 2012, 02:34:27 PM
 #334

Thank you Slush, I knew there had to be a way to do it just hadn't been able to figure it out yet.

'screen' did the trick, I had the BAMT box running overnight with my windows box shut down. Stales were under 0.2%, Considering my stales on Slush's pool were always in the 1% - 1.5% range before (don't know why but was willing to accept that to use the pool) it is a massive improvement.

I'll give that entry a shot Slush and see how it works, thank you.

Thralen

Supporting bitcoin as best I can with 1. mining, 2. buying with bitcoin, 3. selling (or trying to) for bitcoin. If you make a donation to:  1MahzUUEYJrZ4VbPRm2h5itGZKEguGVZK1  I'll get it into circulation.
PetrovMichael
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
December 08, 2012, 07:24:39 AM
Last edit: December 08, 2012, 11:11:20 AM by PetrovMichael
 #335

hello Slush

is it very stupid idea ? to add feature to your stratum mining_proxy.exe  additional feature to save stats data per worker and per block to local computer ?

for example "mining_proxy -f" means store block stats data to file to local comp where mining_proxy running

i think a many files will better than 1 file, the file per block (with the worker shares ) will reasonable ?
new block started - new file created? block found - file closed.

csv (or json) format for the stored data will great
antirack
Hero Member
*****
Offline Offline

Activity: 489
Merit: 500

Immersionist


View Profile
December 09, 2012, 10:15:42 AM
 #336

I am calling stratum_proxy.py from a bash wrapper script (inside a GNU screen session) that restarts the proxy and notifies me by email in case it unexpectedly exists. This doesn't happen very often but once in a while.

A couple of hours ago it "crashed" and along with it apparently screen/bash/python as none of them where still running when I found out. It didn't get restarted nor did I get an email.

Code:
Dec  9 15:44:30 miner kernel: [364310.319247] show_signal_msg: 39 callbacks suppressed
Dec  9 15:44:30 miner kernel: [364310.319257] python[3275]: segfault at fffffffffffffffe ip 000000000049c2c9 sp 00007fff96908620 error 4 in python2.7[400000+271000]

Any idea how I could catch this easily in the future? I am running Ubuntu 12.04.
slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
December 09, 2012, 10:46:51 AM
 #337

Strange, I never had segfault on any of my machines (including ARM boxes etc). Do you have some unusual machine configuration? Are other applications stable?

antirack
Hero Member
*****
Offline Offline

Activity: 489
Merit: 500

Immersionist


View Profile
December 09, 2012, 10:53:58 AM
 #338

It's all stable normally. It's a Zotac ID15 with Atom CPU - not very unusual I guess. If I am not wrong it happened the first time. But what bothers me a bit is that the wrapper script was supposed to catch unexpected exits such as this. Any other command line magic that comes to mind? ps aux via crontab every few mins?
slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
December 09, 2012, 10:56:13 AM
 #339

ps aux via crontab every few mins?

That will work, because crash of the proxy won't affect the watchdog itself.

slush (OP)
Legendary
*
Offline Offline

Activity: 1386
Merit: 1097



View Profile WWW
December 09, 2012, 10:58:11 AM
 #340

i think a many files will better than 1 file, the file per block (with the worker shares ) will reasonable ?
new block started - new file created? block found - file closed.

csv (or json) format for the stored data will great

This is completely outside of the project scope. It's more like job for miner itself. Please check documentation of your miner, some of them (cgminer) has some statistics and reporting already implemented.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 [17] 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 »
  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!