Showing posts with label altcoin. Show all posts
Showing posts with label altcoin. Show all posts


CGminer for scrypt mining tutorial

First off, the original CGminer for GPU is dead. All 3.8 and newer builds are made for ASICs only. Luckily, it has been forked, and scrypt-mining on GPU has been kept. Get kalroth's CGminer fork at Also have a look at this thread at

Configuring CGminer is quite complicated (it is JSON formatted), but my basic one goes like:
"pools" : [
"quota" : "20;stratum+tcp://server1:3333",
"user" : "x.x",
"pass" : "x"
"quota" : "50;stratum+tcp://server2:3333",
"user" : "x.x",
"pass" : "x"
"url" : "stratum+tcp://server3:3333,
"user" : "x.x",
"pass" : "x"
"quota" : "10;stratum+tcp://server4:3333",
"user" : "x.x",
"pass" : "x"
"quota" : "20;stratum+tcp://server5:3333",
"user" : "x.x",
"pass" : "x"
"failover-only" : true,
"load-balance" : true,
"scrypt" : true,
"kernel" : "scrypt",
"intensity" : "15,13",
"thread-concurrency" : "4476,3198",
"gpu-threads" : "1",
"gpu-platform" : "1"
This config turns on the normal scrypt module, as you can see.

Also it enables failover and load balancing. As you can see, server 1,2,4,5 shares their quota amd server 3 is only a fail-over, but it will still failover to any alive pool as long as a server with quote demand is dead.

20+50+10+20 = 100 %.

Notice the "quota" parameter replacing the usual "url" parameter, and that is add a comma separator after the quota specified before the url!

Intensity: Is just how much steam the cards can handle. If you see in the CGminer console that you are getting HW errors, lower the intensity. 15 is a bit high, but I get no errors. 13 is more common, but still gives me a HW error of 1 per day or so. That is not good, so I should lower intensity to 12 and see how it goes.

Note the comma-separation on the parameters that supports it. Generally PCIe slot 0 is the first, PCIe slot 2 is the second, etc!

Thread concurrency: Is calculated by taking number of GPU shaders and multiplying by 4 (for the 6xxx and 7xxx series, other models has other optimal calculations.) and remove 4.

GPU Platform: Normally, the platform available on PCIe slot 0 becomes gpu-platform 0. That means if you have an Nvidia card in slot 0 like me, and 2 AMD cards on slot 1 and 2, it becomes platform 1. So platform 1, card 0 and 1 is my active cards in CG miner. cudaminer would then need the opposite config, pretty much.

Starting up CGminer from a batch file:

@echo on
ECHO "cgminer miner startup"
cgminer.exe --config=cgminer.conf

setx works on Windows, as some people dispute. Look at the 'succeeded' return-message in the console.


Bitcoin mining and profits in the post-homemining era

Bitcoin mining at home is dead. It went completely dead around summer 2013. The rise of ASIC mining has left everyone in the dust.

Luckily there are alternavtive digital coins, so called 'altcoins', and these are mined using traditional GPU rigs and doesn't use 'SHA256' hashing like Bitcoin and it's direct siblings. They use an hashing algorithm called 'scrypt' that is somewhat resistant to ASIC mining.

Depending on the exchange rates and hashing power that goes into the various altcoin mining, it is more profitable to mine certain altcoins at certain times.
Check out for an overview of the profitability of some alt coins.
At the moment, Dogecoin seems to be on the rise, and is over 2.5 times more profitable to mine than LTC. Want to Dogetip me ? Go right ahead, my crypto coin tips adresses are to the right clolumn,

If you are good at jumping pools, you can still scoop 0.01-0.02 BTC each day with about 1Mh/s of equipment.

Power is expensive, but right now in the winter, I would still need 2000-3000 watts to keep my apartment warm. Now I am heating my place with about 2000 watts of GPU and CPU mining. So in that sense, during winter, mining is pure profit. Keeps the place warm and makes me money too.

There are also a coin called PrimeCoin (aka XPM) that are mined only by CPU power. You can mine with a pool or solo mine with a highly optimized wallet.

You can exchange certain coins for other coins on exchanges like Cryptsy and even buy cloud mining at places like CEX. If you sign up to those two places and start trading from these links right here, I get a referral bonus too :)

Other good coin exchanges are BTC-e, Vircurex

AMD cards are still king of coin mining, but the newer CUDA miners can squeeze a lot more out of Nvidia cards today. My GTX 660 used to mine at 90 k/hs, with the new miner out now, it spiked to 180. I get about 0.15 BTC and 0.010 XPM daily. This money I invest in cloud mining for the long term.

cgminer flags (GUI-miner scrypt edition)
All at intensity 17. 16 Adjust after your liking. Intensity 18 will give me about 10-20% invalid shares. 17 about 5-10. 16 seems to approach around 1-2%.

Thread concurrency should be you memory divided by 32kb.
--shaders: specify the number of shaders in your unit. (notice two --)
-w flag: set worksize. usually 256 seems to work best on all cards.
-v flag: set to 1 to use GPU vectors for speed boost.

CUDA miner flags:
-H flag: Set to 1 to borrow some CPU for 10% mining boost.
-C flag: set to 1 to use texture cache
-l flag: specify kernel and warp configuration. Just use auto.

At the moment, my mining rigs are as follows:


185 kh/s: GTX 660 (Gigabyte factory OC'd)
90 kh/s: GTX 550 TI (Gigabyte)
144 kh/s: Radeon 7750 (Sapphire fanless)
96 kh/s: Radeon 7750 (Gigabyte with fan)
198 kh/s: Radeon 6790
198 kh/s: Radeon 6790
283 kh/s: Radeon 6870
30 kh/s: BeaverCreek APU
30 kh/s: Caicos APU

CPU mining (XPM):

0.044 chains/d :AMD 1100T (0.050+ idle)
0.020 chains/d :AMD 960T (1 core disabled, too hot)
0.022 0.008 chains/d :Intel Core Duo
0.010 chains/d:AMD A6 APU
0.002 chains/d:Celeron M

Update: It appears that when you find a prime higher difficulty prime, you get a bigger share unlike regular mining. Awesome :D

Also, check for solo ming tips