Bitcoin Forum
April 18, 2024, 01:41:56 PM *
News: Latest Bitcoin Core release: 26.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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 »
  Print  
Author Topic: Phoenix - Efficient, fast, modular miner  (Read 760546 times)
Veldy
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
May 29, 2011, 11:45:27 PM
 #581

whenever i try to run phoenix miner it just closes its self a split second after i run it, what am i doing wrong?

Open a command window and execute phoenix from a command line and you will see the error it is giving you.

Here is what I use for my workstation that must be responsive (remove FASTLOOP and boost aggression to 11 or 12 for a dedicated machine):

Quote
@ECHO OFF

SET DRIVE=D:
SET WORKINGDIR=D:\Bitcoin\phoenix
SET PHOENIX=phoenix.exe
SET USERNAME=xxxxxx
SET PASSWORD=xxxxxxx
SET SITE=btcmine.com
REM SET USERNAME=xxxxxx
REM SET PASSWORD=xxxxxx
REM SET SITE=pit.deepbit.net
SET PORT=8332
SET OPTIONS=-k poclbm DEVICE=0 VECTORS BFI_INT FASTLOOP WORKSIZE=128 AGGRESSION=9

%DRIVE%
CD %WORKINGDIR%
start %PHOENIX% -u http://%USERNAME%:%PASSWORD%@%SITE%:%PORT%/ %OPTIONS%

Note that I leave pools that I use commented out so that I can change from one to the other if I want too [for testing or because one is down, or whatever reason].  I should probably pass an argument to "start" so that the original command window doesn't popup, but it doesn't bother me enough to change it.

If you have found my post helpful, please donate what you feel it is worth: 18vaZ4K62WiL6W2Qoj9AE1cerfCHRaUW4x
"In a nutshell, the network works like a distributed timestamp server, stamping the first transaction to spend a coin. It takes advantage of the nature of information being easy to spread but hard to stifle." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713447716
Hero Member
*
Offline Offline

Posts: 1713447716

View Profile Personal Message (Offline)

Ignore
1713447716
Reply with quote  #2

1713447716
Report to moderator
1713447716
Hero Member
*
Offline Offline

Posts: 1713447716

View Profile Personal Message (Offline)

Ignore
1713447716
Reply with quote  #2

1713447716
Report to moderator
1713447716
Hero Member
*
Offline Offline

Posts: 1713447716

View Profile Personal Message (Offline)

Ignore
1713447716
Reply with quote  #2

1713447716
Report to moderator
icaci
Newbie
*
Offline Offline

Activity: 28
Merit: 0


View Profile
May 30, 2011, 05:43:15 AM
 #582

(remove FASTLOOP and boost aggression to 11 or 12 for a dedicated machine)
FASTLOOP is enabled by default in recent Phoenix versions and one must specify FASTLOOP=false in order to disable it.
slowmining
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
May 30, 2011, 06:11:11 AM
 #583

[719 Accepted] [56 Rejected]

Is this normal?
PoulGrym
Member
**
Offline Offline

Activity: 83
Merit: 10


View Profile
May 30, 2011, 09:00:13 AM
 #584

Just tried to connect to deepbit.net and tada..

Code:
[30/05/2011 10:55:10] Connected to server
[348.31 Mhash/sec] [0 Accepted] [0 Rejected] [RPC (+LP)]Unhandled Error
Traceback (most recent call last):
  File "twisted\internet\tcp.pyc", line 529, in connectionLost

  File "minerutil\_newclient3420.pyc", line 826, in dispatcher

  File "minerutil\_newclient3420.pyc", line 1434, in _connectionLost_WAITING

  File "minerutil\_newclient3420.pyc", line 1363, in _disconnectParser

--- <exception caught here> ---
  File "minerutil\_newclient3420.pyc", line 494, in connectionLost

  File "twisted\web\http.pyc", line 1366, in noMoreData

  File "minerutil\_newclient3420.pyc", line 409, in _finished

  File "minerutil\_newclient3420.pyc", line 1337, in _finishResponse

exceptions.AttributeError: 'NoneType' object has no attribute 'connHeaders'

It got right back to track just a second after the error..

If you found my post helpful, use my tip jar!
BTC: 1Q4um62DJ8kBRMzQ4VQqG6W7eLoPNfx6zn
NODE: 11993447274130959091 NXT: MINT:
error
Hero Member
*****
Offline Offline

Activity: 588
Merit: 500



View Profile
May 30, 2011, 09:24:09 AM
 #585

I just found a bug in the long polling code.

It seems that LP fails to work properly if the long polling URL uses a query string (e.g. http://localhost:8332/example?longpoll=example).

Here is the fix:

Code:
--- minerutil/RPCProtocol.py.orig       2011-05-18 04:48:47.000000000 -0400
+++ minerutil/RPCProtocol.py    2011-05-30 05:20:05.812351055 -0400
@@ -349,11 +349,12 @@
         if longpoll:
             lpParsed = urlparse.urlparse(longpoll[0])
             urlParsed = urlparse.urlparse(self.url)
-            lpURL = '%s://%s:%d%s' % (
+            lpURL = '%s://%s:%d%s%s' % (
                 lpParsed.scheme or urlParsed.scheme,
                 lpParsed.hostname or urlParsed.hostname,
                 (lpParsed.port if lpParsed.hostname else urlParsed.port) or 80,
-                lpParsed.path)
+                lpParsed.path,
+               '?' + lpParsed.query if lpParsed.query else '')
             if self.longPoller and self.longPoller.url != lpURL:
                 self.longPoller.stop()
                 self.longPoller = None

3KzNGwzRZ6SimWuFAgh4TnXzHpruHMZmV8
MiningBuddy
Hero Member
*****
Offline Offline

Activity: 927
Merit: 1000


฿itcoin ฿itcoin ฿itcoin


View Profile
May 30, 2011, 10:00:35 AM
Last edit: August 11, 2011, 09:16:00 PM by MiningBuddy
 #586

Is there any way to further enhance the reconnecting of phoenix to a pool?
I saw improvements in version 1.48, but if the pool is down for several minutes it seems to never reconnect.

melco
Member
**
Offline Offline

Activity: 62
Merit: 10


View Profile
May 30, 2011, 02:17:22 PM
 #587

Mine too. Never gets reconnected after pool network failures.

bitminer
Newbie
*
Offline Offline

Activity: 39
Merit: 0


View Profile
May 30, 2011, 02:32:52 PM
 #588

After few hours of mining on deepbit I get usually the following error msg:

Code:
[308.36 Mhash/sec] [1857 Accepted] [29 Rejected] [RPC (+LP)]Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 519, in connectionLost
    protocol.connectionLost(reason)
  File "/phoenix/minerutil/_newclient3420.py", line 826, in dispatcher
    return func(*args, **kwargs)
  File "/phoenix/minerutil/_newclient3420.py", line 1434, in _connectionLost_WAITING
    self._disconnectParser(reason)
  File "/phoenix/minerutil/_newclient3420.py", line 1363, in _disconnectParser
    parser.connectionLost(reason)
--- <exception caught here> ---
  File "/phoenix/minerutil/_newclient3420.py", line 494, in connectionLost
    self.bodyDecoder.noMoreData()
  File "/usr/lib/python2.7/dist-packages/twisted/web/http.py", line 1388, in noMoreData
    finishCallback('')
  File "/phoenix/minerutil/_newclient3420.py", line 409, in _finished
    self.finisher(rest)
  File "/phoenix/minerutil/_newclient3420.py", line 1337, in _finishResponse
    connection = self._parser.connHeaders.getRawHeaders('Connection')
exceptions.AttributeError: 'NoneType' object has no attribute 'connHeaders'                                                                                                      [30/05/2011 15:30:54] Warning: work queue empty, miner is idle
[0 Khash/sec] [1857 Accepted] [29 Rejected] [RPC (+LP)]
Azelphur
Newbie
*
Offline Offline

Activity: 43
Merit: 0


View Profile
May 30, 2011, 03:37:51 PM
 #589

I get this one every now and again, usually at about 4am in the morning knowing my luck Cheesy

Code:
  File "/opt/bitcoin/miners/phoenix-1.48/phoenix.py", line 125, in <module>
    reactor.run()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1158, in run
    self.mainLoop()
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 1167, in mainLoop
    self.runUntilCurrent()
--- <exception caught here> ---
  File "/usr/lib/python2.7/dist-packages/twisted/internet/base.py", line 789, in runUntilCurrent
    call.func(*call.args, **call.kw)
  File "/nfsroot/opt/bitcoin/miners/phoenix-1.48/minerutil/RPCProtocol.py", line 127, in callback
    self.root.handleWork(result)
  File "/nfsroot/opt/bitcoin/miners/phoenix-1.48/minerutil/RPCProtocol.py", line 319, in handleWork
    if 'block' in work:
exceptions.TypeError: argument of type 'NoneType' is not iterable
Veldy
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
May 30, 2011, 06:39:25 PM
 #590

I just saw the error for the first time this morning.  I am very hesitant to change miners since my dedicated machine is now very finely tuned and when I have tried to use GUI Miner I have managed to topple the machine.  I have seen the connection problem referred to above only once.  For me, Phoenix usually recovers even after 10 minutes or so [I had my router down for a bit the other night and all miners resumed when full Internet access was restored.

If you have found my post helpful, please donate what you feel it is worth: 18vaZ4K62WiL6W2Qoj9AE1cerfCHRaUW4x
martok
Full Member
***
Offline Offline

Activity: 140
Merit: 100


View Profile
May 30, 2011, 09:51:56 PM
 #591

Hello,
Is there any way to include special characters in the http username string. In poclbm --user "x;y" works but "http://x;y@hostname/" does not. I also tried "http://x%3by@hostname/" but no luck there either.

Hi again,

After some stracing, I found the bug. It isn't with special chars but rather with long usernames in the URL. phoenix is base64 encoding using some encode function but that function is dropping a newline (\n) character into the base64 stream. That needs to come out else we are sending invalid HTTP headers.
minerX
Newbie
*
Offline Offline

Activity: 56
Merit: 0


View Profile
May 30, 2011, 11:59:52 PM
 #592

Just tried to connect to deepbit.net and tada..

Code:
[30/05/2011 10:55:10] Connected to server
[348.31 Mhash/sec] [0 Accepted] [0 Rejected] [RPC (+LP)]Unhandled Error
Traceback (most recent call last):
  File "twisted\internet\tcp.pyc", line 529, in connectionLost

  File "minerutil\_newclient3420.pyc", line 826, in dispatcher

  File "minerutil\_newclient3420.pyc", line 1434, in _connectionLost_WAITING

  File "minerutil\_newclient3420.pyc", line 1363, in _disconnectParser

--- <exception caught here> ---
  File "minerutil\_newclient3420.pyc", line 494, in connectionLost

  File "twisted\web\http.pyc", line 1366, in noMoreData

  File "minerutil\_newclient3420.pyc", line 409, in _finished

  File "minerutil\_newclient3420.pyc", line 1337, in _finishResponse

exceptions.AttributeError: 'NoneType' object has no attribute 'connHeaders'

It got right back to track just a second after the error..

I got that error too.
kynalvarus
Newbie
*
Offline Offline

Activity: 2
Merit: 0


View Profile
May 31, 2011, 12:27:06 AM
 #593

However, as explained above I can't reproduce the problem myself so I need users to test this fix. You can either download the binaries below or checkout the latest SVN revision. (98 or 99 is fine)
Still had some hangs with r99, but BitcoinPool just had some hiccups, so I'm not entirely sure where fault is yet. I threw a few coins in your general direction for the effort, though.

I'm currently using a little script to ensure Phoenix is not slacking off. Maybe it's of interest to others until this gets resolved, wherever the bug is:
Code:
#!/usr/bin/python2.7
# Run Phoenix in a loop with 'while true; do ./phoenix yada-yada-yada; echo; done'
# and this script in a separate shell to kill the currently running Phoenix instance
# when GPU load goes below set threshold for set amount of time (default under 50%
# for 30 seconds). Intended for use with one ATI GPU and one Phoenix instance.

import re
import signal
from subprocess import check_output
from os import kill
from time import sleep, strftime, localtime

interval = 1
numsamples = 30
threshold = 50
samples = []

loadreg = re.compile('GPU load :\s+(\d+)')
pidreg = re.compile('(\d+) .* phoenix.py')

while (True):
    res = check_output(['aticonfig', '--odgc'])
    samples.append(int(loadreg.findall(res)[0]))

    if (len(samples) > numsamples):
        del samples[0]

        if (max(samples) < threshold):
            res = check_output(['ps', '-a'])
            for pid in pidreg.findall(res):
                print '%s Max GPU load is below %d%%, killing %s' % (strftime('%Y-%m-%d %H:%M:%S', localtime()), threshold, pid)
                kill(int(pid), signal.SIGINT)
            samples = []

    sleep(interval)

This would work great on Linux. I could even make most of it work on my Windows miner using Cygwin. However, I don't have an equivalent to aticonfig on Windows. Anyone know a good way of getting GPU load into Python (or any scripting language) on Windows/Cygwin?
tehc0w
Newbie
*
Offline Offline

Activity: 10
Merit: 0


View Profile
May 31, 2011, 03:12:30 AM
 #594

I'm mining with a GTS 250 and I get about 28-29m on poclbm but when I use phoenix, I can't get above 23m.  Has anyone else experienced this?  Is phoenix just less efficient with Nvidia cards?
Veldy
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
May 31, 2011, 11:45:02 AM
 #595

Just tried to connect to deepbit.net and tada..

Code:
[30/05/2011 10:55:10] Connected to server
[348.31 Mhash/sec] [0 Accepted] [0 Rejected] [RPC (+LP)]Unhandled Error
Traceback (most recent call last):
  File "twisted\internet\tcp.pyc", line 529, in connectionLost

  File "minerutil\_newclient3420.pyc", line 826, in dispatcher

  File "minerutil\_newclient3420.pyc", line 1434, in _connectionLost_WAITING

  File "minerutil\_newclient3420.pyc", line 1363, in _disconnectParser

--- <exception caught here> ---
  File "minerutil\_newclient3420.pyc", line 494, in connectionLost

  File "twisted\web\http.pyc", line 1366, in noMoreData

  File "minerutil\_newclient3420.pyc", line 409, in _finished

  File "minerutil\_newclient3420.pyc", line 1337, in _finishResponse

exceptions.AttributeError: 'NoneType' object has no attribute 'connHeaders'

It got right back to track just a second after the error..

I got that error too.

This is triggered by something that a few of the pools have done [at least deepbit and BTCMine].  I am sick of waking up to finding that hours have gone by with my miners down [and my GPU sitting at 40%].  I am hooked up to BTC Guild right now and maybe I will have more luck.  However, if this happens again, I am going to have to tweak my machines for pclbm and never look back [too much effort already tweaking machines to run optimally and stably].

If you have found my post helpful, please donate what you feel it is worth: 18vaZ4K62WiL6W2Qoj9AE1cerfCHRaUW4x
radracer
Newbie
*
Offline Offline

Activity: 46
Merit: 0


View Profile
May 31, 2011, 01:02:13 PM
 #596

i am now getting these errors every time i try to run phoenix.  any idea what this means?

Code:
Traceback (most recent call last):
  File "phoenix.py", line 123, in <module>
  File "Miner.pyc", line 75, in start
  File "phoenix.py", line 111, in makeKernel
  File "kernels\poclbm\__init__.py", line 22, in <module>
    import pyopencl as cl
  File "zipextimporter.pyc", line 82, in load_module
  File "pyopencl\__init__.pyc", line 3, in <module>
  File "zipextimporter.pyc", line 98, in load_module
ImportError: MemoryLoadLibrary failed loading pyopencl\_cl.pyd
shivansps
Hero Member
*****
Offline Offline

Activity: 1134
Merit: 502


Vave.com - Crypto Casino


View Profile
May 31, 2011, 07:48:28 PM
 #597

phoenix is not able to reconnect properly most of the time, right now im using my own programs to monitor it and restart it if the connection is down, and i even implemented a pool switch method too in case if the pool has been down for some time, the nly problem? i need to have thee stats on a plain text file, right now thats a nightmare, the file gets well over 3gb in size after just 24 hours, i need to try to do that phoenix mod ive attemped few days ago to export only stats to a .txt file again.

Veldy
Member
**
Offline Offline

Activity: 98
Merit: 10



View Profile
June 01, 2011, 03:17:38 AM
 #598

I started using the latest command line version of poclbm on Windows 7 x64 and I am getting about the same performance, but it is known to reconnect more reliably [although when I used it with GUIMiner, it didn't always reconnect using the version from late March when I tested it and had the issue] and I am getting FAR fewer stale shares than with phoenix.  I have command scripts to allow me to switch miners and pools at will.  I was seeing 1.0 - 1.5% rejected shares with phoenix (more when there were pool problems) while I am seeing about 0.5% using poclbm with a relatively small share sample (about 1200 so far).  I am pretty sure it is the long polling code in phoenix that is causing the additional stale shares and it is certainly causing the recent crashes [why did that suddenly start in the last few days and not before ... I was using 1.48 since it was released but only saw the LP crash for the first time this morning on both machines at the same time (about 2:30AM CDT with deepbit.net).

I like the way phoenix is configured better and I like the command line output that shows the cumulative accepted/rejected counts better, so I really would prefer to use phoenix, but unfortunately, I cannot do so right now.  

Any word on when a new version is out that has been tested with multiple pools long polling?  I would love to test, but with only two machines [one GPU each], I can't afford to have a miner drop while I am away or sleeping [I work from home a lot, so I can test then easily enough ... I am not sure that up to a 16 hour run is sufficient though].

When phoenix comes around, I will be back with it Smiley  Just curious about any progress.  

Thank you.

If you have found my post helpful, please donate what you feel it is worth: 18vaZ4K62WiL6W2Qoj9AE1cerfCHRaUW4x
inlikeflynn
Newbie
*
Offline Offline

Activity: 34
Merit: 0


View Profile
June 01, 2011, 04:56:55 AM
 #599

Thanks!

Using: -k phatk DEVICE=0 VECTORS BFI_INT FASTLOOP=false WORKSIZE=256 AGGRESSION=13 on a single 5830 and get 312MH/sec
 Grin
grm203
Newbie
*
Offline Offline

Activity: 8
Merit: 0


View Profile
June 01, 2011, 06:10:40 AM
 #600

I am getting 245 rejected shares with 4140 shares, from a HD5870 . I am wondering is it normal to have such high stale shares? EDIT: i am with btcmine pool
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 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 »
  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!