Bitcoin Forum

Bitcoin => Mining software (miners) => Topic started by: Luke-Jr on June 18, 2011, 05:38:46 PM



Title: My improvements to poclbm
Post by: Luke-Jr on June 18, 2011, 05:38:46 PM
https://gitorious.org/~Luke-Jr/luke-jrs-poclbm

Changes:
  • Real-time statistics show more than just hashrate-- also estimated hashrate (based on accepted shares), rejected share count and percentage, getwork count and efficiency (accepted/getwork)
  • Optimizations around share submission
  • If share submit fails, save it and retry a second later


Title: Re: My improvements to poclbm
Post by: willphase on June 18, 2011, 06:08:26 PM
Have you ever found a pool that has accepted a share that your modified client has attempted to resend?

Normally a rejected share won't be fixed by resending it.

Will


Title: Re: My improvements to poclbm
Post by: Luke-Jr on June 18, 2011, 06:11:08 PM
Have you ever found a pool that has accepted a share that your modified client has attempted to resend?

Normally a rejected share won't be fixed by resending it.
Rejected shares aren't resent. That's only for network issues.


Title: Re: My improvements to poclbm
Post by: willphase on June 18, 2011, 06:14:39 PM
Have you ever found a pool that has accepted a share that your modified client has attempted to resend?

Normally a rejected share won't be fixed by resending it.
Rejected shares aren't resent. That's only for network issues.

Okay understood. Sounds cool.

Will


Title: Re: My improvements to poclbm
Post by: PulsedMedia on June 19, 2011, 08:31:54 PM
Please, post also instructions :)


Title: Re: My improvements to poclbm
Post by: shamathana on June 20, 2011, 10:24:15 PM
Please, post also instructions :)
yep too blind to find the download button


Title: Re: My improvements to poclbm
Post by: PulsedMedia on June 20, 2011, 11:43:42 PM
Please, post also instructions :)
yep too blind to find the download button

I were assuming a set of patches, but apparently not. No reason to be an jackass for a valid point.


Title: Re: My improvements to poclbm
Post by: shamathana on June 21, 2011, 12:04:22 AM
Please, post also instructions :)
yep too blind to find the download button

I were assuming a set of patches, but apparently not. No reason to be an jackass for a valid point.
no, i can't find the binaries either, just the source files.


Title: Re: My improvements to poclbm
Post by: Luke-Jr on June 21, 2011, 12:47:12 AM
Please, post also instructions :)
yep too blind to find the download button

I were assuming a set of patches, but apparently not. No reason to be an jackass for a valid point.
no, i can't find the binaries either, just the source files.
It's Python. There are no binaries.


Title: Re: My improvements to poclbm
Post by: shamathana on June 21, 2011, 02:33:09 AM
Please, post also instructions :)
yep too blind to find the download button

I were assuming a set of patches, but apparently not. No reason to be an jackass for a valid point.
no, i can't find the binaries either, just the source files.
It's Python. There are no binaries.
poclbm looks like python too, but has binaries. and how do i use the source?

Code:
c:\Python27>python2.7.exe bitcoin-luke-jrs-poclbm\BitcoinMiner.cl
  File "bitcoin-luke-jrs-poclbm\BitcoinMiner.cl", line 2
    typedef uint2 u;
                ^
SyntaxError: invalid syntax

c:\Python27>python2.7.exe bitcoin-luke-jrs-poclbm\BitcoinMiner.cl  -d 0 -o mining.eligius.st --port=8337 --user=asdfghjkl --pass=x
  File "bitcoin-luke-jrs-poclbm\BitcoinMiner.cl", line 2
    typedef uint2 u;
                ^
SyntaxError: invalid syntax

c:\Python27>python2.7.exe bitcoin-luke-jrs-poclbm\poclbm.py  -d 0 -o mining.eligius.st --port=8337 --user=asdsfgghhjkl --pass=x
Traceback (most recent call last):
  File "bitcoin-luke-jrs-poclbm\poclbm.py", line 3, in <module>
    import pyopencl as cl
ImportError: No module named pyopencl


Title: Re: My improvements to poclbm
Post by: fpgaminer on June 21, 2011, 03:08:53 AM
Quote
poclbm looks like python too, but has binaries. and how do i use the source?
The Windows release of poclbm uses py2exe to create an EXE for us lazy Windows users :)

You use it by doing "python2.7.exe bitcoin-luke-jrs-poclbm\poclbm.py"


Luke-Jr: Great work! I merged this with my branch (http://forum.bitcoin.org/index.php?topic=19169.0) and it seems to be working wonderfully so far. I haven't measured connection performance, but it's very nice to have it tally up the rejected statistics and such. Thank you for this great improvement to poclbm  :D


Title: Re: My improvements to poclbm
Post by: Ali on June 21, 2011, 06:39:43 AM
You use it by doing "python2.7.exe bitcoin-luke-jrs-poclbm\poclbm.py"

That's what I do too but it raises the error.

Code:
Traceback (most recent call last):
  File "poclbm.py", line 3, in <module>
    import pyopencl as cl
ImportError: No module named pyopencl

How to install pyopencl? I never used python.


Title: Re: My improvements to poclbm
Post by: fpgaminer on June 22, 2011, 07:32:16 AM
Quote
That's what I do too but it raises the error.
Yikes, yeah. Well, to be honest, pyopencl looked like a bit of a pain to compile when I took a look at it last, and I couldn't find anything pre-compiled. Hopefully someone else can chime in here.

Other than that, you may want to take a look at my branch, for which I did put together a ready to run Windows exe:
http://forum.bitcoin.org/index.php?topic=19169.msg254264#msg254264 (http://forum.bitcoin.org/index.php?topic=19169.msg254264#msg254264)

For that one I copied over the pyopencl binaries from the original poclbm packaging, so I didn't have to compile pyopencl.  ;D

My branch includes luke jr's modifications, but it also uses the phatk kernel (which may give you a speed boost).


Title: Re: My improvements to poclbm
Post by: Ali on June 22, 2011, 07:42:43 AM
I'm using your branch now fpgaminer. The phatk-kernel gives me a boost of about 12 MH/s.

What does the Efficiency value mean?


Title: Re: My improvements to poclbm
Post by: SoreGums on June 23, 2011, 02:27:32 AM
What does the Efficiency value mean?
yeah, i'm wondering the same thing ;)

is 359%,380%: good, great, ok, awesome :P


Title: Re: My improvements to poclbm
Post by: Luke-Jr on June 23, 2011, 02:29:50 AM
What does the Efficiency value mean?
Same thing it's always meant with regard to mining. Percentage of getworks that result in a share. With roll-ntime, fast miners can easily milk lots of shares out of each getwork.


Title: Re: My improvements to poclbm
Post by: SoreGums on June 23, 2011, 02:31:43 AM
What does the Efficiency value mean?
Same thing it's always meant with regard to mining. Percentage of getworks that result in a share. With roll-ntime, fast miners can easily milk lots of shares out of each getwork.
ok so 100% is 1 share for 1 getwork?

edit: ok i get it now. eff = accepted shares/getwork*100 - simple really ;)


Title: Re: My improvements to poclbm
Post by: Detritus on June 23, 2011, 11:51:01 AM
Great work luke-jr

I made some minor tweaks to the status display line to show three digits of precision on the display of reject and efficiency percentages.

A lot of times rejects is between %0 - %1 and being able to see the fraction of a percent is handy (well to me anyway..  ;)  )

 here's and examples of the modified display...

Code:
[401.772 MH/s (~444 MH/s)] [Rej: 13/1635 (0.795%)] [GW: 2704 (Eff: 59.985%)]


and here's the diff of BitcoinMiner.pl that implements it...
Code:
bigfoot@brontosaurus:~/bitcoin-luke-jrs-poclbm$ diff ../luke-jr-poclbm/bitcoin-luke-jrs-poclbm/BitcoinMiner.py BitcoinMiner.py
149,150c149,150
<                       eff = self.shareCount[1] * 100 / self.getworkCount
<               self.say('[%.03f MH/s (~%d MH/s)] [Rej: %d/%d (%d%%)] [GW: %d (Eff: %d%%)]', (rate, round(estRate), self.shareCount[0], totShares, self.shareCount[0] * 100 / totSharesE, self.getworkCount, eff))
---
>                       eff = float(self.shareCount[1]) * 100 / float(self.getworkCount)
>               self.say('[%.03f MH/s (~%d MH/s)] [Rej: %d/%d (%0.03f%%)] [GW: %d (Eff: %0.03f%%)]', (rate, round(estRate), self.shareCount[0], totShares, float(self.shareCount[0]) * 100 / float(totSharesE), self.getworkCount, eff))



Title: Re: My improvements to poclbm
Post by: jkminkov on June 24, 2011, 09:37:40 AM
any chance that we <windows lamers> get compiled binaries  :-[


Title: Re: My improvements to poclbm
Post by: Ali on June 24, 2011, 10:12:32 AM
any chance that we <windows lamers> get compiled binaries  :-[

fgpaminer compiled them in his version (which also uses the phatk-kernel).
You can find it here: http://forum.bitcoin.org/index.php?topic=19169.0


Title: Re: My improvements to poclbm
Post by: jkminkov on June 24, 2011, 01:13:50 PM
any chance that we <windows lamers> get compiled binaries  :-[

fgpaminer compiled them in his version (which also uses the phatk-kernel).
You can find it here: http://forum.bitcoin.org/index.php?topic=19169.0

read http://forum.bitcoin.org/index.php?topic=19169.msg272518#msg272518 (http://forum.bitcoin.org/index.php?topic=19169.msg272518#msg272518) on that thread

and for ati 5770, poclbm > phatk