Bitcoin Forum
August 22, 2017, 06:56:56 PM *
News: Latest stable version of Bitcoin Core: 0.14.2  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 2 3 4 5 6 7 [8] 9 10 11 12 »  All
  Print  
Author Topic: pushpool - open source pool software  (Read 118454 times)
Vladimir
Hero Member
*****
Offline Offline

Activity: 812


-


View Profile
June 25, 2011, 08:48:01 AM
 #141

Anyone got it to compile on freebsd yet? Any pointers?

-
Be very wary of relying on JavaScript for security on sites such as blockchain.info and brainwallet.org. The site can change the JavaScript at any time unless you take unusual precautions, and browsers are not generally known for their airtight security.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1503428216
Hero Member
*
Offline Offline

Posts: 1503428216

View Profile Personal Message (Offline)

Ignore
1503428216
Reply with quote  #2

1503428216
Report to moderator
1503428216
Hero Member
*
Offline Offline

Posts: 1503428216

View Profile Personal Message (Offline)

Ignore
1503428216
Reply with quote  #2

1503428216
Report to moderator
1503428216
Hero Member
*
Offline Offline

Posts: 1503428216

View Profile Personal Message (Offline)

Ignore
1503428216
Reply with quote  #2

1503428216
Report to moderator
Vladimir
Hero Member
*****
Offline Offline

Activity: 812


-


View Profile
June 25, 2011, 08:51:34 AM
 #142

I keep getting "configure: error: Missing required libevent" in bsd. It's installed though.

You need full libevent devel package setup, not just the library.




Jeff some more help on this one. I have no idea what you mean by "You need full libevent devel package setup, not just the library." Please explain.

-
Xenland
Legendary
*
Offline Offline

Activity: 980


I'm not just any shaman, I'm a Sha256man


View Profile
June 26, 2011, 08:48:12 AM
 #143

I keep getting "configure: error: Missing required libevent" in bsd. It's installed though.

You need full libevent devel package setup, not just the library.




Jeff some more help on this one. I have no idea what you mean by "You need full libevent devel package setup, not just the library." Please explain.

I think he means you need the development package as well as the binary package Wink
Vladimir
Hero Member
*****
Offline Offline

Activity: 812


-


View Profile
June 27, 2011, 02:37:29 PM
 #144

I've been running pushpoold on my box for sometime and about every 12 hours of running or so it begins to error the error log says WARN too many open files anyone else run into any similar issues?

Yep same issue. On my volumes it lives for not more than 5 minutes than this. My software detects this within 2 seconds, cleans it up, kill/restarts pushpool. ulimit -n is 32k. Not helping much...

The best I got with it is 5% of stales which is not acceptable. Back to older ways it is than, for now at least. Will see if I can find time to reimplement it with Erlang.


-
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
June 27, 2011, 02:45:26 PM
 #145

blkmond is what cleans up the open files (actually connections).

It's not a great solution, but it's the way pushpoold was designed.

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

Activity: 812


-


View Profile
June 27, 2011, 02:51:16 PM
 #146

blkmond is what cleans up the open files (actually connections).

It's not a great solution, but it's the way pushpoold was designed.

blkmod just sends USR1, is that correct? Or does it do something else? I do not use it, but I ahve some other software sending USR1 to pushpoold when a block is solved.

Have I messed up something badly here?


actually I used this (thought that a handful of lines in perl is better than a handful of pages of python):

Quote
#!/usr/bin/perl

use common::sense ;
use File::Tail ;

my $bitcoinLog = File::Tail->new("/s/bitcoind/db/debug.log");

while ( defined ( my $line =  $bitcoinLog->read ) ) {
    $line =~ /ACCEPT/ or next ;
    foreach( split ( /\n/ , `ps aux | grep pushpoold | grep -v grep` ) ) {
        /^.*?(\d+)/ and $1 and say "sent SIGUSR1 to process $1" and `kill -USR1 $1` ;
    }
}

It took me much less time to write the above code than even skim over blkmond's code.

-
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
June 27, 2011, 03:04:30 PM
 #147

As far as I know, I think that is all it does. I haven't looked too closely at it.  So you are doing that already and still having the files issue?

Have you changed your hard and soft file limits?

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

Activity: 812


-


View Profile
June 27, 2011, 03:12:44 PM
 #148

As far as I know, I think that is all it does. I haven't looked too closely at it.  So you are doing that already and still having the files issue?

Have you changed your hard and soft file limits?

/etc/security/limits.conf:
Quote
root     soft    nofile      34096
root     hard    nofile      34096

Once I point lots of Ghps to this it does not live much longer than 5 minutes, perhaps simply not enough time between solved blocks.

-
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
June 27, 2011, 03:32:20 PM
 #149

How much is a lot?  It should be able to handle ~450 GH/s before buckling.

I have my notes at a home on things that need to be changed in addition to hard and soft file limits.  I'm trying to recall them from memory but I'm drawing a blank.

Oh, it's also very dependant on the speed of the backend DB.  If your backend db server is slow or over a slow link, it will start getting backed up and eventually never catch up.

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

Activity: 812


-


View Profile
June 27, 2011, 03:41:32 PM
 #150

Oh, it's also very dependant on the speed of the backend DB.  If your backend db server is slow or over a slow link, it will start getting backed up and eventually never catch up.

Good idea, will change the code to cut db backend balls out. I am happy with just using log files.

-
Inaba
Legendary
*
Offline Offline

Activity: 1260



View Profile WWW
June 27, 2011, 03:46:46 PM
 #151

I rewrote pretty much all of the DB code in my implementation of PP.  The stock implementation is atrocious and unusable/unmaintainable.

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

Activity: 1470


View Profile
June 27, 2011, 06:03:39 PM
 #152

Version 0.5.1 released.

This is a bug fix release, with two minor bug fixes:

- fix stderr logging
- better configure script host detection


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
phorensic
Hero Member
*****
Offline Offline

Activity: 630



View Profile
June 28, 2011, 04:09:25 AM
 #153

All the new ideas and coding on the github site in the last two weeks and that's all we get in the official fork?  Gahhh!!!  ETA for v0.6?  "When it's ready" amirite?
jgarzik
Legendary
*
Offline Offline

Activity: 1470


View Profile
June 28, 2011, 04:31:21 AM
 #154

All the new ideas and coding on the github site in the last two weeks and that's all we get in the official fork?  Gahhh!!!  ETA for v0.6?  "When it's ready" amirite?

The pull queue is basically empty, so I'm not sure what you're talking about.


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
DaMan
Full Member
***
Offline Offline

Activity: 126



View Profile
June 28, 2011, 08:44:12 AM
 #155

is there a tutorial for Centos 5 out there? I can't get it to work.
asper
Newbie
*
Offline Offline

Activity: 23


View Profile
June 28, 2011, 01:24:55 PM
 #156

I keep getting "configure: error: Missing required libevent" in bsd. It's installed though.

You need full libevent devel package setup, not just the library.




Jeff some more help on this one. I have no idea what you mean by "You need full libevent devel package setup, not just the library." Please explain.

Yes, the same problem - i've installed libevent (cd /usr/ports/devel/libevent && make install clean), but there's no use for pushpool to compile, the configure script stops, saying:

Quote
checking for event_base_new in -levent... no
configure: error: Missing required libevent

Can somebody tell me, where can I get this "full libevent devel package setup" ?
Vladimir
Hero Member
*****
Offline Offline

Activity: 812


-


View Profile
June 28, 2011, 04:07:36 PM
 #157

you could try to compile pushpool on 32bit linux and than run it in binary linux emulation mode on freebsd. One option is to use statify on it to avoid messing with linux libs on freebsd. I have not tried yet since all my linuxes are 64bit and just did not have time to get this sorted. Theoretically it might just work.
Let me know how it goes if you try it.

-
jgarzik
Legendary
*
Offline Offline

Activity: 1470


View Profile
June 28, 2011, 05:41:17 PM
 #158

Jeff some more help on this one. I have no idea what you mean by "You need full libevent devel package setup, not just the library." Please explain.

Yes, the same problem - i've installed libevent (cd /usr/ports/devel/libevent && make install clean), but there's no use for pushpool to compile, the configure script stops, saying:

Quote
checking for event_base_new in -levent... no
configure: error: Missing required libevent

Can somebody tell me, where can I get this "full libevent devel package setup" ?

Sounds like user error.  INSTALL file covers the basics of how to use a standard GNU autotools configure script.  A script cannot magically detect site-specific directories for software installation.

If you have a bunch of stuff installed into non-standard directory /usr/local -- common on FreeBSD -- then you want something like

Code:
CFLAGS="-O2 -Wall -g -I/usr/local/include" LDFLAGS="-L/usr/local/lib" ./configure


Jeff Garzik, bitcoin core dev team and BitPay engineer; opinions are my own, not my employer.
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Vladimir
Hero Member
*****
Offline Offline

Activity: 812


-


View Profile
June 28, 2011, 05:54:04 PM
 #159

not everyone is c developer and familiar with autotools and it is not "site specific" it is OS specific BTW

-
martok
Full Member
***
Offline Offline

Activity: 140


View Profile
June 29, 2011, 02:22:40 AM
 #160

Yep same issue. On my volumes it lives for not more than 5 minutes than this. My software detects this within 2 seconds, cleans it up, kill/restarts pushpool. ulimit -n is 32k. Not helping much...

The best I got with it is 5% of stales which is not acceptable. Back to older ways it is than, for now at least. Will see if I can find time to reimplement it with Erlang.


You're getting the stales because you're killing pushpoold. Pp keeps a log of what work it has issued and when a miner submits work to a newly restarted pushpoold, it won't accept the share because it is not in the pp log.
Pages: « 1 2 3 4 5 6 7 [8] 9 10 11 12 »  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!