Инструкция по настройке cgminer

Setting up a bat file

Setting up is relatively easy once you know all the basic commands.

The main file setting has the following data:

Here:

  1. –shows the file used to run the miner.
  2. – an indication of the algorithm used to obtain the digital token that the miner should use.
  3. – after it you need to specify the address of the pool with the port. Take them in the pool where you are going to mine. You can find it in the “Getting Started” category.
  4. – displaying the login that was used when registering on the pool, here enter the name of the worker, which was made there.
  5. – enter the password that was used to create the worker.

This completes the configuration of the bat file.

Building

Dependencies

Mandatory:

Optional:

  • curses dev library — on Debian or on WIN32, for text user interface

If building from git:

  • autoconf
  • automake

sgminer-specific configuration options:

Debian Example

AMD APP SDK and AMD ADL SDK must be downloaded from the amd websites.

*nix build instructions

If needed, place include headers ( files) from in .

Then:

To compile a version that can be used accross machines, remove
.

To compile a debug version, replace with .

Depending on your environment, replace with .

Systemwide installation is optional. You may run from the build
directory directly, or if you wish to install
to a system location or a location you specified with .

See for MinGW compilation and cross-compiation,
for building using Cygwin, or use the provided
Microsoft Visual Studio project (tested on MSVS2010), with
instructions in .

Review

The program is aimed exclusively at experienced users who are mining cryptocurrencies. Consequently, the functionality is versatile. The software was launched back in 2011. Since then, it has only improved and increased its positive qualities. The launch was made with open source code, which allows you to be confident in the reliability of the software.

The main developer was Kon Kolivas. He is also known for contributing to the development of Linux. At the same time, he is an anesthesiologist by profession, developing programs for him is a simple hobby.

The program is recognized as the most effective software for the extraction of electronic tokens using AMD and NVidia video adapters.

The software allows you to improve the performance of video adapters, making it possible to fine-tune graphics devices.

Most of the known digital coins can be mined on these algorithms. It is used in the mining of Bitcoin, Dogecoin, Monero, Litecoin and other well-known digital tokens. Provides a number of benefits:

  • Allows you to overclock GPUs, providing excellent functionality.
  • You can adjust the rotational speed of the coolers used in cooling systems.
  • The algorithms used provide the most efficient cryptocurrency mining.
  • You can enable automatic switching between workers.
  • Work with the use of proxy servers is available.
  • There is no commission for using the program. Hence, it is 100% free.
  • There is a balancing of the algorithm.
  • If the workers are not working, the program will disable them.

Key features

The official site allows you to download the software for free. However, please note that the latest versions of the program focused exclusively on ASICs and FPGAs, since the developers decided not to continue to support mining on CPUs and video processors. It is worth using old software releases for them. These include versions prior to 3.7.8.

Basically, it is worth working on AMD, since the software does not work well with CUDA. For NVidia, it is better to choose another miner, for example, Claymore.

The program has several interesting points. One of them is the introduction of tools to overclock GPUs and set the desired fan speed in the cooling system. True, it is worth using this functionality carefully, since there is a high chance of spoiling the equipment and sending it to the scrap.

The program also provides configuration information, automatically turns off the worker, causing problems or simply not working. You can use proxy, balance loading strategy and Round Robin. Thanks to this, miners can independently enter the parameters of the width of the vectors, the waiting time for the connection restoration, create a specified delay for the router and configure a separate display of notifications. The work of the program is configured through a special configuration file.

What to mine with Gminer? Algorithm List

Gminer handles a ton of algorithms. The complete list is as follows:

  • Ethash (Nvidia only)
  • ProgPoW (Nvidia only)
  • KAWPOW (Ravencoin and Nvidia only)
  • Ethash + Eaglesong (Nvidia only)
  • Ethash + Blake2s (Nvidia only)
  • Eaglesong (Nvidia and AMD)
  • Blake2b + Sha3 (Nvidia only)
  • Cuckarood29 / Cuckaroom29 (Grin and Nvidia only)
  • Cuckatoo31 (Grin and Nvidia only)
  • Cuckatoo32 (Grin and Nvidia only)
  • Cuckoo29 (Aeternity for Nvidia and AMD)
  • CryptoNightBBC (Nvidia only)
  • BFC (Nvidia and AMD)
  • Cortex (Nvidia only)
  • Cuckaroo29s (Nvidia and AMD)
  • Cuckarood29v (MoneroV for Nvidia)
  • Blake2s (Nvidia and AMD)
  • Eaglesong (Nervos CKB for Nvidia and AMD)
  • Equihash 96.5 (Nvidia only)
  • Equihash + Scrypt (for Nvidia)
  • Equihash 125.4 (ZelCash and Nvidia only)
  • Equihash 144.5 (Bitcoin Gold, BitcoinZ and ZelCash for Nvidia and AMD)
  • Beam Hash (BEAM for Nvidia and AMD)
  • Equihash 192.7 (Nvidia and AMD)
  • Equihash 210,9 (Nvidia).

Below is a list of algorithms that are supported by the mining program (miner) Gminer. The program commission is shown for each of the algorithms. This commission usually does not exceed a few percent and is used by the developers of the miner to maintain and improve its work, as well as to add new functions. The commission is taken due to the fact that the program mines a short period of time (usually no more than a minute) every hour to the developer’s wallet.

  • eth, ethash — 0.65%
  • etc, etchash — 0.65%
  • kawpow, rvn, ravencoin — 1%
  • cuckatoo32, grin32 — 2%
  • cortex — 5%
  • beamhash — 2%
  • equihash144_5 — 2%
  • equihash125_4 — 2%
  • equihash192_7 — 2%
  • equihash210_9 — 2%
  • cuckoo29, aeternity — 2%
  • cuckarood29 — 2%
  • cuckatoo31, grin31 — 2%
  • cuckaroo29b, bittube — 4%
  • cuckaroo29s, swap — 2%
  • cuckarood29v, monerov — 10%
  • bfc — 3%
  • vds — 2%

And here is the recommended amount of video card memory for Gminer to work on different algorithms.

  • Cuckaroo29 — 3.8Gb;
  • Cuckatoo31 — 7.68 Gb;
  • Cuckoo29 — 3.8 Gb;
  • Equihash 96.5 — 0.75 Gb;
  • Equihash 144.5 — 1.75 Gb;
  • Beam Hash — 2.9 Gb;
  • Equihash 192.7 — 2.75 Gb;
  • Equihash 210.9 — 1 Gb.

Обновления / Releases

Обновление v0.8.5

  • Общие: добавлены часы Windows / напряжение / встроенный контроль таймингов (бета-функция). См. Раздел в –help и CLOCKS_VOLTAGE_CONTROL.txt.
  • Общие: исправлены некоторые проблемы с управлением вентиляторами в Windows, в основном для графических процессоров Big Navi.
  • Общие: добавлены временные ограничения памяти (остановка / возобновление), см. –Mem_temp_limit и –mem_temp_resume.
  • Ethash: добавлена ​​поддержка принудительного создания отчетов о хешрейте пула ethash (см. –Eth_hash_report).
  • Ethash: исправлены отчеты о хешрейте для Crazypool при использовании отказоустойчивых пулов.
  • Autolykos2: добавлена ​​дополнительная поддержка подписки, например, для Nicehash.

Обновление v0.8.4

  • Общие: добавлено исправление сбоя при загрузке ядер графического процессора в более новых драйверах, например Big Navi на Adrenalin 21.6.x.
  • Аварийный патч: исправлена ​​ошибка, из-за которой майнинг в Хейвене генерировал в основном ошибки после недавнего хард-форка.

Обновление v0.8.3

  • Общие: добавлен алгоритм для (очень хороший апдейт для Vega 56/64, см. Руководство AUTOLYKOS_TUNING.txt).
  • Общие: улучшенный и упрощенный ZIL dual mining для (см. Новое руководство DUAL_ZIL_MINING.txt).

Обновление v0.8.2.1

Небольшой выпуск исправлений:

  • Исправление: исправлена ​​проблема с Windows, из-за которой периодически считывалась статистика с нулевым графическим процессором и подрывались вентиляторы (ошибка 0.8.2).
  • Verthash: добавлен параметр –verthash_max_uploads = N для управления загрузкой таблицы verthash в графический процессор при запуске. У некоторых чипсетов возникают проблемы с одновременной работой> 4 ГП. Типичная ошибка заключается в том, что несколько графических процессоров сразу умирают при запуске при запуске полной установки, но работают нормально, если вы запускаете только 3-4 графических процессора.
  • Verthash: исправлена ​​поддержка графических процессоров с объемом памяти 2 ГБ.

Обновление v0.8.2

Ключевые моменты:

  • Добавлен алгоритм Verthash (используйте -a verthash).o Хороший выбор для графических процессоров Polaris 4 ГБ.o Пожалуйста, прочтите VERTHASH_TUNING_GUIDE.txt для получения быстрых указаний по настройке.o Плохой алгоритм для графических процессоров Navi, архитектура RDNA не подходит.o Хешрейт при высокой настройке: 560 кГц / с (Polaris), 1,2 MH / с (RX Vegas), 850 кГц / с (5700XT).
  • Графические процессоры Tonga (R9 285 / 285X / 380 / 380X, W7100, S7150) теперь поддерживаются для ethash и kawpow.
  • Исправлен синтаксический анализ имени устройства для ROCm 4.1 и новых драйверов Windows.
  • API: добавлены мощность датчика, температура соединения и температура памяти для вывода API.
  • Другие изменения:o Расширенная поддержка до 24 графических процессоров (предыдущий максимум был 16 графических процессоров).o Лучшая обработка проблем с драйверами, связанных со статистикой часов / темпов графического процессора.o Теперь отображается мощность датчика в выводе статистики за 30 секунд.o Исправлены ложные срабатывания сторожевого таймера DEAD для небольших графических процессоров, создающих kawpow DAG.o Kawpow теперь полностью работает с MiningPoolHub, независимо от плохих значений seedhash.

Обновление v0.8.1.1 

  • Добавлена ​​поддержка Big Navi. Это просто базовая версия поддержки для всех поддерживаемых алгоритмов Navi (ethash, kawpow, mtp, nimiq).o Ядра близки или идентичны A-режиму Navi10 (ethash) и режимам по умолчанию для Navi10 (kawpow, mtp, nimiq).o Пожалуйста, прочтите обновленный ETHASH_TUNING_GUIDE.txt, чтобы увидеть небольшой раздел настройки в самом конце файла.o Big Navi должен работать в A-режиме для ethash (выбор по умолчанию), а не в B-режиме. Прочтите руководство по настройке для получения дополнительной информации.
  • Майнинг eth + zil: добавлена ​​новая стратегия пула min_epoch для переключения между обычными пулами eth и eth + zil. См. Пример использования сценария запуска start_zil_eth (.bat / .sh).
  • Ethash: Navi display gpus теперь по умолчанию использует A-режим для предотвращения проблем с выделением памяти, особенно в Windows. Navi gpus без подключенного монитора по-прежнему будет работать в B-режиме.
  • Статистика: теперь корректная обработка отрицательных температур под Linux.

Runtime usage

The following options are available while running with a single keypress:

ool management PU management ettings isplay options uit

P gives you:

Current pool management strategy: Failover
ailover only disabled
dd pool emove pool isable pool nable pool
hange management strategy witch pool nformation

S gives you:

ueue: 1
cantime: 60
xpiry: 120
rite config file
gminer restart

D gives you:

ormal lear ilent mode (disable all output)
ebug:off
er-device:off
uiet:off
erbose:off
PC debug:off
orkTime details:off
copact: off
og interval:5

Q quits the application.

G gives you something like:

GPU 0: [124.2 / 191.3 Mh/s] [A:77 R:33 HW:0 U:1.73/m WU 1.73/m]
Temp: 67.0 C
Fan Speed: 35% (2500 RPM)
Engine Clock: 960 MHz
Memory Clock: 480 Mhz
Vddc: 1.200 V
Activity: 93%
Powertune: 0%
Last initialised:
Thread 0: 62.4 Mh/s Enabled ALIVE
Thread 1: 60.2 Mh/s Enabled ALIVE

nable isable estart GPU hange settings
Or press any other key to continue

The running log shows output like this:

Accepted f0c05469 Diff 1/1 GPU 0 pool 1
Accepted 218ac982 Diff 7/1 GPU 1 pool 1
Accepted d8300795 Diff 1/1 GPU 3 pool 1
Accepted 122c1ff1 Diff 14/1 GPU 1 pool 1

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.

The output line shows the following:
(5s):1713.6 (avg):1707.8 Mh/s | A:729 R:8 HW:0 WU:22.53/m

Each column is as follows:
5s: A 5 second exponentially decaying average hash rate
avg: An all time average hash rate
A: The total difficulty of Accepted shares
R: The total difficulty of Rejected shares
HW: The number of HardWare errors
WU: The Work Utility defined as the number of diff1 shares work / minute
(accepted or rejected).

GPU 1: 73.5C 2551RPM | 427.3/443.0Mh/s | A:8 R:0 HW:0 WU:4.39/m

Each column is as follows:
Temperature (if supported)
Fanspeed (if supported)
A 5 second exponentially decaying average hash rate
An all time average hash rate
The total difficulty of accepted shares
The total difficulty of rejected shares
The number of hardware erorrs
The work utility defined as the number of diff1 shares work / minute

The sgminer status line shows:
ST: 1 SS: 0 NB: 1 LW: 8 GF: 1 RF: 1

ST is STaged work items (ready to use).
SS is Stale Shares discarded (detected and not submitted so don’t count as rejects)
NB is New Blocks detected on the network
LW is Locally generated Work items
GF is Getwork Fail Occasions (server slow to provide work)
RF is Remote Fail occasions (server slow to accept work)

The block display shows:
Block: 0074c5e482e34a506d2a051a… Started: Best share: 2.71K

This shows a short stretch of the current block, when the new block started,
and the all time best difficulty share you’ve found since starting sgminer
this time.

Установка и настройка NiceHash Miner

  1. Скачать архив с программой
  2. Распауйте архив с программой
  3. Запустите NiceHashMiner.exe
  4. После первого запуска запустите бенчмарк-тест, иначе многоалгоритмный майнинг не будет работать должным образом; для графических процессоров AMD мы рекомендуем запустить тест Precise
  5. Убедитесь, что вы выбрали свой личный биткойн-кошелек для приема платежей, см. Инструкции и инструкции по использованию биткойн-кошелька здесь: 
  6. Вы будете получать платежи в биткойнах согласно нашему графику платежей: 

Эффективность майнинга сильно зависит от стоимости электроэнергии в вашей местности, поэтому NHM будет останавливать процесс если майнинг будет становиться нерентабельным по каким-либо причинам, определяя порог рентабельности по установленной сумме прибыли в настройках MinimumProfit. Это не позволит вам работать в минус или с нулевой прибылью.

Если вы выбираете первую программу майнинга, NiceHash Miner – один из лучших вариантов. Здесь не придется лазить в командной строке, редактировать конфиг файлы, искать адреса пулов. Все что необходимо – вписать свой Биткоин кошелек и кликнуть на кнопку «Начать майнинг». Конфигурация программного обеспечения для каждого каждого алгоритма облачного майнинга подбирается автоматически.

Возможные проблемы

Если CGMiner не запускается, то, возможно, производится запуск программы на 32-битной версии операционной системы. Для решения проблемы нужно переустановить ОС на Windows 7, 8 или 10 с 64-битной архитектурой.

При использовании пула Hash-To-Coins с настройками, как указаны выше, майнер не будет работать. В этом случае все настройки задаются непосредственно в кабинете пула, а настройки для run.bat – стандартные. Параметры можно внести в закладке My Accounts – Worker. Непосредственно настройки для cgminer можно получить на вкладке Get Started. Порт – универсальный 4444. Кстати, в Hash-To-Coins можно также посмотреть детальную статистику в разделе Dashboard (даже если добывались не только Litecoin).

Если же cgminer.exe запускается с ошибкой, указывающей на проблемы с X11, то это означает, что используемая видеокарта слишком устаревшая и не имеет поддержки последних версий Direct. В первую очередь следует установить более современный драйвер. Если и это не поможет, то придется менять аппаратное обеспечение.

Итого, cgminer – удобный майнер для майнинга по алгоритмам Scrypt и SHA-256. Имеется возможность тонкой подстройки работы программы, но есть ограничения по самим монетам. Лучше всего подходит именно для лайткоин.

F.A.Q

Why is my hashrate with Nvidia cards on Windows 10 so low?

The new WDDM 2.x driver on Windows 10 uses a different way of addressing the GPU. This is good for a lot of things, but not for ETH mining.

  • For Kepler GPUs: I actually don’t know. Please let me know what works best for good old Kepler.
  • For Maxwell 1 GPUs: Unfortunately the issue is a bit more serious on the GTX750Ti, already causing suboptimal performance on Win7 and Linux. Apparently about 4MH/s can still be reached on Linux, which, depending on ETH price, could still be profitable, considering the relatively low power draw.
  • For Maxwell 2 GPUs: There is a way of mining ETH at Win7/8/Linux speeds on Win10, by downgrading the GPU driver to a Win7 one (350.12 recommended) and using a build that was created using CUDA 6.5.
  • For Pascal GPUs: You have to use the latest WDDM 2.1 compatible drivers in combination with Windows 10 Anniversary edition in order to get the full potential of your Pascal GPU.

Are AMD cards also affected by slowdowns with increasing DAG size?

Only GCN 1.0 GPUs (78×0, 79×0, 270, 280), but in a different way. You’ll see that on each new epoch (30K blocks), the hashrate will go down a little bit.

Can I still mine ETH with my 4GB GPU?

Not really, your VRAM must be above the DAG size (Currently about 4.023 GB.) to get best performance. Without it severe hash loss will occur.

What are the optimal launch parameters?

The default parameters are fine in most scenario’s (CUDA). For OpenCL it varies a bit more. Just play around with the numbers and use powers of 2. GPU’s like powers of 2.

What does the flag do?

@davilizh made improvements to the CUDA kernel hashing process and added this flag to allow changing the number of tasks it runs in parallel. These improvements were optimised for GTX 1060 GPUs which saw a large increase in hashrate, GTX 1070 and GTX 1080/Ti GPUs saw some, but less, improvement. The default value is 4 (which does not need to be set with the flag) and in most cases this will provide the best performance.

What is ethminer’s relationship with Genoil’s fork?

Genoil’s fork was the original source of this version, but as Genoil is no longer consistently maintaining that fork it became almost impossible for developers to get new code merged there. In the interests of progressing development without waiting for reviews this fork should be considered the active one and Genoil’s as legacy code.

CUDA GPU order changes sometimes. What can I do?

There is an environment var which tells the Nvidia CUDA driver how to enumerates the graphic cards.
The following values are valid:

  • (Default) — causes CUDA to guess which device is fastest using a simple heuristic.
  • — orders devices by PCI bus ID in ascending order.

To prevent some unwanted changes in the order of your CUDA devices you might set the environment variable to .
This can be done with one of the 2 ways:

  • Linux:

    • Adapt the file and add a line
    • Adapt your start script launching ethminer and add a line
  • Windows:

    • Adapt your environment using the control panel (just search using your favorite search engine)

CryptoNight алгоритм майнинга

Основная задача Cryptonight – не создавать разрыв между пользователями ПК и владельцами специализированных устройств ASIC во время майнинга. Абади и другие криптографы разработали алгоритмы, чувствительные к памяти.

Основная идея состоит в том, чтобы выделить большой блок данных (Блокнот) в ОЗУ с непредсказуемой последовательностью в нем. Блок должен быть достаточно большим, чтобы сделать хранение данных более удобным, чем вычисление его при каждом обращении к нему. Алгоритм также должен предотвращать внутренний параллелизм, то есть N одновременных потоков должны требовать в N раз больше памяти одновременно.

Популярный алгоритм Scrypt также использует память, но оставляет возможность создания мощных и относительно недорогих вычислительных устройств для расчета этого алгоритма. В случае CryptoNote, в отличие от Scrypt, каждый новый блок (64 байта) зависит от всех предыдущих. Новый алгоритм требует около 2 МБ ОЗУ, что является минимальным размером кэш-памяти L3 современных процессоров. В то же время этот объем оперативной памяти исключает использование ASIC.

Мы должны различать CryptoNote и CryptoNight. CryptoNight является одной из реализаций протокола CryptoNote. По алгоритму «Криптонит» построены Monero (XMR), ByteCoin (BCN), Aeoncoin.

The advantages of production on this algorithm:

  • Smoothly decreasing emission.
  • Small time intervals between blocks;
  • The inability to mine on ASIC hardware.
  • The use of bundles of CPU+GPU for greater performance.
  • Fundamental differences from bitcoin, which contributes to the growth of interest in new cryptocurrencies.
  • Innovation profitable CryptoNight coin isolated from most of the altcoins on the old algorithms.
  • Profitability and expediency of production is higher than most other cryptocurrencies.
  • Less heating of the graphics card and processor than when mining on other algorithms.

Другие версии CGMiner:

  • v4.9.2: https://crazy-mining.org/majning-2/soft/skachat-cgminer-4-9-2-gpu-majner-dlya-fpga-asic/
  • v4.1.11: https://crazy-mining.org/majning-2/soft/skachat-cgminer-4-1-11-majner-fpga-asic/

This post is also available in:
English

Обновления / Releases

Обновление v39.2

  • :  добавлено обнаружение и восстановление блокировки LHR в режиме LHR.
  • : добавлен  дисплей (если есть) для Nvidia и AMD GPU под windows.
  • :  более надежный дескриптор протокола.

Примечание: для работы режима LHR требуется библиотека NVML, убедитесь, что драйвер установлен правильно и не добавляйте  аргумент.

Обновление v39.1

  • : улучшить хешрейт режима 1 – 2% , значение по умолчанию изменяется с 68 на 69 , ручная установка 70 также очень многообещающая.
  • : поддержка режима в драйвере Windows 471.11
  • : выпуск v39.0
  • : проблема с драйвером Windows 21.6.1+

Обновление v39.0

:  новый режим LHR для майнинга ETH на графических процессорах LHR серии RTX 30, поддерживает Windows и Linux, может получить ~ 70% максимального разблокированного хешрейта.

  • Этот режим можно настроить аргументом , работает только сейчас.
  • по умолчанию – 0, что означает, что даже если он не установлен, режим LHR будет применяться к графическим процессорам LHR, если обнаружены определенные графические процессоры.
  • Настройте режим LHR, установив определенное значение, которое укажет майнеру, что он пытается достичь  процента от максимального хешрейта разблокировки, например , ожидает получить 68% хешрейта для той же модели графического процессора без LHR.
  • Более высокое значение приведет к более высокому хешрейту, но имеет более высокую вероятность попасть в состояние блокировки, что приведет к гораздо меньшему хешрейту.
  • Хорошее начальное значение настройки составляет 68, что было проверено на стабильность на большинстве конфигураций буровой установки.
  • значение может быть установлено для каждого графического процессора, используя список, разделенный запятыми , где означает выключение режима LHR.

Известная проблема

невозможно разблокировать хешрейт LHR под драйвером Windows 471.11

Обновление v38.0

  • : добавить поддержку.
  • : устранение утечки памяти библиотекой NVML для драйвера Nvidia 460+ на windows.
  • : вызывает сбой в определенной ситуации.

Обновление v37.5

  • : добавлен для AMD GPU’s, может работать быстрее с ETH майнинг таймингами
  • : немного увеличили хешрейт на графических процессорах Nvidia
  • : используйте & для защиты графического процессора от перегрева, подробности в readme.md

Обновление v37.3

feature: добавлена опция —enable-dag-cache чтобы позволить дополнительный DAG для разных epoch кэшируемых в памяти графического процессора, полезно для добычи ETH+ZIL и майнинга на NiceHash.

Обновление v37.2

  • : добавили опции для настройки для майнинг пулов, старый формат отключен и более не работает, можно добавить как часть воркера или кошелька
  • : незначительное улучшение хешрейта на графических процессорах RDNA GPUs
  • : проблема совместимости на последних драйверах.

Обновление v37.1

  • :  высокий коэффициент брака на графических процессорах Nvidia 10 серии
  • :  совместимость пула
  • Рекомендуют майнер  и  для , hashrate будет значительно увеличен с опцией.

NBMiner имеет опцию —mt для оптимизации таймингов памяти графических процессоров Nvidia GDDR5 и GDDR5X.

Обновление v37.0

  • :  для добычи  монет на Nvidia GPUs.
  • :   для Nvidia,  для AMD
  • :  поддержка  нового формата адреса
  • : ‘clBuildProgram error’ проблема на Vega для версий 35.0 – 36.1
  • : отключено AMD iGPU по умолчанию,можно включить обратно настройкой
  • : небольшие баг-фиксы, улучшена общая стабильность