Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fossilize memory leak with latest runtime update #1156

Closed
valeth opened this issue Sep 6, 2023 · 3 comments
Closed

Fossilize memory leak with latest runtime update #1156

valeth opened this issue Sep 6, 2023 · 3 comments

Comments

@valeth
Copy link

valeth commented Sep 6, 2023

Steam's fossilize leaks memory with some games when updating to the latest stable branch using runtime 23.08.

I've noticed a severe leak with Deep Rock Galactic, where it filled up 32GB of available memory in seconds.
Other games like Warframe don't seem to have this problem, other than the compilation step taking a very long time.

After downgrading to Flatpak commit 227a5e654498b890a13fc6612fdc3b12a4ebd943f1e764972a5ff0e65882b9a4 which uses the previous runtime 22.08, the issue went away.

System:
CPU: AMD Ryzen 5 7600X
GPU: AMD RX 6950XT
MEM: 32GB DDR5 (+8GB of swap)
Base OS: Arch Linux
Flatpak Version: 1.15.4

@doogie544
Copy link

doogie544 commented Sep 10, 2023

this is a known issue with mesa 23.1.6

ValveSoftware/Fossilize#231
ValveSoftware/Proton#284
https://gitlab.freedesktop.org/mesa/mesa/-/issues/9717
ValveSoftware/Fossilize#230

Flatpak need to add 23.1.7 top get this fixed, maybe the Steam flatpak can to be re-released to temporarily use mesa 23.1.5 until 23.1.7 is added to the available flatpak (non-beta) runtimes

Users affected can also workaround this issue by create a steam_dev.cfg file in
~/.var/app/com.valvesoftware.Steam/.local/share/Steam with the contents of

unShaderHighPriorityProcessingThreads 4

This will restrict the process to only 4 threads so will slow down all shader compilation for every game. (I tried more but only 4 would work with 32G of RAM, if you have less ram you may need to use less cores)

Of course you can also just skip the shader compiling at the start of the game, you do have enough time to do that if you are quick. Mesa now uses the GPL by default so you are not likely to notice any stuttering like you did before if you cancelled the process

Disabling the shader pre-caching also works but then the movies in the games may not work as the video.fox that Valve uses to store the transcoded videos is downloaded as part of the shader precache.

@valeth
Copy link
Author

valeth commented Sep 18, 2023

@doogie544
The version I rolled back to is using Mesa 23.1.6 and does not leak memory.

@valeth
Copy link
Author

valeth commented Oct 2, 2023

The runtime seems to now have updated their Mesa version to 23.1.7, and this seems to fix the issue.

@valeth valeth closed this as completed Oct 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants