I know this problem. It is the Nvidia GPU clock idle, does not react fast enough when there is activity. I have this same problem, and I was going to report it, until I found this report of the situation.
This issue did not happen before when I was using Pascal GPU.
The workaround is the set the powermizer using modprobe config.
put a config whatever you name it in the /etc/modprobe.d/
then, put this module load option. It will use a higher clock, but not maximum. It will still use adaptive, just the min clock and memory transfer rate is now higher.
options nvidia NVreg_RegistryDwords=“PerfLevelSrc=0x2222”
reboot or reload the driver.
Check in the powermizer, when idle to the lowest clock, activate the Gnome overview, there is no more lag.
This works, but considerably increases my idle power consumption.
An alternative solution I found is using nvidia-smi to set the minimum clock to be 1 above the idle range. This prevents the driver from ever going idle, with minimal difference in power.
I found, not only the GPU clock is low, the Memory clock is also too low in idle
When you set a lower supported memory clock, the desktop is just as bad, even when the GPU clock is higher than idle.
I don’t know why Nvidia made available such low memory clocks and GPU clocks that are not usable with lowest activities such as scroll a web page by one line. Mine is 210Mhz GPU and 810Mhz memory. It does not save more power, because the clock is going to go up anyway even when scroll one line.
I have to set to 405Mhz GPU and 5001Mhz Memory minimum performance state.
Thanks, I will try to increase it in Linux.
Yeah Windows got nvidia-smi
Update:
Doing this makes the GPU watt usage go up quite a bit.
I tried @morkysherk suggestion, I put the Graphics clock one step above the lowest. Not entierly sure but it feels “smoother” now…
Btw, the correct syntax for setting memory clocks are: nvidia-smi -lmc <min>,<max>
Yes that is what stated above, -lmc is to set min, max memory clocks
I set memory clock only now, it will use the next up power level, without setting the min graphic clocks manually, the temperature goes down. This is still smooth.