donate bitcoins: 1JsbEn3pVJcWKGE24hiV5eJSGSTzNT2rTwdonate litecoins: LTfZmMMiNDVx4uWgntmBYubYHjoVqvxsYZ


From LURKMORE wiki
Revision as of 14:03, 8 June 2014 by Kyrio (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

cgminer.conf is the default configuration file for the cryptocoin miner cgminer. If the file doesn't already exist in the cgminer folder, create it and add settings as needed.

The first section below is the minimum needed to get running with a config file.

Using cgminer.conf is the best way to run cgminer. The config file allows you to intelligently set all of your settings with ease. Running cgminer while using a config file allows you to run the binary (cgminer, cgminer.exe) without a batch file or any flags appended to the command line.

Before you start mining cryptocoins with your video card, make sure your version of cgminer is 3.7.2 or earlier.

The following config is for scrypt based cryptocoin mining, such as Litecoin or MinCoin.

"pools" : [
		"url" : "stratum+tcp://",
		"user" : "lurkmore.e",
		"pass" : "1"
		"url" : "stratum+tcp://",
		"user" : "lurkmore.e",
		"pass" : "1"
		"url" : "stratum+tcp://",
		"user" : "lurkmore.5",
		"pass" : "1"

"scrypt" : true,

"kernel-path" : "/usr/local/bin"

The above config is the absolute minimum for mining scrypt. With the above settings, cgminer will usually select the best safe configuration. The above configuration uses failover servers and pools. When one goes down, it'll switch to the next, in the preferred order from top to bottom.

For mining SHA-256d coins, such as Bitcoin, you could just remove the scrypt flag--it should automatically select the default kernel for SHA-256 mining.

The following settings are generally tailored to the HD 7950 GPU, and can easily be adjusted for any other GPU. For more information on what settings other people have used, see the mining hardware comparison on this wiki and also on the official Litecoin wiki. These slightly more advanced options will help you tweak the maximum hashrate from your video card.

Add the following lines above or below the "scrypt" line in the main config:

"api-allow" : "",
"api-listen" : true,
"auto-fan" : true,
"gpu-engine" : "1000",
"gpu-memclock" : "1250",
"gpu-powertune" : "0",
"gpu-vddc" : "1.125",
"gpu-threads" : "1",
"temp-target" : "70",
"queue" : "0",
"intensity" : "20",
"thread-concurrency" : "24000",
"worksize" : "256",

Tweaking the thread-concurrency flag will help you tune the maximum scrypt hashrate--the flag isn't used in SHA-256d mining. Some video cards, such as HD 7970s, would likely prefer intensity of 13 along with gpu-threads of 2. For scrypt mining with HD 7950s, worksize is 256 by default, and it might need to be adjusted for other GPUs or coins.

Of course, all settings require modification to match your own hardware and needs. Read the cgminer README in order to understand what the settings do, and to add or remove settings as needed for your hardware and the coin your are mining.

The Litecoin wiki's mining hardware comparison page is loaded with the hardware configurations that other people have had success with.

Related articles

External links