Author Topic: Phoenix Miner Installation and Configuration Guide  (Read 33261 times)

0 Members and 3 Guests are viewing this topic.

Offline V2-V3

  • Administrator
  • Sr. Member
  • *****
  • Posts: 295
  • Karma: 9
  • Jagersfontein
    • View Profile
    • Bitclockers
Phoenix Miner Installation and Configuration Guide
« on: May 29, 2011, 11:59:57 pm »
Phoenix Miner is a command line interface for Graphics Card Bitcoin mining, best suited for more experienced users

Phoenix 2 beta Installation Guide coming soon


Phoenix Miner video Installation guide
<a href="http://www.youtube.com/v/Sco8i419ixU" target="_blank" class="new_win">http://www.youtube.com/v/Sco8i419ixU</a>













ARCHIVE GUIDES:


Youtube Bitcoin Phoenix Miner Installation Guide
<a href="http://www.youtube.com/v/WGbgyNRYseY" target="_blank" class="new_win">http://www.youtube.com/v/WGbgyNRYseY</a>

1. Download Phoenix Miner
2. Extract file into the Bitcoin installation directory
3. Create a shortcut of Phoenix and modify the "target" properties with your worker configuration
5. Launch the shortcut and Happy Mining!

To connect to the BitClockers Mining Pool use the following address: Pool.BitClockers.com

Step By Step Image Guide
___________________________________________________________________________________________
Before you can install the Miner you will needto "Extract" the miner from a .ZIP file


*If you are using an AMD ATi Radeon Series card you will need to install the AMD APP SDK*
http://developer.amd.com/sdks/AMDAPPSDK/downloads/Pages/default.aspx#one


Phoenix Graphics Card Miner Installation
Download Phoenix.zip with this link: http://forum.bitcoin.org/index.php?topic=6458.0


Phoenix.zip Select save file and click OK


Right click on the Pheonix.zip file and select extract files


Change the extraction destination to that of where Bitcoin is currently installed in this guide I used "C:\bitcoin"


Navigate to "C:\bitcoin" where earlier we installed Bitcoin


Right click inside of the folder and select new and text document


Copy and paste the following quoted text into the word document and replace "workername" and "workerpassword" with the worker you created earlier
"phoenix.exe -u http://WORKERNAME:WORKERPASSWORD@pool.bitclockers.com:8332/ -k poclbm DEVICE=0"

there are three alternate pools available

pool.bitclockers.com:8332
pool2.bitclockers.com:8332
pool3.bitclockers.com:8332



Click on files and select save as

Rename the file to GPU0.bat and change the save as type to all files
* the file name is not important only the extension needs to be .bat

Click save to turn the .txt file into the required .bat file


I find it convenient to right click click on the .bat file and send a shortcut to the desktop where we will launch the .bat file


Make sure phoenix has started and successfully connected to the server as above.


Hash rate is measured in MHash (Million Hashs per second) and indicates the speed at which you can create a "share"

Accepted shares are hashes that you sent to the BitCoin network pool and were accepted by the server

Rejected shares are shares that could have been incorrect or already submitted by another user/worker because you took too long to complete the share  and the server gave the work to another user who completed and submitted the share.

A block change or "New work pushed"  means the Bitcoin network has added a block to the chain and has issued new work for all users.




Command line options

Phoenix arguments

 -v (verbose) - Logs additional debug messages to the console. Default is disabled.
 -q (queue size) - Sets the size of the internal work queue. Default is 1. This shouldn't need to be changed for most GPU miners.
 -a (average samples) - Sets the number of samples to use for hashrate averaging. Default is 10. You might want to lower this for longer kernel execution times. (high aggression)
 -u (URL) - Sets the URL of the work server. The correct protocol is selected based on the prefix (RPC for http://, MMP for mmp://)
 -k (kernel) - Selects which kernel to load. Default is poclbm. All other arguments MUST come before specifying a kernel. Any arguments after -k are sent to the kernel.

Poclbm kernel arguments

 PLATFORM=ID - Sets the OpenCL platform to use. This isn't needed if you only have a single platform.
 DEVICE=ID - Sets the OpenCL device to use. This isn't needed if you only have a single device.
 VECTORS - Enables 2-way vectors. This may improve hashrate if enabled, but it can be slower on some hardware. Default is disabled.
 AGGRESSION=LEVEL - Sets the aggression. This allows you to control the kernel execution time to improve hashrate or reduce interface lag. Default is 4.
 WORKSIZE=SIZE - Sets the worksize. Tweaking this setting may improve performance similar to poclbm's -w flag. Default is the maximum supported by the device.
 FASTLOOP - Enables fast internal loop. This improves hashrate at lower aggression levels without introducing any additional interface lag. Default is enabled.
 BFI_INT - Enables the BFI_INT instruction on newer AMD/ATI GPUs. This significantly improves hashrate. Default is disabled.

NOTE 1: Using FASTLOOP at higher AGGRESSION won't improve performance. However, it no longer results in stale shares. To disable FASTLOOP use FASTLOOP=false.
NOTE 2: The phatk kernel uses the same command line options


Recommended settings

High-end ATI cards (58xx, 5970, 68xx, 69xx)

Non-dedicated (use these settings if you use the computer while mining)
-k poclbm VECTORS BFI_INT AGGRESSION=7

Dedicated miner
-k poclbm VECTORS BFI_INT FASTLOOP=false AGGRESSION=11


Midrange and older ATI cards (48xx, 57xx, ect)

Non-dedicated (use these settings if you use the computer while mining)
-k poclbm VECTORS BFI_INT AGGRESSION=5

Dedicated miner
-k poclbm VECTORS BFI_INT FASTLOOP=false AGGRESSION=9

BFI_INT only supported on 5xxx and newer
NOTE: For optimal performance use either SDK 2.1 with poclbm or SDK 2.4 with phatk. Using phatk on SDK versions other than 2.4 will likely reduce performance. Using phatk on Nvidia GPUs will also reduce performance.

These settings are intended only as a starting point, and may not be optimal for your system configuration.



Check out the links below for more information related to BitCoin, Mining, Farming, Pooling, Overclocking and of course BitClockers

_________________________________________________________________________________________________________________________
_________________________________________________________________________________________________________________________
« Last Edit: February 22, 2012, 02:32:55 am by V2-V3 »
Bitclockers

powers

  • Guest
Re: Phoenix Miner Installation Guide
« Reply #1 on: May 30, 2011, 01:23:30 am »
Phoenix miner is great because it runs on windows and linux. I run 3 instances on my primary mining rig, and 1 on my gaming rig. It works exceedingly well with AMD/ATI cards.I will be assuming you have one for the purpose of this post.
Windows:
Step 1.) go here: http://forum.bitcoin.org/?topic=6458.0
Download this: http://svn3.xp-dev.com/svn/phoenix-miner/files/phoenix-1.48.zip
Step 2.) Unzip
Step 3.) Open up notepad and create a file called bitcoin.bat
Step 4.) put this in the file (single card):
Code: [Select]
@echo off
phoenix -u http://WORKERUSERNAME:PASSWORD@pool.bitclockers.com:8332 -k poclbm DEVICE=0 VECTORS BFI_INT FASTLOOP AGGRESSION=8 WORKSIZE=128
Leave fastloop on if you're running one worker, and one GPU only.

If you are running two GPU's, do this (I recommend creating separate workers for each GPU so you can track if one is down with watchdog in your dashboard):
Code: [Select]
phoenix -u http://WORKER1USER:PASSWORD@pool.bitclockers.com:8332 -k poclbm DEVICE=0 VECTORS BFI_INT AGGRESSION=14 WORKSIZE=128

phoenix -u http://WORKER2USER:PASSWORD@pool.bitclockers.com:8332 -k poclbm DEVICE=1 VECTORS BFI_INT AGGRESSION=14 WORKSIZE=128

Step 5.) Save the .bat file

Step 6.) Double click it and start working.

Quote
Command line options

Phoenix arguments

 -v[/b] (verbose) - Logs additional debug messages to the console. Default is disabled.
 -q[/b] (queue size) - Sets the size of the internal work queue. Default is 1. This shouldn't need to be changed for most GPU miners.
 -a[/b] (average samples) - Sets the number of samples to use for hashrate averaging. Default is 10. You might want to lower this for longer kernel execution times. (high aggression)
 -u[/b] (URL) - Sets the URL of the work server. The correct protocol is selected based on the prefix (RPC for http://, MMP for mmp://)
 -k[/b] (kernel) - Selects which kernel to load. Default is poclbm. All other arguments MUST come before specifying a kernel. Any arguments after -k are sent to the kernel.

Poclbm kernel arguments


PLATFORM=ID - Sets the OpenCL platform to use. This isn't needed if you only have a single platform.
 DEVICE=ID - Sets the OpenCL device to use. This isn't needed if you only have a single device.
 VECTORS - Enables 2-way vectors. This may improve hashrate if enabled, but it can be slower on some hardware. Default is disabled.
 AGGRESSION=LEVEL - Sets the aggression. This allows you to control the kernel execution time to improve hashrate or reduce interface lag. Default is 4.
 WORKSIZE=SIZE - Sets the worksize. Tweaking this setting may improve performance similar to poclbm's -w flag. Default is the maximum supported by the device.
 FASTLOOP - Enables fast internal loop. This improves hashrate at lower aggression levels without introducing any additional interface lag. Default is enabled.
 BFI_INT - Enables the BFI_INT instruction on newer AMD/ATI GPUs. This significantly improves hashrate. Default is disabled.

NOTE 1: Using FASTLOOP at higher AGGRESSION won't improve performance. However, it no longer results in stale shares. To disable FASTLOOP use FASTLOOP=false.
NOTE 2: The phatk kernel uses the same command line options


Recommended settings

High-end ATI cards (58xx, 5970, 68xx, 69xx)

Non-dedicated (use these settings if you use the computer while mining)
-k poclbm VECTORS BFI_INT AGGRESSION=7

Dedicated miner
-k poclbm VECTORS BFI_INT FASTLOOP=false AGGRESSION=11


Midrange and older ATI cards (48xx, 57xx, ect)

Non-dedicated (use these settings if you use the computer while mining)
-k poclbm VECTORS BFI_INT AGGRESSION=5

Dedicated miner
-k poclbm VECTORS BFI_INT FASTLOOP=false AGGRESSION=13

NOTE 1: BFI_INT only supported on 5xxx and newer
NOTE 2: For optimal performance use either SDK 2.1 with poclbm or SDK 2.4 with phatk. Using phatk on SDK versions other than 2.4 will likely reduce performance. Using phatk on Nvidia GPUs will also reduce performance.

These settings are intended only as a starting point, and may not be optimal for your system configuration.

powers

  • Guest
Re: Phoenix Miner Installation Guide
« Reply #2 on: May 30, 2011, 02:08:21 am »
Setting up a dedicated phoenix miner in Ubuntu :
Powers "ITS NOT MY FAULT GUY" disclaimer.... *** if shit blows up. it isn't my fault. ***
Step 1.)Load a fresh Ubuntu Natty 11.04 64-bit Desktop with the latest updates and log into system with a user that has sudo permissions.
  $ sudo apt-get remove nvidia-common
  $ sudo apt-get install libqtgui4

Step 2.) Load python and other development tools
  $ cd ~
  $ sudo apt-get install python-setuptools python-numpy subversion g++ libboost-all-dev

Step 3.) Download and install ATI Driver 11.5 for Linux 64bit.
  $ cd ~
  $ wget http://www2.ati.com/drivers/linux/ati-driver-installer-11-5-x86.x86_64.run
  $ sudo sh ati-driver-installer-11-5-x86.x86_64.run --buildpkg Ubuntu/natty
  $ sudo dpkg -i *.deb
  $ sudo apt-get -f install
  $ sudo aticonfig -f --initial --adapter=all
  $ sudo reboot

Step 5.) Verify that the ATI Driver is setup and running
  $ cd ~
  $ DISPLAY=:0 sudo fglrxinfo
  
Step 6.) Install python-jsonrpc
$ cd ~
$ svn checkout http://svn.json-rpc.org/trunk/python-jsonrpc
$ cd python-jsonrpc/
$ sudo python setup.py install

