This wiki has been archived and made read-only.
For up-to-date information about TkkrLab and it's projects please visit our main website at tkkrlab.nl.

Litecoin mining

From

Jump to: navigation, search
Project: litecoin mining
360x360px
Name litecoin mining
Initiator michiel brink
Status {{{Status}}}
Skills basic terminal/cmd commands for linux/windows
Summary {{{Summary}}}


For introduction for Litecoins see wiki or the Litecoin website. For mining hashrates and market data see [1]

This tutorial is mainly for linux, but it´s almost the same on windows.

Note

Run this command in the same console/bash/dos prompt/bat file/whatever you want to call it, before running cgminer.

- export GPU_MAX_ALLOC_PERCENT=100 (windows: setx GPU_MAX_ALLOC_PERCENT 100)

- export GPU_USE_SYNC_OBJECTS=1 (windows: setx GPU_USE_SYNC_OBJECTS 1)


from nothing to a miner

1. Make sure you have a AMD/ATI videocard. and have the drivers installed.

2. Check on this webpage which hashrate people have with the same card you have.

3. Fill this page in with your energy bill, power consumption of your pc and the hash rate you checkt on step 2. Now you can see how much money you can make. (on this moment)

4. Make an account on a mining pool. I use this pool because it has 0% fee. This tutorial in now based on this pool but with a mind, you can change it ;)

5. Make a worker on your pool [2]

6. Download cgminer (cgminer 3.7.2 is the last to support Litecoin mining. Use that version or older!) linux windows

7. Unpack it

8. Go in your terminal to the unpacked directory

9. Test it by running the following command´s

- export GPU_MAX_ALLOC_PERCENT=100 (windows: setx GPU_MAX_ALLOC_PERCENT 100)

- export GPU_USE_SYNC_OBJECTS=1 (windows: setx GPU_USE_SYNC_OBJECTS 1)

- ./cgminer --scrypt -u username.worker -p password-of-worker -o stratum+tcp://stratum.hashfaster.com:3333


Tweaking

1. Delete any .bin files in the cgminer folder

2. Run ./cgminer --scrypt -u username.worker -p password-of-worker -o stratum+tcp://stratum.hashfaster.com:3333 --intensity 13

3. If it start mining. See what .bin file is created in de cminer directory. This is an example: scrypt130302Tahitiglg2tc22392w64l8.bin

4. See tc22392 that's telling you what thread concurrency it was. It should start without TC parameters, but you never know. So if it doesn't, start with --thread-concurrency 8192 and add 2048 to it at a time till you find the highest value it will start successfully at.

Overclocking

If you don´t overvolt your card, you not damage your card (normally). Also the overclocking depends of graphic cards you have and there are also differences by a card of the same type.

1. Make sure you add --auto-fan (or --gpu-fan 100 if you always want that your gpu fan is 100% on)

Your command is like this now: ./cgminer --scrypt -u username.worker -p password-of-worker -o stratum+tcp://stratum.hashfaster.com:3333 --intensity 13 --auto-fan

2. add --gpu-memclock ..... to the command. (for my videocard: --gpu-memclock 1500) you can find your memclock here

3. Go up by 25 at a time every 30 seconds or so until your GPU crashes. Then reboot and start it 25 lower as a rough start. now you have your max memclock ;)

4. add --gpu-engine ..... en start your engine clock speed at half your memory clock speed and then increase it by 5 at a time The hash rate should climb a little each rise in engine speed and then suddenly drop above a certain value. Decrease it by 1 then until you find it climbs dramatically. If your engine clock speed cannot get that high without crashing the GPU, you will have to use a lower memclock.

5. remove --thread-concurrency from your command

6. Delete any .bin files in the cgminer folder

7. If it start mining. See what .bin file is created in de cminer directory. This is an example: scrypt130302Tahitiglg2tc22392w64l8.bin

8. See tc22392 that's telling you what thread concurrency it was. It should start without TC parameters, but you never know. So if it doesn't, start with --thread-concurrency 8192 and add 2048 to it at a time till you find the highest value it will start successfully at.

9. Then, and only then, bother trying to increase intensity further. but if you intensity is to hight, cgminer say, your hashrate is more but your pool says, your hashrate is slower. so test it and look what your pool say.

For questions

Go with irc to irc.freenode.net and you the next channels:

- For litecoins en mining stuf #litecoin

- For cgminer #cgminer

- For the hashfaster pool #faster

- For me #tkkrlab (I am user michielbrink)


Resources

- me (michielbrink)

- http://lite.coin-pool.com/gettingstarted

- https://github.com/ckolivas/cgminer/blob/3.7/SCRYPT-README