When suspending/resuming the PC my graphics performance suffers until I reboot.
AMD Ryzen 5 2600, 32GB RAM, GF 1650 Super 4Gb, Nvidia-drivers-450.66.
Openbox, latest Picom with xrender (behavior with glx is the same).
Fresh boot:
__GL_SYNC_TO_VBLANK=0 glxgears
23730 frames in 5.0 seconds = 4745.902 FPS
25921 frames in 5.0 seconds = 5184.086 FPS
Some times after first suspend and resume the same good performance (not always). But frequently after second suspend and resume:
> __GL_SYNC_TO_VBLANK=0 glxgears
6865 frames in 5.0 seconds = 1372.803 FPS
8057 frames in 5.0 seconds = 1611.175 FPS
7749 frames in 5.0 seconds = 1549.660 FPS
Rebooting the driver helped fix performance, but this is not a normal solution:
# rc-service xdm stop
# rmmod nvidia_modeset
# rmmod nvidia_drm
# rmmod nvidia
# modprobe nvidia
# modprobe nvidia_drm
# modprobe nvidia_modeset
# rc-service xdm start
nvidia-drm module is configured to load at startup:
File: /etc/modules-load.d/nvidia-drm.conf
nvidia-drm
nvidia-drm has modesetting enabled:
File: /etc/modprobe.d/nvidia-drm.conf
options nvidia-drm modeset=1
Starting or disabling acpid service did not help.
Visually, the problem is visible in microfreezes when scrolling in browsers - Firefox, Chrome.
nvidia-bug-report after resume:
nvidia-bug-report.log.gz (214.9 KB)
CPU Benchmark show equally performance before and after suspend:
$ sysbench cpu --threads=12 run
CPU speed:
events per second: 11530.09