https://bugs.kde.org/show_bug.cgi?id=499560
Bug ID: 499560 Summary: plasmashell leaks 1-4 GB of VRAM over a period of less than 20 hours Classification: Plasma Product: plasmashell Version: git-stable-Plasma/6.2 Platform: Gentoo Packages OS: Linux Status: REPORTED Severity: normal Priority: NOR Component: generic-performance Assignee: plasma-b...@kde.org Reporter: k...@kaishome.de Target Milestone: 1.0 SUMMARY According to nvidia-smi, plasmashell leaks a lot of VRAM over a period of less than 20 hours even. This also happens while the system is actively used, e.g. during gaming, and finally leads to low gaming performance, render problems, OBS render dropouts, and some apps may crash. That instability situation has become a lot better since I last tried but it still exists and the following dmesg output can be observed: [73453.409090] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object [73453.409420] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object [73453.426989] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object [73453.427009] [drm:nv_drm_gem_alloc_nvkms_memory_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to allocate NVKMS memory for GEM object [73469.422839] NVRM: Xid (PCI:0000:01:00): 69, pid=508775, name=chrome, Class Error: ChId 0056, Class 0000902d, Offset 0000023c, Data 00000000, ErrorCode 00000004 [73483.852230] NVRM: Xid (PCI:0000:01:00): 69, pid=508839, name=chrome, Class Error: ChId 0056, Class 0000902d, Offset 0000023c, Data 00000000, ErrorCode 00000004 But this one is not the point here (nvidia-drivers should probably handle that better), it's just a side effect of plasmashell leaking VRAM memory at an exceptionally high rate while the system is idle. I've used `kcmshell6 qtquicksettings` to switch between automatic and threaded render loop, than restart to apply. With threaded render loop, the rate at which plasmashell leaks VRAM seems to be 3-4 times lower. Thus I'm currently running with threaded render loop. STEPS TO REPRODUCE 1. Reboot into a wayland session, open some Chrome windows and Steam, one control bar per monitor 2. check VRAM usage with nvidia-smi 3. turn off monitors, leave the system idle for 20 hours, turn monitors back on 4. check VRAM usage with nvidia-smi OBSERVED RESULT Wed Feb 5 01:23:34 2025 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 570.86.16 Driver Version: 570.86.16 CUDA Version: 12.8 | |-----------------------------------------+------------------------+----------------------+ | 0 N/A N/A 469044 G /usr/bin/plasmashell 452MiB | +-----------------------------------------------------------------------------------------+ Wed Feb 5 19:47:26 2025 +-----------------------------------------------------------------------------------------+ | NVIDIA-SMI 570.86.16 Driver Version: 570.86.16 CUDA Version: 12.8 | |-----------------------------------------+------------------------+----------------------+ | 0 N/A N/A 469044 G /usr/bin/plasmashell 1772MiB | +-----------------------------------------------------------------------------------------+ VRAM allocations of plasmashell went from 452 MB to 1772 MB. Overall VRAM usage went from 2062 MB to 3127 MB. EXPECTED RESULT plasmashell VRAM usage should not go way above the initial value, especially if the system is left otherwise. SOFTWARE/OS VERSIONS Operating System: Gentoo Linux 2.17 KDE Plasma Version: 6.2.5 KDE Frameworks Version: 6.9.0 Qt Version: 6.8.1 Kernel Version: 6.12.12-gentoo (64-bit) Graphics Platform: Wayland Processors: 20 × 12th Gen Intel® Core™ i7-12700K Memory: 31.1 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 3080 Ti/PCIe/SSE2 ADDITIONAL INFORMATION I'm not sure if plasma notifications play a role here, I have multiple websites open which are allowed to display notifications. Also, I'm using the wallpaper-of-the-day features which changes the wallpaper every so often. The wallpaper probably changed only once so it should not have a big impact. Monitor setup, none rotated, HDR disabled, VRR auto: 1. Left, 16:18 2560x2880, plasma bar at the left 2. Center, 16:9 3840x2160, plasma bar at the bottom 3. Right, 16:9 3840x2160, plasma bar at the right 4. TV, clone of (2), 3840x2160 -- You are receiving this mail because: You are watching all bug changes.