How to set gpu clock using nvidia-smi?

Hi, I have a desktop with 4 2070 attached. I want to use "nvidia-smi -lgc " command to set fixed clock for all of them.

However, it seems the command does not work. I run “sudo nvidia-smi -lgc 2100” and the result of “nvidia-smi -q -d CLOCK” before and after are the same:

==============NVSMI LOG==============

Timestamp : Tue Mar 17 22:20:12 2020
Driver Version : 440.33.01
CUDA Version : 10.2

Attached GPUs : 4
GPU 00000000:18:00.0
Clocks
Graphics : 300 MHz
SM : 300 MHz
Memory : 810 MHz
Video : 540 MHz
Applications Clocks
Graphics : N/A
Memory : N/A
Default Applications Clocks
Graphics : N/A
Memory : N/A
Max Clocks
Graphics : 2100 MHz
SM : 2100 MHz
Memory : 7001 MHz
Video : 1950 MHz
Max Customer Boost Clocks
Graphics : N/A
SM Clock Samples
Duration : Not Found
Number of Samples : Not Found
Max : Not Found
Min : Not Found
Avg : Not Found
Memory Clock Samples
Duration : Not Found
Number of Samples : Not Found
Max : Not Found
Min : Not Found
Avg : Not Found
Clock Policy
Auto Boost : N/A
Auto Boost Default : N/A

GPU 00000000:3B:00.0
Clocks
Graphics : 300 MHz
SM : 300 MHz
Memory : 810 MHz
Video : 540 MHz
Applications Clocks
Graphics : N/A
Memory : N/A
Default Applications Clocks
Graphics : N/A
Memory : N/A
Max Clocks
Graphics : 2100 MHz
SM : 2100 MHz
Memory : 7001 MHz
Video : 1950 MHz
Max Customer Boost Clocks
Graphics : N/A
SM Clock Samples
Duration : Not Found
Number of Samples : Not Found
Max : Not Found
Min : Not Found
Avg : Not Found
Memory Clock Samples
Duration : Not Found
Number of Samples : Not Found
Max : Not Found
Min : Not Found
Avg : Not Found
Clock Policy
Auto Boost : N/A
Auto Boost Default : N/A

GPU 00000000:86:00.0
Clocks
Graphics : 300 MHz
SM : 300 MHz
Memory : 810 MHz
Video : 540 MHz
Applications Clocks
Graphics : N/A
Memory : N/A
Default Applications Clocks
Graphics : N/A
Memory : N/A
Max Clocks
Graphics : 2100 MHz
SM : 2100 MHz
Memory : 7001 MHz
Video : 1950 MHz
Max Customer Boost Clocks
Graphics : N/A
SM Clock Samples
Duration : Not Found
Number of Samples : Not Found
Max : Not Found
Min : Not Found
Avg : Not Found
Memory Clock Samples
Duration : Not Found
Number of Samples : Not Found
Max : Not Found
Min : Not Found
Avg : Not Found
Clock Policy
Auto Boost : N/A
Auto Boost Default : N/A

GPU 00000000:AF:00.0
Clocks
Graphics : 300 MHz
SM : 300 MHz
Memory : 810 MHz
Video : 540 MHz
Applications Clocks
Graphics : N/A
Memory : N/A
Default Applications Clocks
Graphics : N/A
Memory : N/A
Max Clocks
Graphics : 2100 MHz
SM : 2100 MHz
Memory : 7001 MHz
Video : 1950 MHz
Max Customer Boost Clocks
Graphics : N/A
SM Clock Samples
Duration : Not Found
Number of Samples : Not Found
Max : Not Found
Min : Not Found
Avg : Not Found
Memory Clock Samples
Duration : Not Found
Number of Samples : Not Found
Max : Not Found
Min : Not Found
Avg : Not Found
Clock Policy
Auto Boost : N/A
Auto Boost Default : N/A

May I know if I’m missing anything?

Try to set “persistent-mode” (nvidia-smi -pm 1) before changing clocks.

Came across this post while looking for a similar solution.

Looks like Nvidia bricked/removed support for non commercial cards in nvidia-smi for controlling settings.

apparently if you have an xserver running, you can use nvidia-settings to control this, but I’ve yet to try it.