GMiner: Настройки, Команды, Параметры Командной Строки

4 мин на чтение

Вы можете использовать этот список в качестве справочника для всех параметров запуска, поддерживаемых GMiner. nbminer

Скачать

Скачать

Параметры командной строки:

miner -a algo -o protocol+socket_type://pool_host:pool_port -u wallet_address.worker:passwd
  • -h, --help Displays this help.
  • -v, --version Displays version information.
  • -c, --config \<config file path> Use json format config file rather than cmd line options.
  • -a, --algo \<algo> Select mining algorithm
  • --api \<host:port> The endpoint for serving REST API.
  • -o, –url <url> Mining pool url.
  • -u, –user <user> User used in Mining pool, wallet address or username.
  • -o1, –url1 <url> url for backup mining pool 1.
  • -u1, –user1 <user> username for backup mining pool 1.
  • -o2, –url2 <url> url for backup mining pool 2.
  • -u2, –user2 <user> username for backup mining pool 2.
  • -p, –password <password> password for mining pool
  • -p1, –password1 <password> password for backup mining pool1
  • -p2, –password2 <password> password for backup mining pool2
  • -di, –secondary-intensity <intensity> The relative intensity when dual mining.
  • -do, –secondary-url <url> ETH mining pool when dual mining.
  • -du, –secondary-user <user> ETH username when dual mining.
  • -do1, –secondary-url1 <url> Backup 1 ETH mining pool when dual mining.
  • -du1, –secondary-user1 <user> Backup 1 ETH username when dual mining.
  • -do2, –secondary-url2 <url> Backup 2 ETH mining pool when dual mining.
  • -du2, –secondary-user2 <user> Backup 2 ETH username when dual mining.
  • -d, –devices <devices> Specify GPU list to use. Format: “-d 0,1,2,3” to use first 4 GPU.
  • -i, –intensity <intensities> Comma-separated list of intensities (1 -100).
  • –strict-ssl Check validity of certificate when use SSL connection.
  • –proxy Socks5 proxy used to eastablish connection with pool, E.g. 127.0.0.1:1080
  • –cuckoo-intensity <intensity> Set intensity of cuckoo, cuckaroo, cuckatoo, [1, 12]. Smaller value means higher CPU usage to gain more hashrate. Set to 0 means autumatically adapt. Default: 0.
  • –cuckatoo-power-optimize Set this option to reduce the range of power consumed by rig when minining with algo cuckatoo. This feature can reduce the chance of power supply shutdown caused by overpowered. Warning: Setting this option may cause drop on minining performance.
  • –temperature-limit, –tl <temp-limit> Set temperature limit of GPU, if exceeds, stop GPU.
  • –temperature-start, –ts <temp-start> Set cool-down temperature target if GPU is stopped by temperature-limit, default to <temp-limit> - 5.
  • –log Generate log file named logs/log_<timestamp>.txt.
  • –log-file <filename> Generate custom log file. Note: This option will override --log.
  • –no-nvml Do not query cuda device health status.
  • –fidelity-timeframe <timeframe> Set timeframe for the calculation of fidelity, unit in hour. Default: 24.
  • –long-format Use ‘yyyy-MM-dd HH:mm:ss,zzz’ for log time format.
  • –verbose Print communication data between miner and pool in log file.
  • –device-info Print device cuda information.
  • –fee <fee> Change devfee in percentage, [0-5]. Set to ‘0’ to turn off devfee with lower hashrate. Otherwise, devfee = max(set_value, def_value).
  • –generate-config <filename> Generate a sample config json file.
  • –no-watchdog Disable watchdog process.
  • –platform <platform> Choose platform,0: NVIDIA+AMD (default), 1: NVIDIA only, 2: AMD only
  • –share-check <value> If <value> minutes without share, reboot miner, set 0 to disable. Default: 30
  • –no-interrupt set this option will disable miner interrupting current GPU jobs when a new job coming from pool, will cause less power supply issue, but might lead to a bit higher stale ratio and reject shares.
  • –enable-igpu AMD igpu is disabled by default, set this option to enable.
  • –mt, –memory-tweak <mode> Memory timings optimize for Nvidia GDDR5 & GDDR5X gpus. range [1-6]. Higher value equals higher hashrate. Individual value can be set via comma seperated list. Power limit may need to be tuned up to get more hashrate. Higher reject share ratio can happen if mining rig hits high temperature, set lower value of -mt can reduce reject ratio. Under windows, a custom driver need to be installed when using -mt, can installed manually by option --driver, or run nbminer.exe with admin privilege to perform auto-install. Under linux, admin priviledge is needed to run, sudo ./nbminer -mt x. OhGodAnETHlargementPill is not needed anymore if -mt is enabled when mining on 1080 & 1080ti GPUs.
  • **–driver <action> Windows only option, install / uninstall driver for memory tweak. Run with admin priviledge. install: nbminer.exe --driver install, uninstall: nbminer.exe --driver uninstall. **

API Reference

Web Monitor

Open http://api_host:port/ in your browser to use web monitor.

Request

GET http://api_host:port/api/v1/status

Response

{
    "miner": {
        "devices": [
            {
                "accepted_shares": 2,
                "accepted_shares2": 0,
                "core_clock": 1620,
                "core_utilization": 100,
                "fan": 47,
                "fidelity1": 5.859799716605649,
                "fidelity2": 0,
                "hashrate": "217.1 M",
                "hashrate2": "36.19 M",
                "hashrate2_raw": 36190716.266428046,
                "hashrate_raw": 217144297.59856823,
                "id": 0,
                "info": "GeForce RTX 2070",
                "mem_clock": 6801,
                "mem_utilization": 86,
                "pci_bus_id": 1,
                "power": 188,
                "rejected_shares": 0,
                "rejected_shares2": 0,
                "temperature": 72
            },
            {
                "accepted_shares": 0,
                "accepted_shares2": 0,
                "core_clock": 1607,
                "core_utilization": 100,
                "fan": 0,
                "fidelity1": 0,
                "fidelity2": 0,
                "hashrate": "168.5 M",
                "hashrate2": "42.11 M",
                "hashrate2_raw": 42113955.19774488,
                "hashrate_raw": 168455820.79097953,
                "id": 1,
                "info": "P102-100",
                "mem_clock": 5508,
                "mem_utilization": 100,
                "pci_bus_id": 4,
                "power": 232,
                "rejected_shares": 0,
                "rejected_shares2": 0,
                "temperature": 57
            }
        ],
        "total_hashrate": "708 M",
        "total_hashrate2": "164.4 M",
        "total_hashrate2_raw": 164395439.13815895,
        "total_hashrate_raw": 708044466.8349969,
        "total_power_consume": 839
    },
    "reboot_times": 0,
    "start_time": 1586944619,
    "stratum": {
        "accepted_shares": 2,
        "accepted_shares2": 0,
        "algorithm": "hns_ethash",
        "difficulty": "8.59 G",
        "difficulty2": "8.59 G",
        "dual_mine": true,
        "latency": 221,
        "latency2": 0,
        "rejected_shares": 0,
        "rejected_shares2": 0,
        "url": "handshake.hk.nicehash.com:3384",
        "url2": "daggerhashimoto.hk.nicehash.com:3353",
        "use_ssl": false,
        "use_ssl2": false,
        "user": "3QHNv52ahdCyeYTGVYDPGjRzMpkknjjfAf.test",
        "user2": "3QHNv52ahdCyeYTGVYDPGjRzMpkknjjfAf.test"
    },
    "version": "30.0"
}