ublue-os / bazzite

Bazzite is a cloud native image built upon Fedora Atomic Desktops that brings the best of Linux gaming to all of your devices - including your favorite handheld.
https://bazzite.gg
Apache License 2.0
4.09k stars 250 forks source link

RAM usage increasing, but never decreasing resulting in a crash. #1902

Closed quuinnn closed 4 days ago

quuinnn commented 5 days ago

Describe the bug

Ever since I updated to the 2 new updates released yesterday, in the games Half-Life 2 (Source Engine, installed from Steam, Native) and Severed Steel (UE4, installed from GOG, Proton Experimental) when the RAM usage goes to around 11.4 GB, then I press the "STEAM" or "●●●" button it shows the Steam UI but with white squares on the UI then the game crashes then goes blank, or if I wait a few more minutes more.

I noticed that in Severed Steel, when I load into a new level, my RAM usage increases, but it never decreases. Same thing in Half-Life 2 in Highway 17 but when I just navigate the place (since it's an open-world-ish level). And the performance also gets slightly degraded too.

All of this wasn't happening in the last update.

What did you expect to happen?

I excepted to play my games for more than 10 minutes per-session.

Output of rpm-ostree status

State: idle Deployments: ● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck-gnome:stable                    Digest: sha256:e47786f5b8a19c2501afaa32afb76072a668b86cda836e49d3e0ed336afd453f                   Version: 41.20241118.2 (2024-11-19T02:54:35Z)           LayeredPackages: konsole mullvad-vpn    ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-deck-gnome:stable                    Digest: sha256:c1c836e71a51253c2f29292c6880c499c2d93730df487e904f059e19a668b819                   Version: 41.20241118 (2024-11-18T05:55:00Z)           LayeredPackages: konsole mullvad-vpn

Hardware

Jupiter

Extra information or context

Here's the Proton Log for Severed Steel. I don't know how to generate a log file from Half-Life 2. steam-13380315529424666624.log

Running on a Steam Deck LCD 512 GB model

Tested on both the Stable and Beta Steam branch; exact same result.

I tried running Half-Life 2 with Proton 9.0, same issue, but it happens quicker.

Edit: It seems like my RAM is going into this "buff/cache" thing. I did a quick search online and I found that's meant to be utilized by other apps when needed. But it appears like it's not happening since my games keep on having its RAM usage increased, but never decreased. In the log files of the test that I ran with the game Descenders (Proton 9.0, Unity, installed from Steam), it shows that my RAM hasn't cleared at all ever since running it.

meminfo.txt meminfo free.txt free -ht

Also, I noticed that in the game, Jusant (Proton 9.0, UE5, installed from Steam) there were loading screens, which weren't there before the update that broke things for me.

quuinnn commented 4 days ago

omfg it was an issue with decky recorder plugin not bazzite. i ran df -h then i found out it was storing something in my tmpfs so i went into /dev/shm then i found out that it was a bunch of decky recorder MP4s gonna go delete decky recorder now :P