-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[MAJOR] KDE Plasma Wayland & X11 poor performance & frame drops when opening apps #538
Comments
Just wanted to make slight update, this also occurs on X11 as well |
With the news of driver 560 defaulting to the open kernel modules, I decided to give this a second try and this issue is still present on both X11 and wayland. Operating System: EndeavourOS |
Just to update for people that would come here: EDIT: The solution was to add NVreg_EnableGpuFirmware=0 to the kernel load and all issues were fixed! |
This won't work with the open modules, only the closed ones, since the open modules require gsp. Right? |
I believe so that would be the case, this seems to only work on proprietary. |
It would be worth retesting this case with the new 555.42.02 driver: We made several improvements to graphics performance that will help both the proprietary kernel modules with NVreg_EnableGpuFirmware=1, and the open kernel modules. |
Tracked internally as bug 4662986. |
Hi @kodatarule , can I trouble you for two experiments? With the 555.42 driver - Proprietary*, but without (1) Disabling MangoHUD and any other background profiling apps you might have and see if it gets any better. This is so we can get the bug report snapshot soon after a bad state and we know where to look at it, timescale-wise. Thanks in advance! * Open is also fine, but then please run with |
Hi, I did try with proprietary beta 555.42 with the GPU firmware enabled and have generated a log. |
To help better isolate this, looking more carefully at your xorg.conf:
Do you see the same performance problems: |
Hello, |
Update: We've found two possible causes of stutter. Or rather, we found two issues that definitely cause stutter on some configurations, but we still don't have a good idea of how widespread either of them is. I have published patches that eliminate one and log the other here: #658 I'd love it if folks that are experiencing these issues would give it a try and report back. Getting a good idea of the impact would help us prioritize getting these in. Many thanks in advance! |
@mtijanic |
Actually, sometimes when doing a screenshot with spectacle, im seeing some little fps drops on the patched nvidia-open-dkms module. |
What would be the proper process of building and installing this patchset? I'm facing these issues on the open-beta-dkms and I'd like to help troubleshoot with my logs |
First, make sure you have regular 555.52.04 driver installed in whatever way you do it normally (distro package,
Then, build it:
If successful, it will produce a file
Easiest would be to just backup the original file, and replace it with the newly built one:
Or use symlinks. You'll need to reload the driver for the change to take effect. A system reboot would do it, but also killing X / your DE and then rmmod would work too. For example:
To revert, just restore the original backed up file. |
@Virkkunen @mtijanic |
Using @ptr1337 PKGBUILD (on endeavour) I was able to install this patch. So far it seems that the stutter while opening, closing and minimising apps, and screen recording (with spectacle) is gone. However, when moving the cursor I can notice some stutters. Moving quickly in a circle it becomes more apparent, with visible gaps in the circle, like it's skipping some positions. I tried to record a slow motion video of this but it's quite a finnicky thing to visualise in a recording. 20240611_193302.mp4 |
Ok built the open modules with the patches and so far it seems the stutter issues have been fixed! edit: OK theres still very minor input related (mouse) stutter now like few periodic frametime spikes..which doesn't happen with closed modules and gsp disabled. overall seems to be huge improvement, but not yet ideal. |
After testing out the open modules with the patches, the situation has improved somewhat, but the hitches when opening apps or moving the cursor are still present. |
@mtijanic I have just updated to the stable 555.58 driver (closed one), enabled the GSP Firmware but these stutters are still present. Ive noticed, the PR from you got merged. https://github.com/NVIDIA/open-gpu-kernel-modules/assets/70081076/7e33f71c-4b6c-4def-b020-85644d96646b |
Follow-up on this:
In 555.58.02 (but not 555.58 from last week) we fixed the bigger of the two causes. Particularly those using kwin should give this a try and report back. 555.58.02 does not include 674c009 which fixes a different, less frequent cause. You can still apply this commit manually if using the Open modules, and it will be included in 560.xx. Please test and report back! ❤️ |
@mtijanic Desktop generally runs fine, the only problem, which im still seeing (with 674c009 and also without) that spectacle is sometimes "laggy" and just jumps, like you see above. I made you a fresh video and nvidia-bugreport.sh, see below. nvidia.mp4Edit: I will test further with the closed source driver + GSP enabled. |
Please! Closed source and GSP ON vs OFF will give us the best info to triage further. Thanks a ton, for all the reports you've sent in so far! We might not get a chance to meaningfully reply to them all, but we do really appreciate it. |
Retsted with the closed source driver with GSP on and off. Here are comparison: GSP ON: nvidia.mp4GSP Off: nvidia-gsp-off.mp4Edit: |
With 555.58.02 it has definitely improved a lot, however I still notice a few hiccups here and there. |
I just tested with 555.58.02 with GSP off and on and I am still seeing weird judders and hitches simply dragging KDE's Dolphin file manager around on the desktop whenever GSP is enabled. When it is off, the window motion is very smooth. The issue seems to come and go. With GSP, the first few window moves will be smooth, but continuously moving the window around will cause hitching. Without GSP, it is smooth the entire time. |
Where exactly do I add |
Add |
@omnigenous In addition to what MishaProductions said, make sure to prepend the module name to that option, so like |
after I installed Nvidia on arch, KDE was super laggy and choppy. when I applied nvidia.NVreg_EnableGpuFirmware=0 to my kernel parameters via grub, it fixed it now it is smooth. I use RTX 2080ti |
560 beta out claims to improve this, still bad on my 3090 though |
Oh, so this is where my problem was? 560 beta, 3060ti, Linux 6.9, Plasma 6.1.3 on Arch. |
Hey @SeongGino can you check if you have I believe they've fixed this and switched to NVML, but there's still no release that picked up that patch. See https://gitlab.com/coolercontrol/coolercontrol/-/issues/288 In the meantime, we'll look into ways to make this shutdown less impactful so we don't depend on patching all third party tools. |
Nvidia 560 with GSP on seems to have lessened the frame drops but it is still not on par with GSP off. If I drag a window around (say KDE Dolphin) for an extended period of time, like greater than 5 seconds, it will start stuttering again. It is much less pronounced than before, but still not the perfectly smooth action that you get with GSP off. |
I've never heard of or used this coolercontrol in my life. But, I do have Plasma System Monitor applets running, one of them set to track GPU Usage stats. Enabling the GSP and removing the GPU monitor widget did seem to resolve the stutter for me in the Wayland session. As far as I can tell, anyways--dragging a window around like Dolphin doesn't seem to be exhibiting the same hitching. |
Thanks @SeongGino! Do you know what exact applet this is? Please keep in mind I'm not at all familiar with KDE and its family of tools, so dumb it down for me :) I found this https://github.com/lestofante/ksysguard-gpu which already has a an issue open for this. |
@mtijanic It's not an external component like what you've linked; it looks like it's part of the stock Plasma desktop widgets--or if it is extra, it most likely comes with KSysGuard. |
Thanks! If I'm reading it correctly, the relevant code is at https://invent.kde.org/plasma/libksysguard/-/blob/master/processcore/plugins/nvidia/nvidia.cpp?ref_type=heads and it indeed spawns an |
I see! Well, I posted an issue on KDE's bugtracker linking back to this issue, so hopefully there will be some response. |
560 reduces the stutter, but it is nowhere near Proprietary + GSP Off. If I scroll in Firefox after the desktop sits idle for some time, it'll lag for seconds. |
Also, GNOME suffers from this issue a lot, especially when opening the Overview. It stutters almost every time even if triple buffering is enabled. |
If I put something demanding running on the GPU, the performance level jumps to P0 and GNOME is smooth again. Maybe pinning the perf level can bypass this. |
looks like you got your response, @mtijanic:
— Arjen Hiemstra 2024-08-06 11:03:41 UTC |
NVIDIA bug 4804613 filed to track stutter with ksysguard (and |
Changed amd to nvidia for the sake of al pieces. Animation is very slow, it is visible even on ISO images of any distribution, cachy or endeavouros, it is very annoying on 3090, I hope that the problem will be solved soon |
Same issue with latest Fedora dnf upgrade on a fresh installation, v560 stable and 3070. It's unbearable, please fix |
Same in 550 release from KDE Plasma 5.27, Kubuntu 24.04.1, the frame will drop to as low as 30fps when open any application. |
I'm starting to think there's enough "me too"'s in this thread that the point has been made, and it probably won't let the issue get fixed faster. :| |
Thanks! We've fixed several different stutter issues since this was opened, but it is really hard to keep track of what is still pending on which configuration. I think when 565 release comes I will close this issue and we can open new ones for anything that still manifests with that driver version and sufficiently recent 3rd party userspace (since some fixes were not in the driver itself). |
Per above, I'm going to close this issue now since it is already tracking mulitple things that were fixed at various points. If there are further stutter issues present in 565.xx, please open a new issue. Please also note that #693 is still open and that tracks the stutter/choppiness when resuming from idle. This is a different issue from stutter seen in games or when moving windows around and similar. |
NVIDIA Open GPU Kernel Modules Version
535.86.05
Please confirm this issue does not happen with the proprietary driver (of the same version). This issue tracker is only for bugs specific to the open kernel driver.
Operating System and Version
EndeavourOS Linux
Kernel Release
6.4.6-zen
Please confirm you are running a stable release kernel (e.g. not a -rc). We do not accept bug reports for unreleased kernels.
Hardware: GPU
RTX 3090
Describe the bug
When opening apps or just trying to screen record, in general anything which demands more from the GPU it starts losing frames, hitches and lags. This doesn't occur on the proprietary driver
To Reproduce
Load into KDE Plasma wayland and open any app(dolphin,browser, etc)
Bug Incidence
Always
nvidia-bug-report.log.gz
nvidia-bug-report.log.gz
More Info
No response
The text was updated successfully, but these errors were encountered: