Extremely high VRAM usage from plasma-shell


Hi all, I am using Aurora OS on my desktop with a GTX 1050 (2GB VRAM total). I have nvidia driver version 570.133.07. I noticed that Firefox was crashing frequently and checked journalctl, where I saw the nvidia driver is failing to allocate. I checked with nvtop and see that my VRAM is always nearly full, with plasmashell alone using nearly 1.3GB of VRAM (over half of that available). I don’t think this is normal, what should I do to diagnose this?

nvtop screenshot:

journalctl logs:

Do you regularly shut down your PC, or do you always suspend it?

I recently saw posts here that mentionned memory usage problems on KDE with NVIDIA GPUs. Memory would not be released and memory usage would increase each time the PC is suspended then resumed. However I thought I saw that an NVIDIA driver update (with latest Universal Blue images) is supposed to fix this issue.

I just turned on my PC and plasmashell is taking 153 MB.

I usually shut down my PC in the evening, so I haven’t experienced this issue. I’m running the stable-daily channel and the driver version is 570.153.02.

Thank you very much, it worked as it went down to 72MB! Thank you so much for your help and time :slight_smile:

My pleasure. And I just saw this:

The interesting part:

The headline fix addresses a curious memory leak that would steadily cause X11-based OpenGL and Vulkan applications to consume more RAM after each suspend-resume cycle.

(Yet Plasma 6 runs Wayland instead of X11 by default? Anyway…)

I was wrong, the fix was in beta, and it just got released. This fix should be coming to Universal Blue relatively soon.

It’s a good idea to shut the PC down when we’re not using it. Booting is fast, it’s not like Windows, and mostly Universal Blue desktops need us to change our habits a little, since system updates will only be applied at reboot after being downloaded in the background. Never rebooting means never having updates.

they will then run in XWayland, which could then again cause the bug to appear.

Thanks a lot! I will reboot more often so I am sure to also get all the updates.