Step 7.) Download and install AMD APP SDK 2.4 for Linux 64bit.
  $ cd ~
  $ wget http://download2-developer.amd.com/amd/APPSDK/AMD-APP-SDK-v2.4-lnx64.tgz
  $ tar xvzf AMD-APP-SDK-v2.4-lnx64.tgz
  $ echo export AMDAPPSDKROOT=${HOME}/AMD-APP-SDK-v2.4-lnx64/ >> ~/.bashrc
  $ echo export AMDAPPSDKSAMPLESROOT=${HOME}/AMD-APP-SDK-v2.4-lnx64/ >> ~/.bashrc
  $ echo 'export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}' >> ~/.bashrc
  $ source ~/.bashrc
  $ cd /
  $ sudo tar xfz $AMDAPPSDKROOT/icd-registration.tgz

Step 8.) Download, Compile and Install pyopencl-0.92
  $ cd ~
  $ wget http://pypi.python.org/packages/source/p/pyopencl/pyopencl-0.92.tar.gz
  $ tar xzvf pyopencl-0.92.tar.gz
  $ cd pyopencl-0.92
  $ ./configure.py --cl-inc-dir=${AMDAPPSDKROOT}include --cl-lib-dir=${AMDAPPSDKROOT}lib/x86_64
  $ make
  $ sudo make install
  
Step 9.) Download and Install Phoenix Miner 1.48
  $ wget http://svn3.xp-dev.com/svn/phoenix-miner/files/phoenix-1.48.tar.bz2
  $ tar xvf phoenix*.bz2

Step 10.) Verify that OpenCL is setup and running
  $ cd ~
  $ cd AMD-APP-SDK-v2.4-lnx64/bin/x86_64
  $ ./clinfo
  
At this point you can just navigate to your phoenix folder.
and run:
Step 11.)
$ sudo bash
navigate to your phoenix folder, then
$ ./phoenix.py -u http://mineruser0:minerpass0@pool.bitclockers.com:8332/ k poclbm DEVICE=0 VECTORS BFI_INT WORKSIZE=128 AGGRESSION=13 &
and if you have othercards:
$ ./phoenix.py -u http://mineruser1:minerpass1@pool.bitclockers.com:8332/ k poclbm DEVICE=1 VECTORS BFI_INT WORKSIZE=128 AGGRESSION=13 &
$ ./phoenix.py -u http://mineruser2:minerpass2@pool.bitclockers.com:8332/ k poclbm DEVICE=2 VECTORS BFI_INT WORKSIZE=128 AGGRESSION=13 &

All of the below is optional, and doesn't always. it was a pain to get working for me.

Create a startminer script using code from below.  Make sure to substitute the correct home directory path, miner pool server, miner user and miner password.
   cd ~
   sudo touch /usr/local/bin/startminer.sh
   sudo chmod 755 /usr/local/bin/startminer.sh
   sudo gedit /usr/local/bin/startminer.sh

      # ${1} is used as a variable for the username, password and for the gpu device number.  Ex. mineruser0, minerpass0, Device=0 or mineruser1, minerpass1, Device=1
      HOMEDIR=/home/user
      MINERSERV=btcmine.com:8332
      MINERUSER=mineruser@miner${1}
      MINERPASS=minerpass${1}

      export AMDAPPSDKROOT=${HOMEDIR}/AMD-APP-SDK-v2.4-lnx64/
      export AMDAPPSDKSAMPLESROOT=${HOMEDIR}/AMD-APP-SDK-v2.4-lnx64/
      export LD_LIBRARY_PATH=${AMDAPPSDKROOT}lib/x86_64:${LD_LIBRARY_PATH}

      #Overclock GPU to 875Mhz
      DISPLAY=:0 aticonfig --od-enable --adapter=all
      DISPLAY=:0 aticonfig --od-setclocks=875,1000 --adapter=${1}
      cd ${HOMEDIR}/phoenix-1.48
      echo "Startming Miner: ${1}"
      ${HOMEDIR}/phoenix-1.48/phoenix.py -u http://${MINERUSER}:${MINERPASS}@${MINERSERV} -k phatk VECTORS BFI_INT AGGRESSION=12 DEVICE=${1}

Setup Headless Bitcoin Mining
 *** Warning *** This will stop your computer from booting a graphical desktop and allow only text console or remote ssh access into the mining server.
 If you rely on a GUI for administration you may want to rethink this.
   sudo apt-get install openssh-server
   sudo apt-get install screen
   sudo mv /etc/init/gdm.conf /etc/init/gdm.org
   sudo gedit /etc/init/startx.conf
        description     "Start X Server for btc mining"
        start on runlevel [2345]
        stop on runlevel [!2345]
        kill timeout 30
        script
           exec /usr/bin/X 2>&1
        end script

   sudo gedit /etc/init/btcminer_0.conf
        description     "Start BTC Mining"
        start on runlevel [2345]
        stop on runlevel [!2345]
        kill timeout 30
        script
           LOGINUSER=ChangeToMyLoginUser
          #Wait 60 seconds to make sure X is started.
          sleep 40
          exec /usr/bin/screen -dmS gpu0 su -c '/usr/local/bin/startminer.sh 0' ${LOGINUSER}
        end script

   sudo gedit /etc/init/btcminer_1.conf
        description     "Start BTC Mining"
        start on runlevel [2345]
        stop on runlevel [!2345]
        kill timeout 30
        script
        LOGINUSER=ChangeToMyLoginUser
        #Wait 60 seconds to make sure X is started.
        sleep 45
           exec /usr/bin/screen -dmS gpu1 su -c '/usr/local/bin/startminer.sh 1' ${LOGINUSER}
        end script

How to access the miner server
   ssh into the mining server as your normal login user.
   sudo screen -r gpu0 or sudo screen -r gpu1

To disconnect from screen Control-A + Control-D.

Here's a couple useful tricks for working with your graphics cards:

To display the temperature of your cores:

aticonfig --odgt --adapter=all

To display the clock speeds of your cores:

aticonfig --odgc --adapter=all

To show or set your fan speed:

Shows fan speed
aticonfig --pplib-cmd "get fanspeed 0"

Sets fan speed to 100%
aticonfig --pplib-cmd "set fanspeed 0 100"

If you have multiple cores, you'll need to export a different display variable to access the different cores, like this:

Show fan speed on 2nd card:  
export DISPLAY=:0.1; aticonfig --pplib-cmd "get fanspeed 0"

You can change the .1 to .2, .3 etc... for how many cards you have in the system.

To change your clock rates:

Set your core clock to 900MHz and your memory clock to 1000MHz on all cards. Change according to your desire.
aticonfig --od-setclocks=900,1000 --adapter=all

To set for a particular card, change --adapter=all to the adapter number you want to change.

That should take care of just about everything you need to do to mine in a Bitcoin pool.
  
Any time you add an additional card, don't forget to run:
$ sudo aticonfig --initial -f --adapter=all
$ sudo chmod 644 /etc/X11/xorg.conf
and they will immediately show up

Sources:
http://forum.bitcoin.org/?topic=7514.0
and me.
« Last Edit: May 30, 2011, 04:31:31 am by powers »

appaneumugh

  • Guest
My introduction
« Reply #3 on: June 05, 2011, 04:30:42 pm »
A Very interesting postmuch appreciated especially with what im wanting to do.
 
Does anybody have more reading? Where's a good option to begin here on this site?

Offline V2-V3

  • Administrator
  • Sr. Member
  • *****
  • Posts: 295
  • Karma: 9
  • Jagersfontein
    • View Profile
    • Bitclockers
Re: My introduction
« Reply #4 on: June 12, 2011, 01:49:06 pm »
A Very interesting postmuch appreciated especially with what im wanting to do.
 
Does anybody have more reading? Where's a good option to begin here on this site?

Have you read the thread over here?
http://bitclockers.com/forums/index.php?topic=3.msg4#msg4
Bitclockers

Offline V2-V3

  • Administrator
  • Sr. Member
  • *****
  • Posts: 295
  • Karma: 9
  • Jagersfontein
    • View Profile
    • Bitclockers
Re: Phoenix Miner Installation and Configuration Guide
« Reply #5 on: February 22, 2012, 02:34:37 am »
Phoenix Miner Version 1.75 Video Guide is now up!

Original post updated with this video: http://youtu.be/Sco8i419ixU
Bitclockers