Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision |
mining:nsfminer [2022/05/14 01:08] – Sean Rhone | mining:nsfminer [2022/06/28 17:55] – Fix paths, increase core for 4K and GW1 Sean Rhone |
---|
| |
* https://github.com/no-fee-ethereum-mining/nsfminer | * https://github.com/no-fee-ethereum-mining/nsfminer |
| * :!: OpenCL ((this isn't useful for CUDA as ''nsfminer'' is deprecated and does no LHR unlocking)) ((for AMD as of 2022/05/14, ''nsfminer'' requires either ROCm or AMDGPU-PRO OpenCL 2.0+ libraries and isn't compatible with Clover 1.0 libraries)) |
| |
====== Install ====== | ====== TODO ====== |
| |
===== OpenCL ===== | * :!: This needs to be a systemd background task as this doesn't automatically restart upon any kind of failure |
| |
| ====== Install ====== |
| |
* :!: There is a CUDA version, but it doesn't have a LHR unlock | * The ''tar'' flags here are the full-names for the popular ''xzvf'' flags |
| |
cd ~ && rm -fv '/tmp/nsfminer-opencl.tgz' '/tmp/nsfminer' ~/'.local/bin/nsfminer/nsfminer' && cd '/tmp' && wget -O '/tmp/nsfminer-opencl.tgz' 'https://github.com/no-fee-ethereum-mining/nsfminer/releases/download/v1.3.14/nsfminer_1.3.14-ubuntu_20.04-opencl.tgz' && tar --extract --gzip --verbose --file '/tmp/nsfminer-opencl.tgz' && mkdir -p ~/'.local/bin/nsfminer' && mv '/tmp/nsfminer' ~/'.local/bin/nsfminer' && chmod +x ~/'.local/bin/nsfminer' && rm -fv '/tmp/nsfminer-opencl.tgz' && cd ~ && sync | cd ~ && rm -fv '/tmp/nsfminer-opencl.tgz' '/tmp/nsfminer' ~/'.local/bin/nsfminer/nsfminer' && cd '/tmp' && wget -O '/tmp/nsfminer-opencl.tgz' 'https://github.com/no-fee-ethereum-mining/nsfminer/releases/download/v1.3.14/nsfminer_1.3.14-ubuntu_20.04-opencl.tgz' && tar --extract --gzip --verbose --file '/tmp/nsfminer-opencl.tgz' && mkdir -p ~/'.local/bin/nsfminer' && mv '/tmp/nsfminer' ~/'.local/bin/nsfminer' && chmod +x ~/'.local/bin/nsfminer' && rm -fv '/tmp/nsfminer-opencl.tgz' && cd ~ && sync |
| |
===== ROCm ===== | ===== ROCm ===== |
| |
| * :!: openSUSE has ''rocm-smi'' at ''/opt/rocm/bin/rocm-smi'' |
| |
==== Game ==== | ==== Game ==== |
* Resets GPU fan and clock speeds to factory-defaults | * Resets GPU fan and clock speeds to factory-defaults |
* Sets GPU power limit to device-specific max 156W | * Sets GPU power limit to device-specific max 156W |
* Overclocks GPU memory clock to 1150MHz | * Overclocks GPU core clock to 2723 (2723MHz) |
| * Overclocks GPU memory clock to 1100 (2200MHz) |
| * :!: Useful to run before gaming in order to reset the core underclock |
| |
mkdir -p ~/'.local/bin/nsfminer/Nightwane/ROCm' && nano ~/'.local/bin/nsfminer/Nightwane/ROCm/Game.sh' && chmod +x ~/'.local/bin/nsfminer/Nightwane/ROCm/Game.sh' | mkdir -p ~/'.local/bin/nsfminer/Nightwane/ROCm' && nano ~/'.local/bin/nsfminer/Nightwane/ROCm/Game.sh' && chmod +x ~/'.local/bin/nsfminer/Nightwane/ROCm/Game.sh' |
| |
| <code> |
| #!/bin/sh |
| |
| sync |
| |
| # CPU Tuning |
| sudo cpupower frequency-set --governor 'performance' |
| |
| # GPU Reset |
| '/usr/bin/rocm-smi' --resetfans --resetclocks --setpoweroverdrive '156' --autorespond 'yes' |
| |
| # GPU Tuning |
| echo 's 1 2723' | sudo tee '/sys/class/drm/card'*'/device/pp_od_clk_voltage' |
| echo 'm 1 1100' | sudo tee '/sys/class/drm/card'*'/device/pp_od_clk_voltage' |
| echo 'c' | sudo tee '/sys/class/drm/card'*'/device/pp_od_clk_voltage' |
| |
| sync |
| echo 'Game tune complete!' |
| sleep '5'</code> |
| |
| === Keyboard Shortcut === |
| |
| * GNOME |
| * F6 |
| |
| gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/ROCm/Game.sh' |
| |
| ==== Miner ==== |
| |
| * Sets CPU governor to ''schedutil'' (dynamic) |
| * Resets GPU fan and clock speeds to factory-defaults |
| * Sets GPU power limit to device-specific max 156W |
| * Underclocks GPU core clock to 1100 (1100MHz) |
| * Overclocks GPU memory clock to 1100 (2200MHz) |
| |
| * Averages 31Mh/s |
| * :!: Change ''x'' at bottom of script to BTC wallet address |
| |
| mkdir -p ~/'.local/bin/nsfminer/Nightwane/ROCm' && nano ~/'.local/bin/nsfminer/Nightwane/ROCm/Miner.sh' && chmod +x ~/'.local/bin/nsfminer/Nightwane/ROCm/Miner.sh' |
| |
| <code> |
| #!/bin/sh |
| |
| sync |
| |
| # CPU Tuning |
| sudo cpupower frequency-set --governor 'schedutil' |
| |
| # GPU Reset |
| '/usr/bin/rocm-smi' --resetfans --resetclocks --setpoweroverdrive '156' --autorespond 'yes' |
| |
| # GPU Tuning |
| echo 's 1 1100' | sudo tee '/sys/class/drm/card'*'/device/pp_od_clk_voltage' |
| echo 'm 1 1100' | sudo tee '/sys/class/drm/card'*'/device/pp_od_clk_voltage' |
| echo 'c' | sudo tee '/sys/class/drm/card'*'/device/pp_od_clk_voltage' |
| |
| sync |
| |
| # Miner |
| ~/'.local/bin/nsfminer/nsfminer' -P 'stratum2+tcp://x.Nightwane@daggerhashimoto.auto.nicehash.com:9200'</code> |
| |
| === Keyboard Shortcut === |
| |
| * GNOME |
| * F8 |
| |
| gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/ROCm/Miner.sh' |
| |
| ====== SELinux ====== |
| |
| **** |
| |
| sudo restorecon -F -I -R ~/'.local/bin/nsfminer' && sync |
| |
| ===== AMDGPU-PRO ===== |
| |
| * :!: Use instructions above unless ROCm is unsupported ((eg: no PCI Atomics support or Polaris/Vega)) |
| * :!: This is usable as-is for ROCm installs too |
| |
| ==== Game ==== |
| |
| * Sets CPU governor to ''performance'' |
| * Resets GPU fan and clock speeds to factory-defaults |
| * Sets GPU power limit to device-specific max 156W |
| * Overclocks GPU memory clock to 1150MHz |
| * :!: Useful to run before gaming in order to reset the core underclock |
| |
| mkdir -p ~/'.local/bin/nsfminer/Nightwane' && nano ~/'.local/bin/nsfminer/Nightwane/Game.sh' && chmod +x ~/'.local/bin/nsfminer/Nightwane/Game.sh' |
| |
<code> | <code> |
| |
# GPU Reset | # GPU Reset |
'/opt/rocm/bin/rocm-smi' --resetfans --resetclocks --setpoweroverdrive '156' --autorespond 'yes' | echo '2' | sudo tee '/sys/class/drm/card0/device/hwmon/hwmon1/pwm1_enable' |
| echo 'r' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage' |
| echo '156000000' | sudo tee '/sys/class/drm/card0/device/hwmon/hwmon1/power1_cap' |
| |
# GPU Tuning | # GPU Tuning |
* F6 | * F6 |
| |
gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/ROCm/Game.sh' | gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/Game.sh' |
| |
==== Miner ==== | ==== Miner ==== |
* Overclocks GPU memory clock to 1150MHz | * Overclocks GPU memory clock to 1150MHz |
* Averages 33Mh/s | * Averages 33Mh/s |
| * :!: Change ''x'' at bottom of script to BTC wallet address |
| |
mkdir -p ~/'.local/bin/nsfminer/Nightwane/ROCm' && nano ~/'.local/bin/nsfminer/Nightwane/ROCm/Miner.sh' && chmod +x ~/'.local/bin/nsfminer/Nightwane/ROCm/Miner.sh' | mkdir -p ~/'.local/bin/nsfminer/Nightwane' && nano ~/'.local/bin/nsfminer/Nightwane/Miner.sh' && chmod +x ~/'.local/bin/nsfminer/Nightwane/Miner.sh' |
| |
<code> | <code> |
| |
# GPU Reset | # GPU Reset |
'/opt/rocm/bin/rocm-smi' --resetfans --resetclocks --setpoweroverdrive '156' --autorespond 'yes' | echo '2' | sudo tee '/sys/class/drm/card0/device/hwmon/hwmon1/pwm1_enable' |
| echo 'r' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage' |
| echo '156000000' | sudo tee '/sys/class/drm/card0/device/hwmon/hwmon1/power1_cap' |
| |
# GPU Tuning | # GPU Tuning |
| |
# Miner | # Miner |
~/'.local/bin/nsfminer/nsfminer' -P 'stratum2+tcp://x.Nightwane@daggerhashimoto.usa.nicehash.com:3353'</code> | ~/'.local/bin/nsfminer/nsfminer' -P 'stratum2+tcp://x.Nightwane@daggerhashimoto.auto.nicehash.com:9200'</code> |
| |
=== Keyboard Shortcut === | === Keyboard Shortcut === |
* F8 | * F8 |
| |
gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/ROCm/Miner.sh' | gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/Miner.sh' |
| |