Last active
January 31, 2023 08:34
-
-
Save tunggad/ccac8ddcb2395e485f94484accf511e1 to your computer and use it in GitHub Desktop.
bash script to overclock nvidia GPU automatically under Linux. Optimized for HEADless DUAL mining ETH + SIA. Model: Zotac GTX 1070 ti mini. Stable Hashrate: ETH 31,5 mh/s, SIA 315 mh/s, reported by claymore 10.2. Specs: power limit: 120watt, target fan lvl: 65%, GPU clock: +0, mem clock: +650mhz, performance lvl: P2, temp: 61C@65%FAN. OS: arch l…
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# A script for overclocking Nvidia graphics card under Linux for HEADLESS ETH mining. Model: ZOTAC gtx 1070 ti mini | |
nvidia-smi -pm 1 | |
export GPU_FORCE_64BIT_PTR=0 | |
export GPU_MAX_HEAP_SIZE=100 | |
export GPU_USE_SYNC_OBJECTS=1 | |
export GPU_MAX_ALLOC_PERCENT=100 | |
export GPU_SINGLE_ALLOC_PERCENT=100 | |
export DISPLAY=:0 | |
# set power limit to 120 watt to save energy | |
nvidia-smi -i 0 -pl 120 | |
# power persistence mode is ON so your power limit setting can persist even no UI app is running | |
nvidia-settings -a [gpu:0]/GpuPowerMizerMode=1 | |
# fan target level reduced to 65% | |
nvidia-settings -a [gpu:0]/GPUFanControlState=1 | |
nvidia-settings -a [fan:0]/GPUTargetFanSpeed=65 | |
# increase mem clock +650mhz (2x650=1300) in performance levels 2 (P2) and 3 (P3) | |
nvidia-settings -a [gpu:0]/GPUMemoryTransferRateOffset[3]=1300 | |
nvidia-settings -a [gpu:0]/GPUMemoryTransferRateOffset[2]=1300 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment