User Tools

Site Tools


mining:nsfminer

Information

TODO

  • :!: This needs to be a systemd background task as this doesn't automatically restart upon any kind of failure

Install

  • 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

Nightwane

ROCm

  • :!: Some distros don't put rocm-smi in PATH, so the path here expects openSUSE

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 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'
#!/bin/sh

sync

# CPU Tuning
sudo cpupower frequency-set --governor 'performance'

# GPU Reset
'/opt/rocm/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'

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 800 (800MHz)
  • 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'
#!/bin/sh

sync

# CPU Tuning
sudo cpupower frequency-set --governor 'schedutil'

# GPU Reset
'/opt/rocm/bin/rocm-smi' --resetfans --resetclocks --setpoweroverdrive '156' --autorespond 'yes'

# GPU Tuning
echo 's 1 800' | 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'

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 3)
  • :!: 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'
#!/usr/bin/bash

sync

# CPU Tuning
sudo cpupower frequency-set --governor 'performance'

# GPU Reset
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
echo 'm 1 1150' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage'
echo 'c' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage'

sync
echo 'Game tune complete!'
sleep '1'

Keyboard Shortcut

  • GNOME
  • F6
gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/Game.sh'

Miner

  • Sets CPU governor to schedutil
  • Resets GPU fan and clock speeds to factory-defaults
  • Sets GPU power limit to device-specific max 156W
  • Limits GPU core clock to 800MHz
  • Overclocks GPU memory clock to 1150MHz
  • Averages 33Mh/s
  • :!: Change x at bottom of script to BTC wallet address
mkdir -p ~/'.local/bin/nsfminer/Nightwane' && nano ~/'.local/bin/nsfminer/Nightwane/Miner.sh' && chmod +x ~/'.local/bin/nsfminer/Nightwane/Miner.sh'
#!/usr/bin/bash

sync

# CPU Tuning
sudo cpupower frequency-set --governor 'schedutil'

# GPU Reset
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
echo 's 1 800' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage'
echo 'm 1 1150' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage'
echo 'c' | sudo tee '/sys/class/drm/card0/device/pp_od_clk_voltage'

sync

# Miner
~/'.local/bin/nsfminer/nsfminer' -P 'stratum2+tcp://x.Nightwane@daggerhashimoto.auto.nicehash.com:9200'

Keyboard Shortcut

  • GNOME
  • F8
gnome-terminal -- sh -c ~/'.local/bin/nsfminer/Nightwane/Miner.sh'
1)
this isn't useful for CUDA as nsfminer is deprecated and does no LHR unlocking
2)
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
3)
eg: no PCI Atomics support or Polaris/Vega
mining/nsfminer.txt · Last modified: 2022/06/23 08:41 by Sean Rhone