Author

Topic: [1500 TH] p2pool: Decentralized, DoS-resistant, Hop-Proof pool - page 278. (Read 2592023 times)

member
Activity: 97
Merit: 11
I am having issues with my bitcoind not responding after a few hours running. I am trying to keep my p2pool node active. Just cant figure out what bitcoind is crashing.
member
Activity: 61
Merit: 10
How high can the efficiency go?
On my node I'm running around 107% right now with 20 peers (9 incoming) (plus my miners), but last night it hit 117.6% when I had 14 peers ( 6 incoming).
How is the efficiency deterermined / calculated? what are the criteria / factors?
Thanks.
Efficiency is a measure of how your node is doing compared to the rest of the network.  It compares your orphans/deads to the network.  The lower your ratio of orphans/deads to the network's, the higher your efficiency.

If you want to see the code...

web.py:
Code:
global_stale_prop = p2pool_data.get_average_stale_prop(node.tracker, node.best_share_var.value, look behind)
...
efficiency=(1 - (stale_orphan_shares+stale_doa_shares)/shares)/(1 - global_stale_prop) if shares else None

data.py:
Code:
def get_average_stale_prop(tracker, share_hash, lookbehind):
    stales = sum(1 for share in tracker.get_chain(share_hash, lookbehind) if share.share_data['stale_info'] is not None)
    return stales/(lookbehind + stales)
Thank you jonnybravo0311, that's exactly what I'm looking for.
legendary
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
How high can the efficiency go?
On my node I'm running around 107% right now with 20 peers (9 incoming) (plus my miners), but last night it hit 117.6% when I had 14 peers ( 6 incoming).
How is the efficiency deterermined / calculated? what are the criteria / factors?
Thanks.
Efficiency is a measure of how your node is doing compared to the rest of the network.  It compares your orphans/deads to the network.  The lower your ratio of orphans/deads to the network's, the higher your efficiency.

If you want to see the code...

web.py:
Code:
global_stale_prop = p2pool_data.get_average_stale_prop(node.tracker, node.best_share_var.value, look behind)
...
efficiency=(1 - (stale_orphan_shares+stale_doa_shares)/shares)/(1 - global_stale_prop) if shares else None

data.py:
Code:
def get_average_stale_prop(tracker, share_hash, lookbehind):
    stales = sum(1 for share in tracker.get_chain(share_hash, lookbehind) if share.share_data['stale_info'] is not None)
    return stales/(lookbehind + stales)
member
Activity: 61
Merit: 10
How high can the efficiency go?
On my node I'm running around 107% right now with 20 peers (9 incoming) (plus my miners), but last night it hit 117.6% when I had 14 peers ( 6 incoming).
How is the efficiency deterermined / calculated? what are the criteria / factors?
Thanks.
legendary
Activity: 1344
Merit: 1024
Mine at Jonny's Pool

Shellshock, Aftershock & P2Pool

If you have not heard, a new vulnerability called Shellshock — also called the "Bash Bug" — is affecting both Linux computers and Macs, and it has the potential to let attackers take control of your computer or server.

Many P2Pool nodes run on Linux and Mac, to test your node open up a shell and run:

Code:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"

If you see:

Quote
vulnerable
this is a test

You are vulnerable and should update bash immediately.

Linux users should run:

Code:
sudo apt-get update
sudo apt-get install bash

Apple has promised a security fix for Mac users soon.


Thanks for the heads up windpath!  Once you've installed the patched shell this is what you'll see:
Code:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
bash: warning: x: ignoring function definition attempt
bash: error importing function definition for `x'
this is a test
That's on Ubuntu 14.04LTS fully updated as of the time of writing this post.  OSX 10.9.5 Mavericks is still vulnerable:
Code:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
vulnerable
this is a test
sr. member
Activity: 308
Merit: 250
Decentralize your hashing - p2pool - Norgz Pool

Shellshock, Aftershock & P2Pool

If you have not heard, a new vulnerability called Shellshock — also called the "Bash Bug" — is affecting both Linux computers and Macs, and it has the potential to let attackers take control of your computer or server.

Many P2Pool nodes run on Linux and Mac, to test your node open up a shell and run:

Code:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"

If you see:

Quote
vulnerable
this is a test

You are vulnerable and should update bash immediately.

Linux users should run:

Code:
sudo apt-get update
sudo apt-get install bash
One advantage of running windows servers 😉

Apple has promised a security fix for Mac users soon.


legendary
Activity: 1258
Merit: 1027

Shellshock, Aftershock & P2Pool

If you have not heard, a new vulnerability called Shellshock — also called the "Bash Bug" — is affecting both Linux computers and Macs, and it has the potential to let attackers take control of your computer or server.

Many P2Pool nodes run on Linux and Mac, to test your node open up a shell and run:

Code:
env x='() { :;}; echo vulnerable' bash -c "echo this is a test"

If you see:

Quote
vulnerable
this is a test

You are vulnerable and should update bash immediately.

Linux users should run:

Code:
sudo apt-get update
sudo apt-get install bash

Apple has promised a security fix for Mac users soon.

full member
Activity: 132
Merit: 100
Well bugger me.  Just found my first ever block - only took me 18 months.........

That deserves a spliff.   Nice  Smiley

Sarcasm alert! :-)
member
Activity: 85
Merit: 10
Well bugger me.  Just found my first ever block - only took me 18 months.........

That deserves a spliff.   Nice  Smiley

Cool Dude!!!!!
I guess I will never get one, just hung up my operation.... 4T and the income verses electric is not good.....

Hope you find more!!!!
-ck
legendary
Activity: 4088
Merit: 1631
Ruu \o/
Is there anyone mining here with an SP30 that wants to report how well they perform on p2pool please? Thanks.

I got the answer I needed on the spondoolies thread, thanks. It works fine.
legendary
Activity: 1258
Merit: 1027
Well bugger me.  Just found my first ever block - only took me 18 months.........

That deserves a spliff.   Nice  Smiley

Cheers  Grin
hero member
Activity: 686
Merit: 500
WANTED: Active dev to fix & re-write p2pool in C
Well bugger me.  Just found my first ever block - only took me 18 months.........

That deserves a spliff.   Nice  Smiley
member
Activity: 61
Merit: 10
member
Activity: 78
Merit: 10
Does anyone know of any good bitcoin p2pool scanners besides these two:
http://p2pool-nodes.info
http://p2pool.hostv.pl

Thanks!
member
Activity: 61
Merit: 10
Instead of using Control-C, you can issue the kill command:
Code:
kill -KILLARG pid
For example
Code:
kill -15 1234
To get a listing of all available on your system, just do:
Code:
kill -l
That will return a list something like this:
Code:
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
 5) SIGTRAP 6) SIGABRT 7) SIGEMT 8) SIGFPE
 9) SIGKILL 10) SIGBUS 11) SIGSEGV 12) SIGSYS
13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGURG
17) SIGSTOP 18) SIGTSTP 19) SIGCONT 20) SIGCHLD
21) SIGTTIN 22) SIGTTOU 23) SIGIO 24) SIGXCPU
25) SIGXFSZ 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH
29) SIGINFO 30) SIGUSR1 31) SIGUSR2
By default, if you don't specify the name/number, kill will use 15 (SIGTERM).  It's basically a nice way of telling the process to terminate.  If you're feeling particularly uncaring, you can use 9 (SIGKILL), which effectively bypasses the process altogether and tells the kernel to force the process to die.  Control C is effectively sending 2 (SIGINT) to the process.  It's a bit more complex, as Control C sends the SIGINT to all of the processes in the process group controlled by the program; however, for p2pool, it's effectively the same since there's only a single process.
Thank you very much, jonnybravo0311. Intelligent, pointed, and useful verbosity at it's best. I'll spend some time going over the man for kill, now that you've pointed me in that direction.
member
Activity: 61
Merit: 10
Is there a graceful method of shutting down the p2pool terminal? I haven't been able to find anything for it so I'm simply using Control C ... is there another / better option?

That's as graceful as it gets........you could sing a lullaby  Wink

You don't really want to be turning it off - let it run, & run, & run........
Thanks for the answer.
I'm still experimenting so it's on and off at the moment.
Next step is set it up for merged.
Ordered new dual xeon server to be dedicated to pools, once it's ready to go then it will run & run & run ...

I wouldn't buy hardware to run p2pool. My miners and my p2pool node are not in the same place and my efficiency is currently 108%. Pay $20 a month for a Linode near your miners and stop paying when you stop mining (which for most of us is any minute now).

You'll get incredible network connectivity and the flexibility to turn things off without being stuck with equipment you don't need (like thousands of dollars of ASICs Smiley
I appreciate the suggestion, but I currently have just shy of 60 computers including 12 proliant blades ... so, I'm not really concerned with being stuck with hardware, they make a great obstacle course for the kitties.
It was $2,500 for all the parts, so it's pretty reasonable for a server. The funds came from mining so it's not out-of-pocket funds.
I plan on running numerous pools from it at the same time.
I have a 50mb/s (down) fibre connection.
Running it will help to reduce the winter gas bill.
My electricity costs are fairly low where I live.
You make some good points regarding rental and about self-mining no longer being sustainable for most. I agree, it won't be long until it can no longer provide a positive ROI.
Thanks for the feedback.
member
Activity: 83
Merit: 10
Is there a graceful method of shutting down the p2pool terminal? I haven't been able to find anything for it so I'm simply using Control C ... is there another / better option?

That's as graceful as it gets........you could sing a lullaby  Wink

You don't really want to be turning it off - let it run, & run, & run........
Thanks for the answer.
I'm still experimenting so it's on and off at the moment.
Next step is set it up for merged.
Ordered new dual xeon server to be dedicated to pools, once it's ready to go then it will run & run & run ...

I wouldn't buy hardware to run p2pool. My miners and my p2pool node are not in the same place and my efficiency is currently 108%. Pay $20 a month for a Linode near your miners and stop paying when you stop mining (which for most of us is any minute now).

You'll get incredible network connectivity and the flexibility to turn things off without being stuck with equipment you don't need (like thousands of dollars of ASICs Smiley
legendary
Activity: 1344
Merit: 1024
Mine at Jonny's Pool
Is there a graceful method of shutting down the p2pool terminal? I haven't been able to find anything for it so I'm simply using Control C ... is there another / better option?

That's as graceful as it gets........you could sing a lullaby  Wink

You don't really want to be turning it off - let it run, & run, & run........
Thanks for the answer.
I'm still experimenting so it's on and off at the moment.
Next step is set it up for merged.
Ordered new dual xeon server to be dedicated to pools, once it's ready to go then it will run & run & run ...
Instead of using Control-C, you can issue the kill command:
Code:
kill -KILLARG pid
For example
Code:
kill -15 1234
To get a listing of all available on your system, just do:
Code:
kill -l
That will return a list something like this:
Code:
1) SIGHUP 2) SIGINT 3) SIGQUIT 4) SIGILL
 5) SIGTRAP 6) SIGABRT 7) SIGEMT 8) SIGFPE
 9) SIGKILL 10) SIGBUS 11) SIGSEGV 12) SIGSYS
13) SIGPIPE 14) SIGALRM 15) SIGTERM 16) SIGURG
17) SIGSTOP 18) SIGTSTP 19) SIGCONT 20) SIGCHLD
21) SIGTTIN 22) SIGTTOU 23) SIGIO 24) SIGXCPU
25) SIGXFSZ 26) SIGVTALRM 27) SIGPROF 28) SIGWINCH
29) SIGINFO 30) SIGUSR1 31) SIGUSR2
By default, if you don't specify the name/number, kill will use 15 (SIGTERM).  It's basically a nice way of telling the process to terminate.  If you're feeling particularly uncaring, you can use 9 (SIGKILL), which effectively bypasses the process altogether and tells the kernel to force the process to die.  Control C is effectively sending 2 (SIGINT) to the process.  It's a bit more complex, as Control C sends the SIGINT to all of the processes in the process group controlled by the program; however, for p2pool, it's effectively the same since there's only a single process.
member
Activity: 61
Merit: 10
Is there a graceful method of shutting down the p2pool terminal? I haven't been able to find anything for it so I'm simply using Control C ... is there another / better option?

That's as graceful as it gets........you could sing a lullaby  Wink

You don't really want to be turning it off - let it run, & run, & run........
Thanks for the answer.
I'm still experimenting so it's on and off at the moment.
Next step is set it up for merged.
Ordered new dual xeon server to be dedicated to pools, once it's ready to go then it will run & run & run ...
Jump to: