Difference between revisions of "Cgminer.conf"

From LURKMORE wiki
Jump to navigationJump to search
 
(22 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{lowercase}}'''cgminer.conf''' is the default configuration file in '''[[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.
+
{{lowercase}}'''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 following config is for '''[[scrypt]]''' based [[cryptocoin]] mining, such as [[Litecoin]] or [[MinCoin]]. These settings are generally tailored to the HD 7950 GPU, and can easily be adjust 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 [http://litecoin.info/Mining_hardware_comparison the official Litecoin wiki].
+
The first section below is the minimum needed to get running with a config file.
<code>
 
{
 
"pools" : [
 
{
 
"url" : "stratum+tcp://usa-1.liteguardian.com:3333",
 
"user" : "lurkmore.e",
 
"pass" : "1"
 
},
 
{
 
"url" : "stratum+tcp://usa-1b.liteguardian.com:3333",
 
"user" : "lurkmore.e",
 
"pass" : "1"
 
}
 
],
 
 
"intensity" : "20",
 
"scrypt" : true,
 
"thread-concurrency" : "24000",
 
"worksize" : "256",
 
 
"kernel-path" : "/usr/local/bin"
 
}
 
</code>
 
Tweaking the ''thread-concurrency'' flag will help you tune the maximum hashrate. Some GPUs, such as HD 7970s, would use an ''intensity'' of 13.
 
  
For mining '''SHA-256d''' coins, such as [[Bitcoin]], you could just remove all flags other than intensity; cgminer will usually select the best configuration.
+
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.
  
Slightly more advanced options to add to the above config:
+
The following config is for '''[[scrypt]]''' based cryptocoin mining, such as [[Litecoin]] or [[MinCoin]].
<code>
+
<pre>
"api-allow" : "192.168.1.120",
+
{
"api-listen" : true,
+
"pools" : [
"auto-fan" : true,
+
{
"gpu-engine" : "1000",
+
"url" : "stratum+tcp://usa-1.liteguardian.com:3333",
"gpu-memclock" : "1250",
+
"user" : "lurkmore.e",
"gpu-powertune" : "0",
+
"pass" : "1"
"gpu-vddc" : "1.125",
+
},
"temp-target" : "70",
+
{
"queue" : "0",
+
"url" : "stratum+tcp://eu-1.liteguardian.com:3333",
</code>
+
"user" : "lurkmore.e",
 +
"pass" : "1"
 +
},
 +
{
 +
"url" : "stratum+tcp://us.litecoinpool.org:3333",
 +
"user" : "lurkmore.5",
 +
"pass" : "1"
 +
}
 +
],
  
'''Of course, all of the above settings would require modification to match your own hardware and needs.'''
+
"scrypt" : true,
 +
 
 +
"kernel-path" : "/usr/local/bin"
 +
}
 +
</pre>
 +
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 [http://litecoin.info/Mining_hardware_comparison 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 <code>"scrypt"</code> line in the main config:
 +
<pre>
 +
"api-allow" : "192.168.1.120",
 +
"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",
 +
</pre>
 +
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 3.1.1 README|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 [https://litecoin.info/Mining_hardware_comparison mining hardware comparison page] is loaded with the hardware configurations that other people have had success with.
 +
 
 +
== Related articles ==
 +
* [[cgminer]]
 +
* [[Debian Linux cryptocoin mining rig setup guide]]
 +
* [[cgminer 3.1.1 README|cgminer README]]
  
 
== External links ==
 
== External links ==
* [https://github.com/ckolivas/cgminer cgminer source and readme] - all configuration settings are listed on this page
+
* [http://ck.kolivas.org/apps/cgminer/ cgminer binary downloads] - keep in mind that version 3.7.2 is the last version for scrypt and video card mining
* [http://ck.kolivas.org/apps/cgminer/ cgminer binary downloads]
+
* [https://litecoin.info/Mining_hardware_comparison Litecoin wiki's mining hardware comparison]
 
 
 
[[Category:Cryptocurrency]][[Category:Software]]
 
[[Category:Cryptocurrency]][[Category:Software]]

Latest revision as of 15:03, 8 June 2014

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://usa-1.liteguardian.com:3333",
		"user" : "lurkmore.e",
		"pass" : "1"
	},
	{
		"url" : "stratum+tcp://eu-1.liteguardian.com:3333",
		"user" : "lurkmore.e",
		"pass" : "1"
	},
	{
		"url" : "stratum+tcp://us.litecoinpool.org:3333",
		"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" : "192.168.1.120",
"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