NVIDIA GeForce GTX 1070 / 1080 Ti 無螢幕超頻測試

在超頻前先用下列指令檢查是否能超頻,雖然沒意義但是還是看一下狀態

# nvidia-smi -q -d SUPPORTED_CLOCKS

因為平常沒有接顯示器所以設定起來有點麻煩

直接用 nvidia-settings -q all 會無法設定,所以要加工一下

# nvidia-settings -q all

ERROR: The control display is undefined; please run `nvidia-settings –help` for usage information.

先進入 init 3

要用下列指令,讓nvidia-settings 允許沒螢幕

# nvidia-xconfig – -enable-all-gpus – -allow-empty-initial-configuration
Option “AllowEmptyInitialConfiguration” “True” added to Screen “Screen0”.
Backed up file ‘/etc/X11/xorg.conf’ as ‘/etc/X11/xorg.conf.backup’
New X configuration file written to ‘/etc/X11/xorg.conf’

在 Ubuntu 16.04 要改下列檔案

vi /etc/X11/xorg.conf

Section “Device”
Identifier “Device0”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce GTX 1070 Ti”
Option “Coolbits” “28”
EndSection

Section “Device”
Identifier “Device1”
Driver “nvidia”
VendorName “NVIDIA Corporation”
BoardName “GeForce GTX 1080 Ti”
Option “Coolbits” “12”
EndSection

然後 init 5

用下列指令查詢卡片狀況

# DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -c :0 -q gpus

1 GPU on liho:0

[0] liho:0[gpu:0] (Graphics Device)

Has the following names:
GPU-0
GPU-fcf2700a-7ff6-xxxx-xxxx-xxxxxxxxxxxx

[1] liho:0[gpu:1] (GeForce GTX 1080 Ti)

Has the following names:
GPU-1
GPU-bc29fcf7-9ab4-xxxx-xxxx-xxxxxxxxxxxx

然後查詢目前頻率設定

# DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -q [gpu:0]/GPUCurrentClockFreqsString

Attribute ‘GPUCurrentClockFreqsString’ (liho:0[gpu:0]): nvclock=1822, nvclockmin=139, nvclockmax=1911, nvclockeditable=1, memclock=3802,
memclockmin=3802, memclockmax=3802, memclockeditable=1, memTransferRate=7604, memTransferRatemin=7604, memTransferRatemax=7604,
memTransferRateeditable=1

加快圖形運算速度及加速記憶體傳輸速度

# DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -c :0 -a ‘[gpu:0]/GPUGraphicsClockOffset[3]=100’
# DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -c :0 -a ‘[gpu:1]/GPUGraphicsClockOffset[3]=100’
# DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -c :0 -a ‘[gpu:0]/GPUMemoryTransferRateOffset[3]=500’
# DISPLAY=:0 XAUTHORITY=/var/run/lightdm/root/:0 nvidia-settings -c :0 -a ‘[gpu:1]/GPUMemoryTransferRateOffset[3]=500’