Dota-2-Vulkan icon indicating copy to clipboard operation
Dota-2-Vulkan copied to clipboard

[Linux] Dota 2 with vulkan api eat all system memory and hangs my PC (Manjaro Linux)

Open koreanfan opened this issue 3 years ago • 10 comments

Your system information

  • System information from steam (Steam -> Help -> System Information) in a gist: https://gist.github.com/koreanfan/a885e62da99e9851543c15f95f73ed70
  • Have you checked for system updates?: [Yes/No] Yes
  • Are you using the latest stable video driver available for your system? [Yes/No] Yes
  • Have you verified the game files?: [Yes/No] Yes

Please describe your issue in as much detail as possible:

Describe what you expected should happen and what did happen. Please link any large pastes as a Github Gist. I want just play Dota 2 with vulkan api, but Dota 2 with vulkan eat all RAM ( at start- 3.5 GB, before crash pc - almost 8GB) and pc can hangs or even crash. With opengl api dota eat at start - 3.5 GB, and after playing dota 2 eat max 4.5 GB

Steps for reproducing this issue:

  1. Launch steam with a command in terminal: "DRI_PRIME=1 RADV_DEBUG=llvm steam" ( I dont use default aco compiler cuz its unplayable, input lag, seems dota units responding with delay 0.5 seconds on my mouse action even on demo hero mode with micro freezes)
  2. Launch task manager and dota 2 eat 3.5 GB of RAM
  3. Play some matches. With every match dota eat more ram. When match is ended match results table loads very slow.
  4. Switch to task manager and dota 2 eat almost all 8 GB of RAM
  5. Play another some matches and pc can hangs, or just launch program (opera or another browser) and pc crash
  6. Hard reset

koreanfan avatar Mar 28 '21 22:03 koreanfan

I would like to report similar crashes. Takes a couple games but ultimately my system will hang and loses responseness.

https://gist.github.com/zelmor/95e99e7bed8fec0c3dfd65dd73c41da6

zelmor avatar Aug 31 '21 21:08 zelmor

me too. its sad that valve is planing on removing opengl and make vulkan the default api on Linux. Opengl is the only driver api that is stable for me, on arch lInux

ladsoftware avatar Sep 18 '21 12:09 ladsoftware

I have vulkan memory leak, when dota eat all my ram, my pc crash, only hard reset. Tested on all linux distros and got vulkan memory leak

koreanfan avatar Dec 16 '21 10:12 koreanfan

Same on Manjaro unstable, steam native. Right after opening the game it consumes 4GB of memory, and it eats memory over time until it often crashes. Using opengl, only 2GB is consumed and there's no memory leak over time. I'm on wayland (hence using xwayland for Dota).

nortexoid avatar Aug 28 '22 21:08 nortexoid

When valve fix this issue?

koreanfan avatar Nov 12 '22 08:11 koreanfan

When valve fix this issue?

Linux issues are super hard to debug (so many variables) and I doubt Valve cares enough to try to chase this issue down

steakscience avatar Nov 12 '22 09:11 steakscience

I got this issue since 2017. Is 5 years not enough to fix this?

koreanfan avatar Nov 26 '22 02:11 koreanfan

I had to upgrade my system from 16GB ram to 32GB to be able to have anything other than discord running in the background. I have to restart Dota 2 after a couple of games, because it will bloat up into the 9+ GB of memory used. It didn't use to be like this. I am on Wayland, if that makes any difference.

You can not deprecate OpenGL until this issue is remedied.

imavlr avatar Dec 09 '22 21:12 imavlr

My workaround is to start steam in the terminal with the following command: systemd-run --scope -p MemoryLimit=20G steam (Adjust the limit of memory to your needs)

The problem with this is, that using the terminal to lunch steam is not very user friendly.

aronwolf90 avatar Feb 27 '23 22:02 aronwolf90

My workaround is to start steam in the terminal with the following command: systemd-run --scope -p MemoryLimit=20G steam (Adjust the limit of memory to your needs)

The problem with this is, that using the terminal to lunch steam is not very user friendly.

didn't work, memory leak detected anyway

koreanfan avatar Mar 04 '23 03:03 koreanfan