Skip to content

Huge VRAM Usage, Increases Until Steam Is Closed #9638

Closed

Description

Your system information

  • Steam client version (build number or date): 1686880776
  • Distribution (e.g. Ubuntu): Flatpak/NixOS
  • Opted into Steam client beta?: Yes
  • Have you checked for system updates?: Yes
  • Sysinfo Gist

Please describe your issue in as much detail as possible:

I've been getting errors in my games because I'm running out of VRAM. On further examination, I discovered via nvtop that xorg was using most of my VRAM, which was only freed again after closing Steam. Note that I have GPU Accelerated Rendering turned off.

May be related to #9516

Reproducing this issue:

I'm running the window manager i3 and I found repeatedly switching between the workspace with Steam and the workspace with the terminal running nvtop resulted in ever increasing VRAM on my machine. Starting a game also increases VRAM usage by approximately 50MB.

Activity

  1. heikomat commented on Jun 17, 2023

    @heikomat

    I have the same problem on Pop!_OS.

    One easy reproduction for me is to just resize the steam client (dragging the mouse in circles).
    After just a few second of resizing all 6GB of vram is eaten up by xorg and the desktop environment crashes, dropping me to the login screen.

    I use the debian package of the steam-client (from the pop shop) and am not subscribed to the steam client beta

  2. xjunko commented on Jun 17, 2023

    @xjunko

    Running on Arch Linux, having the same problem.
    Changing workspace and resizing the steam client increases the xorg vram usage by a crazy amount.
    I use the steam package from the aur and am not subscribed to the steam client beta.

  3. husjon commented on Jun 17, 2023

    @husjon

    I am also on Arch with i3wm and use the steam package from Multilib.
    I started seeing it late in the beta but wasn't able to narrow down when / why it happened.
    Currently not using the Beta client.

    System info gist: https://gist.github.com/husjon/97c4cebf276b66038aaea621034b3981
    Quick video showing how quickly it balloons: https://youtu.be/FCXA31aTlRw
    Keep an eye on the Xorg Memory usage in the bottom right window.

  4. FredrikHson commented on Jun 20, 2023

    @FredrikHson

    get the same issue on arch + my usual i3wm or even gnome(just for testing) when resizing the window/swapping workspaces or going from the library->store page , also got as much hw accelleration turned off as possible to save vram
    nvidia Driver Version: 530.41.03

  5. Olexorus commented on Jun 22, 2023

    @Olexorus

    Same issue here, after a few seconds of resizing the window, Steam fills up all of my 12GB of VRAM.

    As a workaround, Steam can be started with the -vgui flag to revert back to the old UI until there is a proper fix.

  6. KarlHornell commented on Jul 2, 2023

    @KarlHornell

    I've had the same issue for some time now. I'm running latest Debian with i3wm and Nvidia GPU.
    Switching windows in i3wm to and from a steam window also seems to produce this increase in VRAM usage by Steam.
    For some games I really feel the need to kill steam while playing to avoid lag, which has not been the case before.
    The -vgui workaround means I can't log in to 'Friends'
    Could add more information but I think most of it has already been said by others.

  7. Syvraa commented on Jul 19, 2023

    @Syvraa

    This is also happening for me. I'm on arch linux using awesome as my window manager and an Nvidia GPU.

  8. Lamieur commented on Jul 22, 2023

    @Lamieur

    -vgui stopped working in the latest beta, making me very unhappy, my game stutters like crazy when I hit VRAM limit, and, you know, it's Steam-only now, it absolutely has to be launched by Steam.

    But check this out, I'm in game, can't restart Steam:

    +---------------------------------------------------------------------------------------+
    | Processes:                                                                            |
    |  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
    |        ID   ID                                                             Usage      |
    |=======================================================================================|
    |    0   N/A  N/A      1895      G   /usr/libexec/Xorg                          1597MiB |
    |    0   N/A  N/A     75851      G   ...ling,SpareRendererForSitePerProcess       31MiB |
    |    0   N/A  N/A    300059      G   /usr/lib64/seamonkey/seamonkey                5MiB |
    |    0   N/A  N/A    711116      G   ...local/share/Steam/ubuntu12_32/steam       18MiB |
    |    0   N/A  N/A    711178      G   ...re/Steam/ubuntu12_64/steamwebhelper       16MiB |
    |    0   N/A  N/A    723173      G   /usr/lib64/firefox/firefox                   23MiB |
    |    0   N/A  N/A    841566    C+G   ...ns\client\bin\pc\QuakeChampions.exe     3907MiB |
    +---------------------------------------------------------------------------------------+
    # kill -9 711178
    # nvidia-smi 
    (...)
    +---------------------------------------------------------------------------------------+
    | Processes:                                                                            |
    |  GPU   GI   CI        PID   Type   Process name                            GPU Memory |
    |        ID   ID                                                             Usage      |
    |=======================================================================================|
    |    0   N/A  N/A      1895      G   /usr/libexec/Xorg                           384MiB |
    |    0   N/A  N/A     75851      G   ...ling,SpareRendererForSitePerProcess       24MiB |
    |    0   N/A  N/A    300059      G   /usr/lib64/seamonkey/seamonkey                5MiB |
    |    0   N/A  N/A    711116      G   ...local/share/Steam/ubuntu12_32/steam       18MiB |
    |    0   N/A  N/A    723173      G   /usr/lib64/firefox/firefox                   23MiB |
    |    0   N/A  N/A    841566    C+G   ...ns\client\bin\pc\QuakeChampions.exe     3907MiB |
    |    0   N/A  N/A    845410      G   ...re/Steam/ubuntu12_64/steamwebhelper        7MiB |
    +---------------------------------------------------------------------------------------+
    

    I can kill steamwebhelper while the game is on. The Steam window closes, new one loads on the current desktop, but the game continues running.

    Oh, and of course I have DISABLED "Enable GPU accelerated rendering in web views" as well as "Enable hardware video decoding" (just in case) whenever this started, which never helped, but -vgui did. RIP -vgui [*]

    Nvidia 535.54.03, MATE (marco is the WM), Xorg 1.20.14

  9. Lamieur commented on Jul 22, 2023

    @Lamieur

    So I've noticed nvidia driver 535.86.05 is out, promising fixes for memory leaks. It only mentioned leaks during VT switching and Wayland, so neither is our case, but it was worth a try. I'm sad to report, 535.86.05 does NOT help the Steam VRAM leak.

    Steam also updated to newer beta (from yesterday), no change in this behavior (now Store goes full black when you look at it the wrong way, but even in the black state, it still leaks :))

    I've tested replacing the WM (marco --replace &) - no change to VRAM usage. It's just between the embedded Chromium and Xorg, the WM doesn't matter.

    I've also noticed the leak in normal usage happens when I switch desktops (specifically, when going to/from the desktop with Steam). That's why it takes me a day or so to actually achieve the 1,5 GB that breaks my game (already set to medium textures as a partial work-around).

    So I tested other means of making it leak VRAM very fast:

    1. You can minimize/restore the Steam window. For me it's -5 MB when minimizing, +30 when restoring, +25 MB on average.
    2. You can simply grab the Steam window's edge and swipe around, so it resizes continuously. Way faster than minimizing/restoring.
    3. You can do Alt-F6/F5 (maximize/restore binds if you don't have them) repeatedly, I think this is even faster than mouse dragging (that has a delay and refreshes less often).

    With Alt-F6/F5 smashing, I can eat up full 10 GB of VRAM in less than 40 seconds :) Compare that to 55 seconds by dragging the mouse - who would think I'll be speedrunning VRAM exhaustion of Steam client today! :))

    Again: the workaround is killing steamwebhelper. PS. Steam will restart hundreds of those after a while, ~15 more each time, doesn't matter if you kill -9 the main one, or killall steamwebhelper, they will multiply :)

  10. husjon commented on Jul 23, 2023

    @husjon

    As a quick test I installed Gnome to try out a more traditional desktop environment (which is shipped with f.ex Ubuntu).
    It seem to run on Wayland as default and I was not able to replicate this issue there at all, no matter how much I was resizing the window or switching desktop / workspaces.
    Switching Gnome to run on Xorg however the issue is there once again and it does not take long for Steam to gobble up the available VRAM.

  11. jwhear commented on Jul 27, 2023

    @jwhear

    I am experiencing this issue on Debian 11.7, kernel 5.10.0-23-amd64. The impact is that, if I don't restart Steam, a launched game will lag horribly due to a lack of VRAM.

    Steam About info:

    Steam Version:  1689034492
    Steam Client Build Date:  Mon, Jul 10 4:59 PM UTC -08:00
    Steam Web Build Date:  Mon, Jul 10 10:48 AM UTC -08:00
    Steam API Version:  SteamClient020
    

    I use the i3 window manager (Airblader gaps fork built from source). After a few hours usage I routinely see Xorg VRAM usage (as reported by nvidia-smi) at ~5GB+. This memory usage seems to trend upwards whether I'm interacting with Steam or not. Quitting Steam sends Xorg VRAM usage down to ~313MB on my system.

    I have a GeForce GTX 1070, nvidia-smi version info:

    NVIDIA-SMI 470.182.03   Driver Version: 470.182.03   CUDA Version: 11.4
    

    Happy to add any info if useful.

    Update: it appears interacting with Steam (circling my mouse around the screen so that it hovers over lots of different elements) makes the usage increase rapidly. Like ~200MB in 10 seconds of interaction rapid.

  12. 26 remaining items

  13. ghost closed this as completedon Nov 4, 2023
  14. matte-ek commented on Nov 4, 2023

    @matte-ek

    Glad it's fixed for OP, but I'm still having the same issue. Can anyone else also still repro or is it just me?

  15. heikomat commented on Nov 4, 2023

    @heikomat

    Glad it's fixed for OP, but I'm still having the same issue. Can anyone else also still repro or is it just me?

    It's not just you, still happening for me aswell

  16. emko commented on Nov 4, 2023

    @emko

    not fixed....

  17. xpander69 commented on Dec 26, 2023

    @xpander69

    Still have this issue as well. Resizing the steam window with gpu acceleration enabled will make this issue appear super fast.
    Can consume all my GPU VRAM quite fast.

    Steam Beta Branch:  Steam Beta Update
    Steam Version:  1703100617
    Steam Client Build Date:  Wed, Dec 20 21:06 UTC -08:00
    Steam Web Build Date:  Wed, Dec 20 20:14 UTC -08:00
    Steam API Version:  SteamClient021
    

    nvidia drivers 535.43.20

    everything is fine with gpu acceleration disabled, except the client is laggy and capped to 60 on scrolling.

  18. kodatarule commented on Dec 26, 2023

    @kodatarule

    This issue is indeed not fixed and it can still occur, just open steam maximize it a few times or resize it and the vram spikes a lot without ever freeing any vram, can reproduce on both MESA and Nvidia proprietary.
    Additionally it also puts everything under Xorg.

    This issue needs to be re-opened.

  19. Zi7ar21 commented on Dec 30, 2023

    @Zi7ar21

    Hello, I am having the exact same problem! (resizing the Steam window causes Xorg's VRAM usage to skyrocket), please re-open the issue @xpander69!

  20. xpander69 commented on Jan 1, 2024

    @xpander69

    Hello, I am having the exact same problem! (resizing the Steam window causes Xorg's VRAM usage to skyrocket), please re-open the issue @xpander69!

    Sorry but i can't open it :) im not the Original poster. But the other issue with same symptoms is open if you check above.

  21. Zi7ar21 commented on Jan 2, 2024

    @Zi7ar21

    Sorry but i can't open it :) im not the Original poster. But the other issue with same symptoms is open if you check above.

    Oops, I meant to @JoshuaFern! I have also added my concerns to #6715.

  22. kaarelen commented on Jan 5, 2024

    @kaarelen

    @JoshuaFern You just turned off GPU acceleration (saw in your previous messages). But the original issue isn't solved at all. Try to use Big Picture and you will fell what it is to live without GPU acceleration.

    Logic is strange. You have changed conditions to avoid issue - so the issue is solved. But it's not. At all.

  23. kaarelen commented on Jan 5, 2024

    @kaarelen

    my system up-to-date
    issue 100% isn't solved
    Steam eats out all vram

  24. kisak-valve commented on Jan 5, 2024

    @kisak-valve
    Member

    The fragmented discussion between this issue report and #6715 is not helping advance the issue you're seeing to a resolution.

    Please use #6715 for continued discussion.

  25. locked and limited conversation to collaborators on Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions