protonscr

DXVK never frees allocated RAM

dxvkclosed
doitsujin/dxvk#1235 · opened 2019-10-31 by Haxk20 · updated 2019-12-11 · 7 comments · github
HHaxk20 2019-10-31 github

Software information

Any game i tested so far.

System information

  • GPU: AMD RX560X
  • Driver: RADV + ACO
  • Wine version: Proton 4.11-7
  • DXVK version: Whats in Proton 4.11-7

The system RAM gets eaten away after a long gaming session (Around 5 hours or so) and it takes 97% of my RAM by the time the game crashes (I have 16Gb of RAM) and even after the game crashes the RAM stayes allocated.

Yes i know DXVK shoudlnt clear allocated memory while the game is running due to VRAM but i mean what harm would there be to clear the allocated RAM when DXVK is about to exit ?
This makes some weird stuff happen as when it crashes and i launch it again kernel should by design free the memory and the game should launch which isnt the case here and the game just crashes when i try to launch it or when it launches by some miracle it isnt running at 50fps but at 9fps.
This basically means long gaming sessions that are bigger then 5 hours are basically impossible.
If it matters kernel is Linux-next-20191031

Ddoitsujin maintainer 2019-10-31 github

and even after the game crashes the RAM stayes allocated.

This is a kernel bug and cannot be fixed in DXVK. Also happens with other applications such as RenderDoc.

HHaxk20 2019-10-31 github

and even after the game crashes the RAM stayes allocated.

This is a kernel bug and cannot be fixed in DXVK. Also happens with other applications such as RenderDoc.

Ahhh good to know. Do you by any chance know if it was reported already ? I can report it if it wasnt.

Ddoitsujin maintainer 2019-10-31 github

I don't know if there's a report already, you might need to check freedesktop bugzilla.

In any case, I haven't reported this either yet because there's no reliable way for me to reproduce the problem; it usually happens for me after a Vulkan command submission fails due to the lack of memory and RenderDoc subsequently crashes. If you have something more reliable, feel free to file a report.

Anyway, it's weird that you're running out of memory at all; most games usually have an upper bound on the amount of VRAM they use and don't keep accumulating more and more over time.

TTele42 2019-11-04 github

Possibly related to https://gitlab.freedesktop.org/mesa/mesa/issues/1426 (medium low confidence).

It may be worth test reverting the bisected commit.

Ddoitsujin maintainer 2019-11-04 github

Is it just me or is the freedesktop gitlab dead right now?

Hh3fang 2019-11-04 github

Just you.

HHaxk20 2019-11-04 github

I have found that https://gitlab.freedesktop.org/mesa/mesa/issues/1920
Is probably what i suffer from too.

Proton versions