Search This Blog

Sunday, November 10, 2013

Mining 101 : BAT Files

First off, let’s do a small tutorial on how to create a BAT file, without going into the details of the parameters or flags :


Step 1 : Open Notepad or a text editor


Step 2 : Add the following lines :


setx GPU_MAX_ALLOC_PERCENT 100


setx GPU_USE_SYNC_OBJECTS 1


Step 3 : Add another line, pointing to the directory where your mining program is located. For example : C:\Cgminer-3.3.31-windows\cgminer.exe


Step 4 : Save the file.


Congratulations, you have created your BAT file. However, with just that line, I’m afraid not much will happen. I guess we had better look at the other parameters to include in your freshly created .bat file :


BAT File settings


-o : Allows you to add the server you wish to mine on. For solo mining, this will be “-o http://127.0.0.1: port number”. For example, the server name is mine-dgc.scryptmining.com on port 3338, using the stratum protocol. Therefor, I have to add “-o stratum+tcp://mine-dgc.scryptmining.com:3338″ to connect to my mining server.


In case your server does not run a stratum protocol, you can just connect with the regular “http://” in front of the server name , or IP address.


-u/-p : These simply stand for username and password (e.g. : jdebunt.1/x)


–scrypt : Has to be added if you are mining Scrypt coins. If you’re mining SHA-256, this is not required to get started.


–gpu-engine / –gpu-memclock : If you aren’t interested in pushing your card to the maximum, undervolting the card, or are just content to have it running at the standard settings, you can leave this out. These settings are intended for people who want to experiment with their mining speed. These settings are different for each GPU.


–thread-concurrency / –shaders : Once again, there are also settings intended for people who want to experiment with their mining speed, and they are different for every GPU.


We urge you to do some research on your GPUs brand and model to find the optimal settings for your card. Messing around with incorrect settings can lead to permanent damage of your GPU.


-I : The intensity setting for your GPU. The standard intensity will be determined once you run your .bat file for the first time. It is not required to add the intensity setting, unless you wish to experiment with mining speeds. Each GPU has a different optimal intensity setting.


-w : The worksize setting. This directly affects your mining speed, and is different for each GPU model out there. For high-end cards, this should usually be either 128 or 256. If you search for your GPU’s brand and model’s worksize, you’ll find the right answer.


-g : Sets the number of threads per GPU. The default setting is 2, which should work for most GPUs out there. It is not required to change this value unless you are noticing a very low hashrate in your miner’s window.


–lookup-gap : This is only required if you are mining Scrypt coins. Optimal value is usually 2, but may depend on your GPUs brand and/or model.


–auto-fan : This allows your GPU to automatically increase or decrease the fan speed required to keep the temperature down. We recommend putting this in all of your .bat files , as it is one less thing to worry about when fine tuning your settings.


–no-submit-stale : Disables submission of stale shares. A share becomes stale when it takes too long for your miner to submit the share to the pool or network. We recommend putting this in all of your .bat files to avoid as many invalid shares as possible.


WARNING : Experimenting with these settings can load to permanently damaging your GPU. Use these settings at your own risk.


There are plenty more settings you can include in a .bat file. Take a look at the official Github page for your mining software, or browse around on BitcoinTalk, where you’re guaranteed to find an answer to your questions.



source: http://majesti.co/cryptonerd/mining-lingo-101-bat-files-part-1e/




Guugll Search


http://www.guugll.eu/mining-101-bat-files/

No comments:

Post a Comment