I suspect amdgpu driver in memory leak
Brief summary of the problem:
After 3 hour game session in the game "Tom Clancy’s The Division® 2" and closing ALL applications htop
and free
utility reported that 40Gb of memory is used!
ps_mem is tool strongly disagree with this, and says that the processes in total took 1Gb.
ps_mem
Private + Shared = RAM used Program
4.0 KiB + 0.5 KiB = 4.5 KiB catatonit
4.0 KiB + 11.5 KiB = 15.5 KiB p11-kit-server
4.0 KiB + 12.5 KiB = 16.5 KiB fusermount3
4.0 KiB + 43.5 KiB = 47.5 KiB gnome-session-ctl
4.0 KiB + 48.5 KiB = 52.5 KiB gdm-wayland-session
4.0 KiB + 53.5 KiB = 57.5 KiB ssh-agent
8.0 KiB + 50.5 KiB = 58.5 KiB obexd
24.0 KiB + 53.5 KiB = 77.5 KiB switcheroo-control
60.0 KiB + 26.5 KiB = 86.5 KiB gssproxy
4.0 KiB + 83.5 KiB = 87.5 KiB gdm
4.0 KiB + 88.5 KiB = 92.5 KiB ibus-dconf
80.0 KiB + 13.5 KiB = 93.5 KiB atd
68.0 KiB + 50.5 KiB = 118.5 KiB alsactl
88.0 KiB + 44.5 KiB = 132.5 KiB wpa_supplicant
4.0 KiB + 140.5 KiB = 144.5 KiB gdm-session-worker
56.0 KiB + 95.5 KiB = 151.5 KiB openvpn3-service-netcfg
60.0 KiB + 109.5 KiB = 169.5 KiB openvpn3-service-sessionmgr
56.0 KiB + 120.5 KiB = 176.5 KiB openvpn3-service-logger
132.0 KiB + 47.5 KiB = 179.5 KiB xdg-permission-store
4.0 KiB + 195.5 KiB = 199.5 KiB colord
176.0 KiB + 32.5 KiB = 208.5 KiB rtkit-daemon
176.0 KiB + 47.5 KiB = 223.5 KiB sftp-server
4.0 KiB + 235.5 KiB = 239.5 KiB abrt-applet
148.0 KiB + 101.5 KiB = 249.5 KiB gvfsd-dnssd
4.0 KiB + 277.5 KiB = 281.5 KiB gsd-printer
92.0 KiB + 218.5 KiB = 310.5 KiB systemd-userdbd
364.0 KiB + 37.5 KiB = 401.5 KiB smartd
364.0 KiB + 55.5 KiB = 419.5 KiB gvfsd-fuse
384.0 KiB + 65.5 KiB = 449.5 KiB chronyd
400.0 KiB + 53.5 KiB = 453.5 KiB flatpak-session-helper
432.0 KiB + 56.5 KiB = 488.5 KiB gsd-a11y-settings
420.0 KiB + 72.5 KiB = 492.5 KiB at-spi-bus-launcher
416.0 KiB + 78.5 KiB = 494.5 KiB at-spi2-registryd
376.0 KiB + 137.5 KiB = 513.5 KiB goa-identity-service
460.0 KiB + 61.5 KiB = 521.5 KiB gsd-usb-protection
472.0 KiB + 57.5 KiB = 529.5 KiB gsd-rfkill
468.0 KiB + 64.5 KiB = 532.5 KiB power-profiles-daemon
432.0 KiB + 104.5 KiB = 536.5 KiB auditd
492.0 KiB + 52.5 KiB = 544.5 KiB xdg-document-portal
488.0 KiB + 57.5 KiB = 545.5 KiB gvfs-gphoto2-volume-monitor
428.0 KiB + 130.5 KiB = 558.5 KiB gsd-datetime
468.0 KiB + 94.5 KiB = 562.5 KiB gsd-sound
536.0 KiB + 55.5 KiB = 591.5 KiB gvfs-mtp-volume-monitor
528.0 KiB + 71.5 KiB = 599.5 KiB gvfs-afc-volume-monitor
568.0 KiB + 48.5 KiB = 616.5 KiB low-memory-monitor
4.0 KiB + 626.5 KiB = 630.5 KiB evolution-addressbook-factory
544.0 KiB + 90.5 KiB = 634.5 KiB ibus-portal
576.0 KiB + 72.5 KiB = 648.5 KiB pcscd
536.0 KiB + 134.5 KiB = 670.5 KiB gvfsd
444.0 KiB + 239.0 KiB = 683.0 KiB avahi-daemon (2)
376.0 KiB + 325.5 KiB = 701.5 KiB systemd-machined
652.0 KiB + 61.5 KiB = 713.5 KiB accounts-daemon
612.0 KiB + 102.5 KiB = 714.5 KiB ibus-engine-simple
120.0 KiB + 599.5 KiB = 719.5 KiB firewalld
708.0 KiB + 51.5 KiB = 759.5 KiB gvfsd-metadata
668.0 KiB + 94.5 KiB = 762.5 KiB gvfs-goa-volume-monitor
628.0 KiB + 146.5 KiB = 774.5 KiB gvfsd-network
688.0 KiB + 91.5 KiB = 779.5 KiB gsd-disk-utility-notify
728.0 KiB + 51.5 KiB = 779.5 KiB gsd-screensaver-proxy
604.0 KiB + 194.5 KiB = 798.5 KiB ModemManager
400.0 KiB + 415.5 KiB = 815.5 KiB dbus-broker-launch (3)
668.0 KiB + 166.5 KiB = 834.5 KiB tpm2-abrmd
216.0 KiB + 651.5 KiB = 867.5 KiB sshd (5)
816.0 KiB + 62.5 KiB = 878.5 KiB upowerd
720.0 KiB + 177.5 KiB = 897.5 KiB abrt-dbus
644.0 KiB + 265.5 KiB = 909.5 KiB gsd-print-notifications
868.0 KiB + 69.5 KiB = 937.5 KiB gsd-housekeeping
904.0 KiB + 39.5 KiB = 943.5 KiB bluetoothd
844.0 KiB + 135.5 KiB = 979.5 KiB gvfsd-trash
1.0 MiB + 47.5 KiB = 1.0 MiB dconf-service
916.0 KiB + 135.5 KiB = 1.0 MiB openvpn3-service-client
768.0 KiB + 328.5 KiB = 1.1 MiB geoclue
840.0 KiB + 315.5 KiB = 1.1 MiB gsd-sharing
924.0 KiB + 232.5 KiB = 1.1 MiB gsd-smartcard
972.0 KiB + 249.5 KiB = 1.2 MiB cupsd
920.0 KiB + 310.5 KiB = 1.2 MiB gnome-shell-calendar-server
928.0 KiB + 326.0 KiB = 1.2 MiB uresourced (2)
1.1 MiB + 152.5 KiB = 1.3 MiB gvfs-udisks2-volume-monitor
940.0 KiB + 397.5 KiB = 1.3 MiB gsd-wacom
640.0 KiB + 801.5 KiB = 1.4 MiB abrt-dump-journal-xorg
468.0 KiB + 983.5 KiB = 1.4 MiB python3.11
1.1 MiB + 403.5 KiB = 1.5 MiB gsd-keyboard
1.1 MiB + 446.5 KiB = 1.5 MiB gsd-color
1.1 MiB + 510.5 KiB = 1.6 MiB ibus-x11
1.4 MiB + 246.5 KiB = 1.6 MiB abrtd
1.4 MiB + 340.5 KiB = 1.7 MiB systemd-udevd
1.3 MiB + 468.5 KiB = 1.8 MiB ibus-extension-gtk3
1.6 MiB + 388.5 KiB = 1.9 MiB systemd-resolved
1.7 MiB + 280.5 KiB = 1.9 MiB xdg-desktop-portal
1.5 MiB + 507.0 KiB = 2.0 MiB gnome-session-binary (2)
1.3 MiB + 863.5 KiB = 2.1 MiB gsd-xsettings
2.0 MiB + 133.5 KiB = 2.1 MiB gnome-keyring-daemon
1.2 MiB + 1.0 MiB = 2.2 MiB evolution-alarm-notify
1.8 MiB + 443.5 KiB = 2.2 MiB xdg-desktop-portal-gtk
1.8 MiB + 449.5 KiB = 2.2 MiB gsd-power
1.3 MiB + 1.0 MiB = 2.3 MiB gnome-calendar
2.0 MiB + 350.5 KiB = 2.3 MiB systemd-logind
2.3 MiB + 96.5 KiB = 2.4 MiB ibus-daemon
1.7 MiB + 728.5 KiB = 2.4 MiB evolution-source-registry
2.5 MiB + 184.5 KiB = 2.6 MiB udisksd
2.1 MiB + 641.5 KiB = 2.7 MiB gsd-media-keys
2.7 MiB + 109.5 KiB = 2.8 MiB polkitd
2.8 MiB + 105.5 KiB = 2.9 MiB gvfsd-recent
2.6 MiB + 716.5 KiB = 3.3 MiB systemd-userwork (3)
3.0 MiB + 449.5 KiB = 3.5 MiB su
3.1 MiB + 504.5 KiB = 3.6 MiB rygel
2.2 MiB + 1.4 MiB = 3.6 MiB gitstatusd-linux-x86_64 (4)
3.8 MiB + 298.5 KiB = 4.1 MiB NetworkManager
3.8 MiB + 1.4 MiB = 5.2 MiB abrt-dump-journal-core
2.8 MiB + 2.8 MiB = 5.5 MiB gjs-console (2)
5.1 MiB + 447.5 KiB = 5.6 MiB wireplumber
5.9 MiB + 242.5 KiB = 6.1 MiB dbus-broker (3)
8.7 MiB + 38.5 KiB = 8.8 MiB htop
9.4 MiB + 361.5 KiB = 9.7 MiB pipewire
11.1 MiB + 628.5 KiB = 11.7 MiB goa-daemon
8.1 MiB + 3.9 MiB = 12.0 MiB systemd (3)
14.2 MiB + 674.5 KiB = 14.8 MiB evolution-calendar-factory
9.1 MiB + 9.3 MiB = 18.3 MiB zsh (16)
20.7 MiB + 105.5 KiB = 20.8 MiB sssd_kcm
23.5 MiB + 1.9 MiB = 25.4 MiB fwupd
20.3 MiB + 6.1 MiB = 26.3 MiB systemd-journald
35.7 MiB + 2.6 MiB = 38.3 MiB gnome-software
39.9 MiB + 468.5 KiB = 40.3 MiB tracker-miner-fs-3
44.5 MiB + 297.5 KiB = 44.8 MiB pipewire-pulse
36.7 MiB + 9.1 MiB = 45.8 MiB Xwayland
33.2 MiB + 13.1 MiB = 46.3 MiB gnome-terminal-server
79.9 MiB + 10.4 MiB = 90.3 MiB xdg-desktop-portal-gnome
124.0 MiB + 16.8 MiB = 140.8 MiB gnome-shell
274.5 MiB + 2.2 MiB = 276.7 MiB packagekitd
---------------------------------
1.0 GiB
=================================
And this is more like the truth. It means memory is not allocated from userspace and therefore I not see the true culprit. Since my typical behavior differs only by playing in game, I dare that the video driver is to blame. My knowledge is not enough to display information about how much memory the drivers allocated to themselves.
Hardware description:
- CPU: AMD Ryzen 3950X
- GPU: 0b:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 31 [Radeon RX 7900 XT/7900 XTX] [1002:744c] (rev c8)
- System Memory: 64Gb
- Display(s): Philips 436M6VBPAB
- Type of Display Connection: DisplayPort
System information:
- Distro name and Version: Fedora Rawhide
- Kernel version: 6.2-rc4
- Custom kernel: commit c1649ec55708
- Mesa commit: mesa/mesa@4c0a54fc
How to reproduce the issue:
Play in the game "Tom Clancy’s The Division® 2" 3-4 hours with DX12 render.
For it needed steam client, bleeding edge proton experimental and the game "Tom Clancy’s The Division® 2".
Log files (for system lockups / game freezes / crashes)
- Dmesg log dmesg.txt
- meminfo meminfo.txt
- /sys/kernel/debug/dri/1/amdgpu_vm_info amdgpu_vm_info.txt
- ps_mem ps_mem.txt