Bitcoin Forum
April 24, 2024, 02:19:30 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 »  All
  Print  
Author Topic: pushpool - open source pool software  (Read 120157 times)
Vladimir
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1001


-


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

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.

-
1713925170
Hero Member
*
Offline Offline

Posts: 1713925170

View Profile Personal Message (Offline)

Ignore
1713925170
Reply with quote  #2

1713925170
Report to moderator
1713925170
Hero Member
*
Offline Offline

Posts: 1713925170

View Profile Personal Message (Offline)

Ignore
1713925170
Reply with quote  #2

1713925170
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713925170
Hero Member
*
Offline Offline

Posts: 1713925170

View Profile Personal Message (Offline)

Ignore
1713925170
Reply with quote  #2

1713925170
Report to moderator
1713925170
Hero Member
*
Offline Offline

Posts: 1713925170

View Profile Personal Message (Offline)

Ignore
1713925170
Reply with quote  #2

1713925170
Report to moderator
Xenland
Legendary
*
Offline Offline

Activity: 980
Merit: 1003


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


View Profile
June 26, 2011, 08:48:12 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.

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

Activity: 812
Merit: 1001


-


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

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
Merit: 1000



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

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
Merit: 1001


-


View Profile
June 27, 2011, 02:51:16 PM
Last edit: June 28, 2011, 07:30:13 AM by Vladimir
 #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.

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
Merit: 1000



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

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
Merit: 1001


-


View Profile
June 27, 2011, 03:12:44 PM
Last edit: June 27, 2011, 03:23:43 PM by Vladimir
 #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?

/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
Merit: 1000



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

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
Merit: 1001


-


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

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
Merit: 1000



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

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: 1596
Merit: 1091


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

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, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
phorensic
Hero Member
*****
Offline Offline

Activity: 630
Merit: 500



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

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: 1596
Merit: 1091


View Profile
June 28, 2011, 04:31:21 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?

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


Jeff Garzik, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
DaMan
Full Member
***
Offline Offline

Activity: 126
Merit: 100



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

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

Activity: 22
Merit: 0


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

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
Merit: 1001


-


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

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: 1596
Merit: 1091


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

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, Bloq CEO, former bitcoin core dev team; opinions are my own.
Visit bloq.com / metronome.io
Donations / tip jar: 1BrufViLKnSWtuWGkryPsKsxonV2NQ7Tcj
Vladimir
Hero Member
*****
Offline Offline

Activity: 812
Merit: 1001


-


View Profile
June 28, 2011, 05:54:04 PM
Last edit: June 28, 2011, 06:17:52 PM by Vladimir
 #158

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
Merit: 100


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

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.
martok
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
June 29, 2011, 02:24:04 AM
 #160

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.
Well that changes the limit for root. But you are not running pushpool as root right? Smiley
Pages: « 1 2 3 4 5 6 7 [8] 9 10 11 »  All
  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!