Perfomance drop when game is running and resume from supend

tech support

Hi, I recently noticed that if I run a game and while it is running I suspend the pc, upon resuming I have a very high fps drop. It seems that the game is offloaded from vram to ram and never comes back (vram usage very low and ram usage much higher). I have tried several games in Windows and do not have the same problem.

Is this normal? If no, is there a solution for this problem? If yes, why does it happen?

This is my system information from neofetch:

             .',;::::;,'.                lorenzo@ryzen-di-lorenzo 
         .';:cccccccccccc:;,.            ------------------------ 
      .;cccccccccccccccccccccc;.         OS: Fedora release 37 (Thirty Seven 
    .:cccccccccccccccccccccccccc:.       Host: MS-7B79 4.0 
  .;ccccccccccccc;.:dddl:.;ccccccc;.     Kernel: 6.2.7-200.fc37.x86_64 
 .:ccccccccccccc;OWMKOOXMWd;ccccccc:.    Uptime: 1 hour, 38 mins 
.:ccccccccccccc;KMMc;cc;xMMc:ccccccc:.   Packages: 2489 (rpm), 80 (flatpak) 
,cccccccccccccc;MMM.;cc;;WW::cccccccc,   Shell: bash 5.2.15 
:cccccccccccccc;MMM.;cccccccccccccccc:   Resolution: 2560x1080 
:ccccccc;oxOOOo;MMM0OOk.;cccccccccccc:   DE: GNOME 43.3 
cccccc:0MMKxdd:;MMMkddc.;cccccccccccc;   WM: Mutter 
ccccc:XM0';cccc;MMM.;cccccccccccccccc'   WM Theme: Adwaita 
ccccc;MMo;ccccc;MMW.;ccccccccccccccc;    Theme: adw-gtk3-dark [GTK2/3] 
ccccc;0MNc.ccc.xMMd:ccccccccccccccc;     Icons: Papirus-black [GTK2/3] 
cccccc;dNMWXXXWM0::cccccccccccccc:,      Terminal: BlackBox 
cccccccc;.:odl:.;cccccccccccccc:,.       CPU: AMD Ryzen 5 3600 (12) @ 4.300G 
:cccccccccccccccccccccccccccc:'.         GPU: AMD ATI Radeon RX 6700/6700 XT 
.:cccccccccccccccccccccc:;,..            Memory: 8812MiB / 32006MiB 
  '::cccccccccccccc::;,.

I use gnome in wayland but the problem persist in xorg.

I also include my grub entry from grubby:

index=0
kernel="/boot/vmlinuz-6.2.7-200.fc37.x86_64"
args="ro rootflags=subvol=root rhgb quiet amdgpu.ppfeaturemask=0xffffffff"
root="UUID=1febaed8-39c2-4f65-a0c1-abe91909f8cb"
initrd="/boot/initramfs-6.2.7-200.fc37.x86_64.img"
title="Fedora Linux (6.2.7-200.fc37.x86_64) 37 (Workstation Edition)"
id="4fe2452d18d94825a0f2803758fe1091-6.2.7-200.fc37.x86_64"
index=1
kernel="/boot/vmlinuz-6.1.18-200.fc37.x86_64"
args="ro rootflags=subvol=root rhgb quiet amdgpu.ppfeaturemask=0xffffffff"
root="UUID=1febaed8-39c2-4f65-a0c1-abe91909f8cb"
initrd="/boot/initramfs-6.1.18-200.fc37.x86_64.img"
title="Fedora Linux (6.1.18-200.fc37.x86_64) 37 (Workstation Edition)"
id="4fe2452d18d94825a0f2803758fe1091-6.1.18-200.fc37.x86_64"
index=2
kernel="/boot/vmlinuz-6.1.15-200.fc37.x86_64"
args="ro rootflags=subvol=root rhgb quiet amdgpu.ppfeaturemask=0xffffffff"
root="UUID=1febaed8-39c2-4f65-a0c1-abe91909f8cb"
initrd="/boot/initramfs-6.1.15-200.fc37.x86_64.img"
title="Fedora Linux (6.1.15-200.fc37.x86_64) 37 (Workstation Edition)"
id="4fe2452d18d94825a0f2803758fe1091-6.1.15-200.fc37.x86_64"
index=3
kernel="/boot/vmlinuz-0-rescue-4fe2452d18d94825a0f2803758fe1091"
args="ro rootflags=subvol=root rhgb quiet amdgpu.ppfeaturemask=0xffffffff"
root="UUID=1febaed8-39c2-4f65-a0c1-abe91909f8cb"
initrd="/boot/initramfs-0-rescue-4fe2452d18d94825a0f2803758fe1091.img"
title="Fedora Linux (0-rescue-4fe2452d18d94825a0f2803758fe1091) 37 (Workstation Edition)"
id="4fe2452d18d94825a0f2803758fe1091-0-rescue"

Also my mesa drivers is at version 22.3.7

​

Update 1: I may have found the problem, for some reason the game data after suspending remains in the GTT state and does not return to vram. If I set a boot parameter option related to GTT size the game runs again as expected and the data is correctly put back to vram. The problem is that some games no longer start, so a major problem.

This is the boot parameter used:

amdgpu.gttsize=100

​

Update 2: I tried to increase the gttsize to 1 GB and had the same crashes in several games, but when the parameter is set to a stable value the data does not return to vram and stays in GTT, so the problem persists.

So does anyone know if there is a parameter to force the data back into vram when it is free?

Posted Mar 22, 2023, 7:43 PM UTC · edited

48
Loading comments…