Xorg VRAM leak

There are other posts about this subject but they are either very old or not quite the same thing.

I’m running Ubuntu Studio 22.04 with the latest proprietary drivers and I’ve been experiencing a really bad VRAM leak with the Xorg process.

I was trying to play Cyberpunk the other day and the FPS was terrible (12 FPS). Looking at nvtop Xorg was using 4.5GB VRAM and not leaving enough for the game.

Just now it’s sitting at 8GB VRAM usage:

PID  USER DEV    TYPE  GPU        GPU MEM    CPU  HOST MEM Command                                                                     
   4057  root   0 Graphic   3%   7969MiB  65%     2%    219MiB /usr/lib/xorg/Xorg -nolisten tcp -auth /var/run/sddm/{3d1d8b92-34e6-4a0f-84e

The only way to fix this currently is to log out and log back in, but that’s really inconvenient.

I’ve run the bug collection script and have attached it here.

nvidia-bug-report.log.gz (587.3 KB)

Does xrestop show any clients leaking pixmaps? If not, it might be a good idea to try closing applications one by one to see which one causes the memory usage to drop.

xrestop didn’t show anything interesting.

Closing apps one at a time was the way I found the cause.

It’s the Steam app. I’ll be opening a ticket with them.

Thanks for your help!

-brian

1 Like

This problem was reported to Valve by me around 3 weeks before they decided to make the new UI official. No one from Valve looked into it and they just pushed the update anyway.