No installation is necessary. You may run cgminer from the build
directory directly, but you may do make install if you wish to install
cgminer to a system location or location you specified.
See `windows-build.txt` (might be outdated).
Native WIN32 build instructions: see windows-build.txt
## Basic Usage
Basic Usage
-----------
**WARNING**: documentation below this point has not been updated since the
fork.
After saving configuration from the menu, you do not need to give cgminer
any arguments and it will load your configuration.
@ -120,8 +126,7 @@ See GPU-README for more information regarding GPU mining and
@@ -120,8 +126,7 @@ See GPU-README for more information regarding GPU mining and
SCRYPT-README for more information regarding litecoin mining.
Runtime usage
-------------
## Runtime usage
The following options are available while running with a single keypress:
@ -189,11 +194,6 @@ The 8 byte hex value are the 2nd 8 bytes of the share being submitted to the
@@ -189,11 +194,6 @@ The 8 byte hex value are the 2nd 8 bytes of the share being submitted to the
pool. The 2 diff values are the actual difficulty target that share reached
followed by the difficulty target the pool is currently asking for.
---
Also many issues and FAQs are covered in the forum thread
@ -236,29 +236,33 @@ and the all time best difficulty share you've found since starting cgminer
@@ -236,29 +236,33 @@ and the all time best difficulty share you've found since starting cgminer
this time.
---
MULTIPOOL
## Multipool
### Failover strategies
FAILOVER STRATEGIES WITH MULTIPOOL:
A number of different strategies for dealing with multipool setups are
available. Each has their advantages and disadvantages so multiple strategies
are available by user choice, as per the following list:
FAILOVER:
#### Failover
The default strategy is failover. This means that if you input a number of
pools, it will try to use them as a priority list, moving away from the 1st
to the 2nd, 2nd to 3rd and so on. If any of the earlier pools recover, it will
move back to the higher priority ones.
ROUND ROBIN:
#### Round robin
This strategy only moves from one pool to the next when the current one falls
idle and makes no attempt to move otherwise.
ROTATE:
#### Rotate
This strategy moves at user-defined intervals from one active pool to the next,
skipping pools that are idle.
LOAD BALANCE:
#### Load balance
This strategy sends work to all the pools on a quota basis. By default, all
pools are allocated equal quotas unless specified with --quota. This
apportioning of work is based on work handed out, not shares returned so is
@ -273,13 +277,13 @@ mode and it will distribute quota back to priority pool 0 from any pools that
@@ -273,13 +277,13 @@ mode and it will distribute quota back to priority pool 0 from any pools that
are unable to provide work for any reason so as to maintain quota ratios
between the rest of the pools.
BALANCE:
#### Balance
This strategy monitors the amount of difficulty 1 shares solved for each pool
and uses it to try to end up doing the same amount of work for all pools.
---
QUOTAS
### Quotas
The load-balance multipool strategy works off a quota based scheduler. The
quotas handed out by default are equal, but the user is allowed to specify any
@ -301,10 +305,10 @@ For example:
@@ -301,10 +305,10 @@ For example:
Will give poola 1/3 of the work and poolb 2/3 of the work.
Writing configuration files with quotas is likewise supported. To use the above
quotas in a configuration file they would be specified thus:
Writing configuration files with quotas is likewise supported. To use
the above quotas in a configuration file they would be specified thus:
"pools" : [
"pools" : [
{
"url" : "poola:porta",
"user" : "usernamea",
@ -315,24 +319,17 @@ quotas in a configuration file they would be specified thus:
@@ -315,24 +319,17 @@ quotas in a configuration file they would be specified thus:
"user" : "usernameb",
"pass" : "passb"
}
]
]
---
LOGGING
cgminer will log to stderr if it detects stderr is being redirected to a file.
To enable logging simply add 2>logfile.txt to your command line and logfile.txt
will contain the logged output at the log level you specify (normal, verbose,
debug etc.)
## Logging
In other words if you would normally use:
./cgminer -o xxx -u yyy -p zzz
if you use
./cgminer -o xxx -u yyy -p zzz 2>logfile.txt
it will log to a file called logfile.txt and otherwise work the same.
cgminer will log to stderr if it detects stderr is being redirected to a
file. To enable logging simply append `2>logfile.txt` to your command line
and `logfile.txt` will contain the logged output at the log level you
specify (normal, verbose, debug etc.)
There is also the -m option on linux which will spawn a command of your choice
There is also the -m option on Linux which will spawn a command of your choice
and pipe the output directly to that command.
The WorkTime details 'debug' option adds details on the end of each line
@ -379,7 +376,6 @@ For example (this is wrapped, but it's all on one line for real):
@@ -379,7 +376,6 @@ For example (this is wrapped, but it's all on one line for real):