High RAM consumption when playing DX12 games - NVIDIA 470.57.02 drivers

The latest stable NVIDIA 470.57.02 drivers are causing high RAM consumption leading to system freeze when playing DX12 games through steam proton.

DX12 games like Horizon : Zero Dawn and Forza Horizon 4 all crash at the loading screen and freeze the system since the NV process eats up all the available RAM and SWAP. The 470.42 beta drivers also had the same issue, thought it could be fixed in the next stable 470.52, but same issue is present here as well.

The RAM consumption is proper when rolling back to the previous stable 465 drivers.

System Configuration:
System
Kernel: 5.13.4-1-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
parameters: BOOT_IMAGE=/vmlinuz-5.13-x86_64
root=UUID=1c4f5df2-de2b-41c6-8260-00f692e3b4e6 rw quiet splash apparmor=1
security=apparmor resume=UUID=45c1442d-0245-4350-9f68-c321b26edde9
udev.log_priority=3
Desktop: GNOME 40.3 tk: GTK 3.24.30 info: plank wm: gnome-shell dm: GDM 40.0
Distro: Manjaro Linux base: Arch Linux
Graphics:
Device-1: NVIDIA GP106 [GeForce GTX 1060 3GB] vendor: Micro-Star MSI
driver: nvidia v: 470.57.02 alternate: nouveau,nvidia_drm bus-ID: 01:00.0
chip-ID: 10de:1c02 class-ID: 0300
Display: x11 server: X.Org 1.20.11 compositor: gnome-shell driver:
loaded: nvidia display-ID: :1 screens: 1
Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x286mm (20.0x11.3")
s-diag: 583mm (23")
Monitor-1: HDMI-0 res: 1920x1080 hz: 75 dpi: 102
size: 480x270mm (18.9x10.6") diag: 551mm (21.7")
OpenGL: renderer: NVIDIA GeForce GTX 1060 3GB/PCIe/SSE2
v: 4.6.0 NVIDIA 470.57.02 direct render: Yes

1 Like

This is occurring for me as well with Cyberpunk 2077. Noticing that when I increased my RAM from 16GB to 32GB the RAM usage was still pretty high. Using roughly 20.3GB of Memory and 1.8GB of Swap. As the game was closed and reopened the RAM kept getting higher until the game couldnt start from a save anymore maxing out 32GB. The following are the specs of the system that I was running this on across two systems I will update the versions when I am back on my home systems as these values are from memory:

System 1
Kernel: 5.10
Desktop: GNOME 40.3
Distro: Manjaro Linux base: Arch Linux
Graphics: Nvidia - 470.57.02-1 RTX 3070 vendor: ASUS TUF
RAM: 32GB
Intel i7 8700K

System 2
Kernel: 5.11
Desktop: GNOME 3.38 - POP Cosmic
Distro: Pop! OS 21.04 Linux base: Ubuntu 21.04
Graphics: Nvidia - 470.57.02-1 RTX 3070 vendor: ASUS TUF
RAM: 32GB
Intel i7 8700K

I’m also having this problem with Horizon: Zero Dawn, played on Steam with Proton Experimental. The game boots fine but crashes about 80% of the way through the loading screen. After increasing my swap file to 8 GB (I have 16GB RAM) I was able to load a game and play for a few minutes before crashing again.

My system:
OS: EndeavourOS Linux x86_64
Kernel: 5.13.4-arch1-1
WM: awesome
CPU: AMD Ryzen 5 3600 (12) @ 3.600GHz
GPU: NVIDIA GeForce RTX 2060 SUPER
Memory: 15922MiB

After downgrading the driver to 465.31, I was able to play the game with maximum quality settings.

Since I have only 8GB of RAM it simply crashes during save load.

Operating System: Manjaro Linux
KDE Plasma Version: 5.22.4
KDE Frameworks Version: 5.84.0
Qt Version: 5.15.2
Kernel Version: 5.13.6-1-MANJARO (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-6700HQ CPU @ 2.60GHz
Memory: 7.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 530
Nvidia GM204M [GeForce GTX 970M]
Drivers 470.57.02

On proton.db site most reports showing the same issue are on Arch based systems, which mandatory have the latest drivers:

https://www.protondb.com/app/1091500

I guess it will be pretty painful to see this issue on Steam Deck release date, where a perfectly playable and stable game is not playable anymore. We can’t roll back to 465 drivers, or at least not without downgrading all system components and breaking a lot of apps in the process, so we are stuck with the newest line.

It is not Arch specific. I have the same issue on Mint with 470 driver. Issue has been reported to Nvidia when 470 was in beta phase and they are aware of it.

I can repro this issue with Cyberpunk 2077 on my system with 16 gb ram. It fills my entire system memory in a couple of minutes.

Also ; Steamdeck will be using AMD with Radv. No such issue exists on there. So i don’t get how Steamdeck is relevant here.

I am running into the same issue on the 470.57.02 drivers. I am using an RTX 3070 on Linux Mint 20.2 and the 5.13 kernel. Resident Evil Village keeps using more and more memory until it eventually crashes.

same here with an RTX 3060 on 470.57.02 with kernel 5.12.14

Same issue on 470.57.02. Running Solus and having this issue with CP2077.

I am running into the same issue on the 470.57.02 drivers. I am using a RTX 2060 on Manjaro and I’m using the 5.13 kernel. This issue is happening on any dx12 game I try to run. Assassins Creed Valhalla, Cyberpunk 2077. On the loading screen, the game will take up 12gb of ram then when I start to try and play the game it will use 16gb of ram and then it crashes

So why is there no response to this, we literally can not play any games that use dx12 (vkd3d) because of the memory leak. This should be priority

This is also still happening with the latest 470 driver. (470.63.01 )

Hi All,
This is to keep everyone updated that we are aware of the issue and working on it.
Bug 3341865 has been filed internally for tracking purpose.
I will keep everyone updated with the progress.

2 Likes

Thanks @amrits. Please keep us posted on this. We have been facing this issue for almost a month now

@amrits any news about the bug?

This bug is being actively worked upon and we have likely root caused the issue.
Fix will be available in future driver release and will update once released.

3 Likes

@amrits Will the vulkan beta driver (Vulkan Driver Support | NVIDIA Developer) also get the fix - because it’s also affected?