Performance drop after suspend/sleep with GNOME 41

Hello, ever since updating to GNOME 41, I’ve been having this issue with my PC performance dropping significantly after waking it up from suspend/sleep. GNOME Shell animations stutter and lag horribly, games become unplayable, Elasticsearch reindexing takes forever, etc. I don’t know where to start with diagnostics, as there are no obvious errors in the journal. I don’t know with which project should I file an issue either, so I’d like to ask for your help with this.

Happened on 5.14 too, I am now on 5.15, nothing changed.

Could it be the new power-profiles-daemon thing? I’ve read CPU frequency scaling - ArchWiki but it didn’t really help. Also, I don’t think it works at all on my Ryzen-based system:

powerprofilesctl

* balanced:
    Driver:     placeholder

  power-saver:
    Driver:     placeholder

inxi -Fazy

System:
  Kernel: 5.15.2-2-MANJARO x86_64 bits: 64 compiler: gcc v: 11.1.0
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.15-x86_64
  root=UUID=3729abd2-d97c-4f41-a01b-85a2c4baf845 rw
  cryptdevice=UUID=5a90b210-fccf-4ab5-bcfe-26ae9d2e353d:luks-5a90b210-fccf-4ab5-bcfe-26ae9d2e353d
  root=/dev/mapper/luks-5a90b210-fccf-4ab5-bcfe-26ae9d2e353d
  resume=/dev/mapper/luks-5a90b210-fccf-4ab5-bcfe-26ae9d2e353d apparmor=1
  security=apparmor udev.log_priority=3
  Desktop: GNOME 41.1 tk: GTK 3.24.30 wm: gnome-shell dm: GDM 41.0
  Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Desktop Mobo: Micro-Star model: B450 TOMAHAWK (MS-7C02) v: 1.0
  serial: <superuser required> UEFI-[Legacy]: American Megatrends v: 1.D0
  date: 11/07/2019
CPU:
  Info: 6-Core model: AMD Ryzen 5 3600 bits: 64 type: MT MCP arch: Zen 2
  family: 17 (23) model-id: 71 (113) stepping: 0 microcode: 8701013 cache:
  L1: 384 KiB L2: 3 MiB L3: 32 MiB
  flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
  bogomips: 86425
  Speed: 2717 MHz min/max: 2200/3600 MHz boost: enabled Core speeds (MHz):
  1: 3571 2: 2782 3: 2067 4: 2092 5: 2061 6: 2738 7: 2124 8: 2097 9: 3747
  10: 2234 11: 2056 12: 3205
  Vulnerabilities: Type: itlb_multihit status: Not affected
  Type: l1tf status: Not affected
  Type: mds status: Not affected
  Type: meltdown status: Not affected
  Type: spec_store_bypass
  mitigation: Speculative Store Bypass disabled via prctl and seccomp
  Type: spectre_v1
  mitigation: usercopy/swapgs barriers and __user pointer sanitization
  Type: spectre_v2 mitigation: Full AMD retpoline, IBPB: conditional, STIBP:
  conditional, RSB filling
  Type: srbds status: Not affected
  Type: tsx_async_abort status: Not affected
Graphics:
  Device-1: AMD Vega 10 XL/XT [Radeon RX Vega 56/64] vendor: Sapphire Limited
  driver: amdgpu v: kernel bus-ID: 28:00.0 chip-ID: 1002:687f class-ID: 0300
  Device-2: Sunplus Innovation Sandberg USB Webcam Pro type: USB
  driver: snd-usb-audio,uvcvideo bus-ID: 3-1:2 chip-ID: 1bcf:5034
  class-ID: 0102 serial: <filter>
  Display: wayland server: X.org 1.21.1.1 compositor: gnome-shell driver:
  loaded: amdgpu note: n/a (using device driver) - try sudo/root display-ID: 0
  resolution: <missing: xdpyinfo>
  OpenGL:
  renderer: AMD Radeon RX Vega (VEGA10 DRM 3.42.0 5.15.2-2-MANJARO LLVM 13.0.0)
  v: 4.6 Mesa 21.2.5 direct render: Yes
Audio:
  Device-1: AMD Vega 10 HDMI Audio [Radeon Vega 56/64] driver: snd_hda_intel
  v: kernel bus-ID: 28:00.1 chip-ID: 1002:aaf8 class-ID: 0403
  Device-2: AMD Starship/Matisse HD Audio vendor: Micro-Star MSI
  driver: snd_hda_intel v: kernel bus-ID: 2a:00.4 chip-ID: 1022:1487
  class-ID: 0403
  Device-3: Elgato Systems Elgato Wave:1 type: USB driver: snd-usb-audio
  bus-ID: 1-8:2 chip-ID: 0fd9:006e class-ID: fe01 serial: <filter>
  Device-4: Sunplus Innovation Sandberg USB Webcam Pro type: USB
  driver: snd-usb-audio,uvcvideo bus-ID: 3-1:2 chip-ID: 1bcf:5034
  class-ID: 0102 serial: <filter>
  Sound Server-1: ALSA v: k5.15.2-2-MANJARO running: yes
  Sound Server-2: JACK v: 1.9.19 running: no
  Sound Server-3: PulseAudio v: 15.0 running: yes
  Sound Server-4: PipeWire v: 0.3.40 running: yes
