Steam for Linux

Steam for Linux

leaks memory
Hello there.
I have a rough time using Proton 9.0-4
I`m using it to play 2 games: dying light and fragpunk
but i noticed after a hour or two im running out of ram and swap and my whole system just collapse like thanos snap. Firstly i cannot figure what happend for a few seconds, but looked at my 2nd monitor and saw through btop that im ran out of vram, ram and probably cores of my cpu XD
pc: 16gb ram
gtx1060 6gb
ryzen r5 4650g
Is there any solution for that problem?
< >
Showing 1-15 of 25 comments
Jinrum 7 Jun @ 8:39pm 
With a 6GB card you are definitely running out of VRAM. Don't forget that your DE of choice is going to take a chunk of that VRAM. I noticed on Fedora Workstation with KDE takes almost 3GB of VRAM vs Gnome with only 1.5GB - 2GB. The resolution you play at also matters.

Your only options are to close any other running apps or make the windows smaller to free up some VRAM. The other thing you can do is turn down graphical settings in the games you play.

Linux doesn't handle VRAM swapping gracefully like on Windows when using a low VRAM graphics card. Someone correct me if I am wrong.
Thiesen 8 Jun @ 12:29am 
Vulkan is VERY picky when it comes to VRAM... it simply refuse to work if runnin out of VRAM...

6GB VRAM is VERY little these days...

The solution is to shell out some of that dough and buy a gfx card with more VRAM

My specs:

System: Kernel: 6.11.0-26-generic arch: x86_64 bits: 64 compiler: gcc v: 13.3.0 clocksource: tsc Desktop: Cinnamon v: 6.4.8 tk: GTK v: 3.24.41 wm: Muffin v: 6.4.1 vt: 7 dm: LightDM v: 1.30.0 Distro: Linux Mint 22.1 Xia base: Ubuntu 24.04 noble Machine: Type: Desktop Mobo: ASUSTeK model: TUF X470-PLUS GAMING v: Rev X.0x serial: <superuser required> part-nu: SKU uuid: <superuser required> BIOS: American Megatrends v: 5806 date: 11/23/2020 CPU: Info: 8-core model: AMD Ryzen 7 2700 bits: 64 type: MT MCP smt: enabled arch: Zen+ rev: 2 cache: L1: 768 KiB L2: 4 MiB L3: 16 MiB Speed (MHz): avg: 1850 high: 4092 min/max: 1550/3200 boost: enabled cores: 1: 1375 2: 1375 3: 1550 4: 1550 5: 1637 6: 1634 7: 1637 8: 4092 9: 1375 10: 1550 11: 1586 12: 1375 13: 1633 14: 1637 15: 1634 16: 3967 bogomips: 102211 Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm Graphics: Device-1: AMD Navi 33 [Radeon RX 7700S/7600/7600S/7600M XT/PRO W7600] vendor: ASUSTeK driver: amdgpu v: kernel arch: RDNA-3 pcie: speed: 16 GT/s lanes: 8 ports: active: HDMI-A-1 empty: DP-1, DP-2, DP-3, Writeback-1 bus-ID: 0b:00.0 chip-ID: 1002:7480 class-ID: 0300 Display: x11 server: X.Org v: 21.1.11 with: Xwayland v: 23.2.6 driver: X: loaded: amdgpu unloaded: fbdev,modesetting,radeon,vesa dri: radeonsi gpu: amdgpu display-ID: :0 screens: 1 Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.00x11.22") s-diag: 582mm (22.93") Monitor-1: HDMI-A-1 mapped: HDMI-A-0 model: Asus VC279 serial: <filter> res: 1920x1080 hz: 60 dpi: 82 size: 598x336mm (23.54x13.23") diag: 686mm (27") modes: max: 1920x1080 min: 720x400 API: EGL v: 1.5 hw: drv: amd radeonsi platforms: device: 0 drv: radeonsi device: 1 drv: swrast gbm: drv: kms_swrast surfaceless: drv: radeonsi x11: drv: radeonsi inactive: wayland API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 24.2.8-1ubuntu1~24.04.1 glx-v: 1.4 direct-render: yes renderer: AMD Radeon RX 7600 XT (radeonsi navi33 LLVM 19.1.1 DRM 3.61 6.11.0-26-generic) device-ID: 1002:7480 API: Vulkan v: 1.3.275 layers: 9 surfaces: xcb,xlib device: 0 type: discrete-gpu driver: N/A device-ID: 1002:7480 device: 1 type: cpu driver: N/A device-ID: 10005:0000 Audio: Device-1: AMD Navi 31 HDMI/DP Audio driver: snd_hda_intel v: kernel pcie: speed: 16 GT/s lanes: 8 bus-ID: 0b:00.1 chip-ID: 1002:ab30 class-ID: 0403 Device-2: AMD Family 17h HD Audio vendor: ASUSTeK driver: snd_hda_intel v: kernel pcie: speed: 8 GT/s lanes: 16 bus-ID: 0d:00.3 chip-ID: 1022:1457 class-ID: 0403 API: ALSA v: k6.11.0-26-generic status: kernel-api Server-1: PipeWire v: 1.0.5 status: active with: 1: pipewire-pulse status: active 2: wireplumber status: active 3: pipewire-alsa type: plugin Network: Device-1: Intel 82574L Gigabit Network driver: e1000e v: kernel pcie: speed: 2.5 GT/s lanes: 1 port: f000 bus-ID: 06:00.0 chip-ID: 8086:10d3 class-ID: 0200 IF: enp6s0 state: up speed: 1000 Mbps duplex: full mac: <filter> Drives: Local Storage: total: 4.3 TiB used: 2.15 TiB (50.0%) ID-1: /dev/nvme0n1 vendor: Samsung model: SSD 970 EVO 250GB size: 232.89 GiB speed: 31.6 Gb/s lanes: 4 tech: SSD serial: <filter> fw-rev: 2B2QEXE7 temp: 33.9 C scheme: GPT ID-2: /dev/sda vendor: Samsung model: SSD 870 EVO 4TB size: 3.64 TiB speed: 6.0 Gb/s tech: SSD serial: <filter> fw-rev: 3B6Q scheme: GPT ID-3: /dev/sdb vendor: Kingston model: SA400S37480G size: 447.13 GiB type: USB rev: 3.0 spd: 5 Gb/s lanes: 1 tech: SSD serial: <filter> scheme: MBR Partition: ID-1: / size: 227.19 GiB used: 63.37 GiB (27.9%) fs: ext4 dev: /dev/nvme0n1p2 ID-2: /boot/efi size: 1022 MiB used: 6.1 MiB (0.6%) fs: vfat dev: /dev/nvme0n1p1 ID-3: /home size: 3.58 TiB used: 1.96 TiB (54.8%) fs: ext4 dev: /dev/sda1 Swap: Alert: No swap data was found. USB: Hub-1: 1-0:1 info: hi-speed hub with single TT ports: 14 rev: 2.0 speed: 480 Mb/s lanes: 1 chip-ID: 1d6b:0002 class-ID: 0900 Device-1: 1-11:2 info: Razer USA Naga Trinity type: mouse,keyboard driver: hid-generic,usbhid interfaces: 3 rev: 2.0 speed: 12 Mb/s lanes: 1 power: 500mA chip-ID: 1532:0067 class-ID: 0300 serial: <filter> Device-2: 1-14:3 info: Ducky One 3 RGB type: HID,keyboard,mouse driver: hid-generic,usbhid interfaces: 5 rev: 1.1 speed: 12 Mb/s lanes: 1 power: 100mA chip-ID: 3233:1311 class-ID: 0300 serial: <filter> Hub-2: 2-0:1 info: super-speed hub ports: 8 rev: 3.1 speed: 10 Gb/s lanes: 1 chip-ID: 1d6b:0003 class-ID: 0900 Hub-3: 3-0:1 info: hi-speed hub with single TT ports: 4 rev: 2.0 speed: 480 Mb/s lanes: 1 chip-ID: 1d6b:0002 class-ID: 0900 Hub-4: 4-0:1 info: super-speed hub ports: 4 rev: 3.0 speed: 5 Gb/s lanes: 1 chip-ID: 1d6b:0003 class-ID: 0900 Device-1: 4-2:2 info: Fujitsu iodd_ST300 type: mass storage driver: usb-storage interfaces: 1 rev: 3.0 speed: 5 Gb/s lanes: 1 power: 8mA chip-ID: 04c5:2028 class-ID: 0806 serial: <filter> Sensors: System Temperatures: cpu: 45.4 C mobo: N/A gpu: amdgpu temp: 41.0 C mem: 55.0 C Fan Speeds (rpm): N/A gpu: amdgpu fan: 2 Repos: Packages: 3045 pm: dpkg pkgs: 3016 pm: flatpak pkgs: 29 No active apt repos in: /etc/apt/sources.list Active apt repos in: /etc/apt/sources.list.d/official-dbgsym-repositories.list 1: deb http:// /ddebs.ubuntu.com noble main restricted universe multiverse 2: deb http:// /ddebs.ubuntu.com noble-updates main restricted universe multiverse Active apt repos in: /etc/apt/sources.list.d/official-package-repositories.list 1: deb http:// /packages.linuxmint.com xia main upstream import backport romeo 2: deb http:// /archive.ubuntu.com/ubuntu noble main restricted universe multiverse 3: deb http:// /archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse 4: deb http:// /archive.ubuntu.com/ubuntu noble-backports main restricted universe multiverse 5: deb http:// /security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse Active apt repos in: /etc/apt/sources.list.d/official-source-repositories.list 1: deb-src http:// /packages.linuxmint.com xia main upstream import backport romeo 2: deb-src http:// /archive.ubuntu.com/ubuntu noble main restricted universe multiverse 3: deb-src http:// /archive.ubuntu.com/ubuntu noble-updates main restricted universe multiverse 4: deb-src http:// /archive.ubuntu.com/ubuntu noble-backports main restricted universe multiverse 5: deb-src http:// /security.ubuntu.com/ubuntu/ noble-security main restricted universe multiverse Info: Memory: total: 48 GiB available: 46.96 GiB used: 11.22 GiB (23.9%) Processes: 449 Power: uptime: 14d 20h 1m states: freeze,mem,disk suspend: deep wakeups: 0 hibernate: platform Init: systemd v: 255 target: graphical (5) default: graphical Compilers: clang: 16 gcc: 13.3.0 Client: Unknown python3.12 client inxi: 3.3.34
Last edited by Thiesen; 8 Jun @ 12:32am
https://steamhost.cn/steamcommunity_com/app/221410/discussions/0/3877093659885812335/

>>>
Originally posted by Cray:
Steam using all your RAM? Here's a 'fix':

systemd-run --scope -p MemoryLimit=3000M steam

Run this command in Alt+F2 launcher or a terminal. In this example steam is limited to 3 GB.

....



https://steamhost.cn/steamcommunity_com/app/221410/discussions/0/591759013796955331/

>>>
Originally posted by Cray:
Steam bleeding your RAM (not just the webhelper this time)

Just discovered the probem with steam bleeding RAM in /dev/shm (shared memory folder) to the point of depletion. Thought others should be aware since it becomes a real problem once that folder is full, not to mention it wastes RAM for nothing and keeps it occupied even when steam isn't running.

the tldr is:

...
Last edited by grzegorz77; 8 Jun @ 1:29am
tyl0413 8 Jun @ 2:52am 
KDE Wayland on 16GB 5080 can use 3-6GB VRAM idle on the desktop, the VRAM waste on linux is beyond insane, get an overkill card thats the only solution and with the expectation that it'll run like tier or two tiers below card would on Windows.
@grzegorz77 Nobody cares about RAM, RAM is cheap, tell me how I stop KDE from eating up all the VRAM while doing ♥♥♥♥ all, on Windows its literally impossible to make VRAM usage go above a couple hundred MBs at worse on the desktop.
Zyro 8 Jun @ 3:07am 
Originally posted by tyl0413:
KDE Wayland on 16GB 5080 can use 3-6GB VRAM idle on the desktop

How did you measure this?
Originally posted by tyl0413:
KDE Wayland on 16GB 5080 can use 3-6GB VRAM idle on the desktop, the VRAM waste on linux is beyond insane, get an overkill card thats the only solution and with the expectation that it'll run like tier or two tiers below card would on Windows.
@grzegorz77 Nobody cares about RAM, RAM is cheap, tell me how I stop KDE from eating up all the VRAM while doing ♥♥♥♥ all, on Windows its literally impossible to make VRAM usage go above a couple hundred MBs at worse on the desktop.


My experience with KDE is about 20 hours over the last 20 years.

I prefer lightweight desktop environment, it's not even about the resources, but for some strange reason they are cut more to my liking eg. keyboard shortcuts, behavior, it's very important when you use the mouse little.

I have computers that have 512 MB of VRAM (I also have some that have less).
So I am also curious about what measurement methods you use.
tyl0413 8 Jun @ 7:41am 
Originally posted by Zyro:
Originally posted by tyl0413:
KDE Wayland on 16GB 5080 can use 3-6GB VRAM idle on the desktop

How did you measure this?
I have Mission Center (better than stock KDE Task Manager) usually open on my side monitor. Yes its reporting correctly same just like nvtop.
I crash in games that run out of VRAM (which don't on Windows only uses a few hundred MBs at absolute worst).
well, i cheked how much ram using my system while i do my usual stuff, not gaming. The result is (according to btop): 3.49GiB used RAM, 0 Byte used swap, 508M used VRAM.
Measured with opened: Telegram, Firefox, Steam(background), Vesktop.
Im using Linux Mint on Cinnamon, for a few years i was using Arch and Kali alongside on my laptop and 0 problems with gaming, but when it comes to PC its all about time, when my system will freeze while im gaming in those 2 games.
I tried limiting ram for steam, but no success, cuz its not fully steam, its proton and his emulation, how i can tell.
Yesterday i was searching through internet and have 0 useful info about that case, but sure i tried typing all that they wrote about it (of course using timeshift to fall back and dont make a mess).
Zyro 8 Jun @ 11:28am 
Originally posted by クダサイ:
well, i cheked how much ram using my system while i do my usual stuff, not gaming. The result is (according to btop): 3.49GiB used RAM, 0 Byte used swap, 508M used VRAM.
Measured with opened: Telegram, Firefox, Steam(background), Vesktop.

https://www.linuxatemyram.com/
tyl0413 8 Jun @ 12:52pm 
Originally posted by Zyro:
Originally posted by クダサイ:
well, i cheked how much ram using my system while i do my usual stuff, not gaming. The result is (according to btop): 3.49GiB used RAM, 0 Byte used swap, 508M used VRAM.
Measured with opened: Telegram, Firefox, Steam(background), Vesktop.

https://www.linuxatemyram.com/
Same old tired excuses, I guess they're gonna make one up for VRAM too instead of fixing it.
I sometimes crash due to running out of RAM because closing stuff does not actually result in the used RAM being cleared for some reason, who cares I'll just get 64GB of RAM, its absolutely hilarious, people are switching to Linux bc they don't wanna buy a new PC for W11, meanwhile I'm building a PC beyond what I'd need on Windows to just to be able to use Linux comfortably with all its unoptimized, buggy bs.
The Linux saves old hardware cope only works if you have like a 4GB RAM laptop thats only used for browsing, sure that works better than Windows, towards the higher end linux wastes resources just as much as Windows (or way worse in the case of VRAM) and you'll get tier below performance for your hardware, maybe something to think about, normal people aren't crazy enough like me to hate windows enough that they're willing to waste enough money to get a usable linux system.
This is the reason why SteamOS matters, Valve is literally the only one in the linux space who gets that nobody cares about the excuses, people just want a usable system that works at least as well or better than what they're used to, many linux devs/users seem to miss that point when they just gaslight people with "You're holding it wrong" tier arguments instead of addressing issues.
Zyro 8 Jun @ 1:01pm 
Originally posted by tyl0413:
Originally posted by Zyro:

https://www.linuxatemyram.com/
Same old tired excuses,

Having RAM that's not used for something is like hiring workers to have them lying around in the corner.

Originally posted by tyl0413:
I sometimes crash due to running out of RAM because closing stuff does not actually result in the used RAM being cleared for some reason

That's something entirely different of course and needs to be examined.

If there's more important work for the "workers", they need to change what they're doing and they need to change quickly.

That said: What you're observing there doesn't happen for me, so you need to examine it on your system.

Originally posted by tyl0413:
who cares I'll just get 64GB of RAM, its absolutely hilarious, people are switching to Linux bc they don't wanna buy a new PC for W11, meanwhile I'm building a PC beyond what I'd need on Windows to just to be able to use Linux comfortably with all its unoptimized, buggy bs.

That's obvious nonsense. Linux wouldn't be used an all top 500 super computers and literally billions of phones if this would be true.

Originally posted by tyl0413:
many linux devs/users seem to miss that point when they just gaslight people with "You're holding it wrong" tier arguments instead of addressing issues.

Sorry, if your system is broken, it's not my fault. And I cannot even examine it, as it's not happening here. I guess some program is missbehaving on your system. You can continue whining - or start searching for cause.
Last edited by Zyro; 8 Jun @ 1:04pm
Zyro 8 Jun @ 1:15pm 
Ok, I'm back at my Linux PC and gave it a try. With KDE on X, Firefox open, according to nvidia-smi, I see a usage of 650MiB of 6144MiB on my GTX1660S.

Originally posted by tyl0413:
KDE Wayland on 16GB 5080 can use 3-6GB VRAM idle on the desktop, the VRAM waste on linux is beyond insane, get an overkill card thats the only solution and with the expectation that it'll run like tier or two tiers below card would on Windows.

Well, we see different values here.
tyl0413 8 Jun @ 1:36pm 
Originally posted by Zyro:
Ok, I'm back at my Linux PC and gave it a try. With KDE on X, Firefox open, according to nvidia-smi, I see a usage of 650MiB of 6144MiB on my GTX1660S.

Originally posted by tyl0413:
KDE Wayland on 16GB 5080 can use 3-6GB VRAM idle on the desktop, the VRAM waste on linux is beyond insane, get an overkill card thats the only solution and with the expectation that it'll run like tier or two tiers below card would on Windows.

Well, we see different values here.
Do you have one 1080p monitor i assume? I did not test it but I assume that could have an effect, on my 8GB 2060S I was getting 1-2.5G of VRAM usage too, which downgraded it way further obviously leaving only bit over 6 to games.
Well Wayland I assume is the problem too but X runs so badly for me, constant stutter in games, constant stutter moving Windows around, OBS constant frame drops, etc I can't use X anymore, I tried all the fixes and nothing helped, I'm not a big fan of Wayland but at least it seems to be functional. Obviously this is on the latest driver with open kernel modules (only supported one on 50 series but I had high VRAM usage on my old card too with both closed and open modules)
Right now I'm at 4735MiB in nvidia-smi 5.079Gi on nvtop and 5.08GiB in Mission Center, I do have multiple programs open but thats still insane, I have enough free RAM i should be able to boot a game rn without things crashing but I can't, well at least not any games that use over 10GB of VRAM.
I can't tell if this is supposed to be normal or just some weird issue with my install for whatever reason, best I know is Windows is impossible to get to 1GB VRAM just with desktop programs (ofc no games/rendering/etc) no matter what.
Last edited by tyl0413; 8 Jun @ 1:41pm
Jinrum 8 Jun @ 2:11pm 
I'm seeing 1219MB VRAM after a reboot and idle for 5min on the desktop (Wayland). Opening Librewolf browser with three pinned tabs and steam it gets to 1765MB for VRAM. I have Steam and Librewolf split on my screen and not fullscreened. Adding Freetube on the other side of my screen gets to 2004 MB of VRAM.


OS: Fedora Linux 42 (Workstation Edition)
Kernal: 6.14.9-300.fc42.x86_64
CPU: AMD Ryzen 7 7800X3D × 16 (iGPU disabled in BIOS)
GPU: AMD Radeon Sapphire Pure RX 9070 XT 16GB
Mesa: 25.0.7
Memory: 32GB of DDR5 @ 6000Mhz
Motherboard: ASRock X670E Steel Legend (BIOS 3.25)
Resolution: 4k
Storage: NVME 4TB
Zyro 8 Jun @ 2:17pm 
Originally posted by tyl0413:
Originally posted by Zyro:
Ok, I'm back at my Linux PC and gave it a try. With KDE on X, Firefox open, according to nvidia-smi, I see a usage of 650MiB of 6144MiB on my GTX1660S.
Do you have one 1080p monitor i assume?

That's with 2560*1440 (and 144 Hz, which shouldn't matter for VRAM).

Originally posted by tyl0413:
Well Wayland I assume is the problem too but X runs so badly for me, constant stutter in games, constant stutter moving Windows around, OBS constant frame drops, etc I can't use X anymore, I tried all the fixes and nothing helped, I'm not a big fan of Wayland but at least it seems to be functional.

From what I've heared about KDE vs. Wayland as well as Nvidia vs. Wayland, I'd really stay with X for some more time for your (and my) constellation.
< >
Showing 1-15 of 25 comments
Per page: 1530 50