Settings and parameters CGMiner

CGMiner is managed via the command line. In order not to configure all the parameters again every time you start or change the cryptocurrency, it is easier to create one .bat file and enter the settings there. This file is created in the folder with the miner as a text document (notepad), with the extension .bat. The main setup for the miner operation looks like this:

cgminer --scrypt -o stratum+tcp://east1.us.stratum.dedicatedpool.com:3351 -u user.1 -p x

cgminer — points to the starting file

—scrypt — specifies the algorithm of the extracted cryptocurrency to the miner

-o — after that, the address of the stratum+tcp pool is specified://east1.us.stratum.dedicatedpool.com: and port 3351. This data is shown on all pools, in the “Getting Started” section.

-u user.1 — specifying the username on the pool and the name of the worker created there

-p x — specifying the password for the created worker

Sample configuration .bat file under Windows

The so-called Bat file “batnik” is needed to set several necessary parameters for the CGMiner program.

Базовый вариант настройки исполняющего файла выглядит следующим образом:

setx GPU_MAX_ALLOC_PERCENT 100 setx GPU_USE_SYNC_OBJECTS 1 cgminer.exe --scrypt --worksize 256 --intensity 20 --auto-fan --lookup-gap 2 --thread-concurrency 25614 --gpu-engine 1050 -- gpu-memclock 1600 --gpu-powertune 20 -o адрес пула:порт -u worker -p пароль

Расширенные настройки для улучшения производительности майнера:

--auto-fan Automatically adjusts the GPU fan speed to maintain the set temperature (value: none);
--auto-gpu Automatically adjusts the GPU clock speed to maintain the set temperature (value: none);
--device (-d) Allows you to select the desired device to work with, by default, all work (example: --device 0);
--disable-gpu (-G) Disable GPU (value: none); --gpu-threads (- g) Number of threads per GPU (values: 1-10, default is 2, example: --gpu-threads 2);
--gpu-dyninterval Set the refresh interval in ms for GPUs using dynamic intensity (default: 7);
--gpu-engine Sets the frequency for the graphics core, it is possible to set the range (example: –gpu-engine 900 or 800-900);
--gpu-fan Sets the fan speed as a percentage, fixed, or range (example: — gpu-fan 25 or 25-65); — gpu-map OpenCL Map for ordering ADL devices manually, paired CSV (for example, 1: 0.2: 1 maps OpenCL 1 to ADL 0, 2 to 1);
--gpu-memclock Sets the frequency for memory (for BTC, it is better to lower the frequency, for LTC, raise it, example: –gpu-memclock 1800);
--gpu-memdiff Set a fixed difference in MHz between the core and memory (example: –gpu-memdiff ???);
--gpu-powertune Set GPU powertune as a percentage;
--gpu-reorder Re-sort video cards;
--gpu-vddc Change the core voltage, in volts (example: –gpu-vddc 1.125);
--intensity (-I) Aggression (intensity) (values: 10-14, d-dynamic, example — intensity 13 or d);
--kernel (-k) Specifies the kernel for the device to run (cores: diablo, poclbm, phatk, diakgcn, example: –kernel diakgcn) (need help selecting cores for card families);
--ndevs (-n) Display a list of all devices with their numbers and exit;
--temp-hysteresis How much can the temperature differ in degrees from the target temperature (default: 3, example: –temp-hysteresis 15);
--temp-overheat Temperature in degrees resets core frequencies and increases fan speed (default: 85, example: –temp-overheat 90) –temp-target Sets the target temperature in degrees (default: 75, example: –temp-target 80);
--vectors (-v) Set the width of the vectors to auto by default (values: 1, 2, and 4, example: –vectors 2);
--worksize (-w) Set the memory size, the performance is almost not affected (default: auto, the value must be a multiple of – 64, 128, 256, 512, 1024, 256 is recommended, example: –worksize 256).