Network:
  Device-1: Intel Wireless-AC 9260 driver: iwlwifi v: kernel bus-ID: 21:00.0
  chip-ID: 8086:2526 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
  vendor: Micro-Star MSI driver: r8168 v: 8.049.02-NAPI modules: r8169
  port: f000 bus-ID: 22:00.0 chip-ID: 10ec:8168 class-ID: 0200
  IF: enp34s0 state: up speed: 100 Mbps duplex: full mac: <filter>
  IF-ID-1: docker0 state: down mac: <filter>
Bluetooth:
  Device-1: Intel Wireless-AC 9260 Bluetooth Adapter type: USB driver: btusb
  v: 0.8 bus-ID: 1-10:4 chip-ID: 8087:0025 class-ID: e001
  Report: rfkill ID: hci0 rfk-id: 0 state: up address: see --recommends
Drives:
  Local Storage: total: 2.96 TiB used: 1.85 TiB (62.6%)
  SMART Message: Required tool smartctl not installed. Check --recommends
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: SSD 970 EVO 250GB
  size: 232.89 GiB block-size: physical: 512 B logical: 512 B speed: 31.6 Gb/s
  lanes: 4 type: SSD serial: <filter> rev: 2B2QEXE7 temp: 42.9 C scheme: MBR
  ID-2: /dev/sda maj-min: 8:0 vendor: Samsung model: SSD 860 EVO 1TB
  size: 931.51 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s
  type: SSD serial: <filter> rev: 4B6Q
  ID-3: /dev/sdb maj-min: 8:16 vendor: Seagate model: ST2000DM006-2DM164
  size: 1.82 TiB block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s
  type: HDD rpm: 7200 serial: <filter> rev: CC26 scheme: MBR
Partition:
  ID-1: / raw-size: 224.08 GiB size: 219.56 GiB (97.98%)
  used: 96.04 GiB (43.7%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0
  mapped: luks-5a90b210-fccf-4ab5-bcfe-26ae9d2e353d
Swap:
  Kernel: swappiness: 60 (default) cache-pressure: 100 (default)
  ID-1: swap-1 type: partition size: 8.8 GiB used: 0 KiB (0.0%) priority: -2
  dev: /dev/dm-1 maj-min: 254:1
  mapped: luks-09e8e7e4-cc22-4ec5-a658-0d392dd39c83
Sensors:
  System Temperatures: cpu: 37.0 C mobo: 31.0 C gpu: amdgpu temp: 44.0 C
  mem: 46.0 C
  Fan Speeds (RPM): fan-1: 0 fan-2: 754 fan-3: 573 fan-4: 0 fan-5: 568
  fan-6: 0 gpu: amdgpu fan: 1238
Info:
  Processes: 382 Uptime: 2h 3m wakeups: 0 Memory: 31.36 GiB
  used: 6.03 GiB (19.2%) Init: systemd v: 249 tool: systemctl Compilers:
  gcc: 11.1.0 Packages: 1334 pacman: 1330 lib: 387 flatpak: 4 Shell: Zsh
  v: 5.8 running-in: gnome-terminal inxi: 3.3.09

Should I just monitor the CPU frequency before and after suspend to confirm? Anyway, any help is appreciated, thanks!

Hi @Fofry ,

Please do, take a reading with top before you suspend, as well as after. Using sudo might be a good idea. Unsure of this, but it might.

sudo top

The more information you provide, the quicker and easier it would be to diagnose your problem.

Yes.

I don’t think so, either. I also have a Ryzen CPU.

Disable and mask the service:

systemctl disable --now power-profiles-daemon
systemctl mask power-profiles-daemon
1 Like

Thank you @Yochanan, disabling and masking the service seems to have solved it. No more performance drops on wake-up.

Should I create an issue (Bastien Nocera / power-profiles-daemon · GitLab)? To be honest, I find it really weird that a major DE includes a piece of software that not only doesn’t work on multiple Ryzen CPUs, but actually causes a new issue instead of solving one.

Edit: Disabling & masking power-profiles-daemon does not help. On subsequent suspend, the performance drop is still present. It’s quite noticeable when hovering over icons provided by AppIndicator, mouse cursor stutters like crazy. What should I check next?

I also encountered the same problem, but have not found the reason