Skip to content

Instantly share code, notes, and snippets.

@shaozi
Forked from bsodmike/README.md
Created October 2, 2017 02:33
Show Gist options
  • Select an option

  • Save shaozi/003aa5604a538227a2dbdceaf7f5ff24 to your computer and use it in GitHub Desktop.

Select an option

Save shaozi/003aa5604a538227a2dbdceaf7f5ff24 to your computer and use it in GitHub Desktop.

Revisions

  1. @bsodmike bsodmike revised this gist Jul 14, 2017. 1 changed file with 10 additions and 0 deletions.
    10 changes: 10 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -50,6 +50,16 @@ nvidia-settings -c :0 -a '[gpu:0]/GPUGraphicsClockOffset[3]=100'
    nvidia-settings -c :0 -a '[gpu:1]/GPUGraphicsClockOffset[3]=100'
    ```

    To check if these have applied, your X11 server needs to be running and you'll get a confirmation

    ```
    ~⟫ nvidia-settings -c :0 -a '[gpu:0]/GPUMemoryTransferRateOffset[3]=1400'
    Failed to connect to Mir: Failed to connect to server socket: No such file or directory
    Unable to init server: Could not connect: Connection refused
    Attribute 'GPUMemoryTransferRateOffset' (skylake:0[gpu:0]) assigned value 1400.
    ```

    Check the final config,

    ```
  2. @bsodmike bsodmike revised this gist Jun 21, 2017. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    Following mining and findings performed on [EVGA GeForce GTX 1070 SC GAMING Black Edition Graphics Card](https://www.bhphotovideo.com/c/product/1282023-REG/evga_08g_p4_5173_kr_geforce_gtx_1070_8gb.html) cards.

    First run `nvidia-xconfig --enable-all-gpus` then set about editing the `xorg.conf` file to correctly set the `Coolbits` option.

    ```
  3. @bsodmike bsodmike revised this gist Jun 20, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -79,4 +79,5 @@ Sat Jun 17 03:31:57 2017

    ### References:

    * http://www.ckode.dk/linux/overclocking-nvidia-graphics-card-on-linux/
    * http://www.ckode.dk/linux/overclocking-nvidia-graphics-card-on-linux/
    * https://devtalk.nvidia.com/default/topic/980313/force-gtx1080-performance-level-to-reduce-power-consumption-under-linux/
  4. @bsodmike bsodmike revised this gist Jun 20, 2017. 2 changed files with 15 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    First run `nvidia-xconfig --enable-all-gpus` then set about editing the `xorg.conf` file to correctly set the `Coolbits` option — we only need overclocking and fan-control, hence `12` set as the config.
    First run `nvidia-xconfig --enable-all-gpus` then set about editing the `xorg.conf` file to correctly set the `Coolbits` option.

    ```
    # /etc/X11/xorg.conf
    @@ -8,7 +8,7 @@ Section "Device"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce GTX 1070"
    BusID "PCI:1:0:0"
    Option "Coolbits" "12"
    Option "Coolbits" "28"
    EndSection
    Section "Device"
    @@ -17,7 +17,7 @@ Section "Device"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce GTX 1070"
    BusID "PCI:2:0:0"
    Option "Coolbits" "12"
    Option "Coolbits" "28"
    EndSection
    ```

    12 changes: 12 additions & 0 deletions reduce-power-limit.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    #!/bin/bash

    echo "Run as sudo to lower power-limits."
    echo ""

    nvidia-smi -i 0 -pl 100
    nvidia-smi -i 1 -pl 100

    echo ""
    echo ""

    nvidia-smi
  5. @bsodmike bsodmike revised this gist Jun 17, 2017. 1 changed file with 5 additions and 3 deletions.
    8 changes: 5 additions & 3 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,3 @@


    First run `nvidia-xconfig --enable-all-gpus` then set about editing the `xorg.conf` file to correctly set the `Coolbits` option — we only need overclocking and fan-control, hence `12` set as the config.

    ```
    @@ -77,4 +75,8 @@ Sat Jun 17 03:31:57 2017
    | 0 4956 C ./ethdcrminer64 2195MiB |
    | 1 4956 C ./ethdcrminer64 2195MiB |
    +-----------------------------------------------------------------------------+
    ```
    ```

    ### References:

    * http://www.ckode.dk/linux/overclocking-nvidia-graphics-card-on-linux/
  6. @bsodmike bsodmike revised this gist Jun 17, 2017. 1 changed file with 6 additions and 2 deletions.
    8 changes: 6 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -42,8 +42,12 @@ skylake:~# nvidia-settings -c :0 -q gpus
    GPU-1
    GPU-16e218e7-xxxx
    nvidia-settings -c :0 -a '[gpu:0]/GPUMemoryTransferRateOffset[3]=1200'
    nvidia-settings -c :0 -a '[gpu:1]/GPUMemoryTransferRateOffset[3]=1200'
    # Apply +1300 Mhz Mem clock offset, and +100 Mhz on GPU clock
    # Found these were the most stable on my Dual EVGA SC Black 1070s.
    nvidia-settings -c :0 -a '[gpu:0]/GPUMemoryTransferRateOffset[3]=1300'
    nvidia-settings -c :0 -a '[gpu:1]/GPUMemoryTransferRateOffset[3]=1300'
    nvidia-settings -c :0 -a '[gpu:0]/GPUGraphicsClockOffset[3]=100'
    nvidia-settings -c :0 -a '[gpu:1]/GPUGraphicsClockOffset[3]=100'
    ```

    Check the final config,
  7. @bsodmike bsodmike revised this gist Jun 16, 2017. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@


    First run `nvidia-xconfig --enable-all-gpus`
    First run `nvidia-xconfig --enable-all-gpus` then set about editing the `xorg.conf` file to correctly set the `Coolbits` option — we only need overclocking and fan-control, hence `12` set as the config.

    ```
    # /etc/X11/xorg.conf
  8. @bsodmike bsodmike created this gist Jun 16, 2017.
    76 changes: 76 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,76 @@


    First run `nvidia-xconfig --enable-all-gpus`

    ```
    # /etc/X11/xorg.conf
    Section "Device"
    Identifier "Device0"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce GTX 1070"
    BusID "PCI:1:0:0"
    Option "Coolbits" "12"
    EndSection
    Section "Device"
    Identifier "Device1"
    Driver "nvidia"
    VendorName "NVIDIA Corporation"
    BoardName "GeForce GTX 1070"
    BusID "PCI:2:0:0"
    Option "Coolbits" "12"
    EndSection
    ```

    Let's now apply a very light OC to the cards,

    ```
    skylake:~# nvidia-settings -c :0 -q gpus
    2 GPUs on skylake:0
    [0] skylake:0[gpu:0] (GeForce GTX 1070)
    Has the following names:
    GPU-0
    GPU-08ba492c-xxxx
    [1] skylake:0[gpu:1] (GeForce GTX 1070)
    Has the following names:
    GPU-1
    GPU-16e218e7-xxxx
    nvidia-settings -c :0 -a '[gpu:0]/GPUMemoryTransferRateOffset[3]=1200'
    nvidia-settings -c :0 -a '[gpu:1]/GPUMemoryTransferRateOffset[3]=1200'
    ```

    Check the final config,

    ```
    skylake:~# nvidia-smi
    Sat Jun 17 03:31:57 2017
    +-----------------------------------------------------------------------------+
    | NVIDIA-SMI 375.66 Driver Version: 375.66 |
    |-------------------------------+----------------------+----------------------+
    | GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
    | Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
    |===============================+======================+======================|
    | 0 GeForce GTX 1070 Off | 0000:01:00.0 On | N/A |
    | 60% 75C P2 146W / 151W | 2553MiB / 8112MiB | 99% Default |
    +-------------------------------+----------------------+----------------------+
    | 1 GeForce GTX 1070 Off | 0000:02:00.0 Off | N/A |
    | 38% 66C P2 149W / 151W | 2198MiB / 8114MiB | 99% Default |
    +-------------------------------+----------------------+----------------------+
    +-----------------------------------------------------------------------------+
    | Processes: GPU Memory |
    | GPU PID Type Process name Usage |
    |=============================================================================|
    | 0 1267 G /usr/lib/xorg/Xorg 184MiB |
    | 0 3457 G compiz 170MiB |
    | 0 4956 C ./ethdcrminer64 2195MiB |
    | 1 4956 C ./ethdcrminer64 2195MiB |
    +-----------------------------------------------------------------------------+
    ```