System is very laggy and unresponsive

Hello,
I did fresh install of Manjaro KDE 20.2. System is very unresponsive. Everything opening so slow and freeze. Even moving cursor on context menu is laggy. System is unusable. I don’t even know where to start debugging this. Can anyone help me make my system usable?

inxi -Fazy

System:
  Kernel: 5.9.11-3-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.9-x86_64 
  root=UUID=708b86af-fc3c-4ff6-9307-3d9f20ca990b rw quiet apparmor=1 
  security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 wm: kwin_x11 dm: SDDM 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: LENOVO product: 82B5 v: Lenovo Legion 5 15ARH05 
  serial: <filter> Chassis: type: 10 v: Lenovo Legion 5 15ARH05 
  serial: <filter> 
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <filter> UEFI: LENOVO 
  v: EUCN28WW date: 10/20/2020 
Battery:
  ID-1: BAT0 charge: 56.5 Wh condition: 60.7/60.0 Wh (101%) volts: 17.6/15.4 
  model: SMP L19M4PC0 type: Li-poly serial: <filter> status: Charging 
  cycles: 65 
CPU:
  Info: 6-Core model: AMD Ryzen 5 4600H with Radeon Graphics bits: 64 
  type: MT MCP arch: Zen family: 17 (23) model-id: 60 (96) stepping: 1 
  microcode: 8600103 L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
  bogomips: 71895 
  Speed: 1397 MHz min/max: 1400/3000 MHz boost: enabled Core speeds (MHz): 
  1: 1397 2: 1397 3: 1397 4: 1396 5: 1396 6: 1396 7: 1397 8: 1397 9: 1397 
  10: 1396 11: 1397 12: 1397 
  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, IBRS_FW, 
  STIBP: conditional, RSB filling 
  Type: srbds status: Not affected 
  Type: tsx_async_abort status: Not affected 
Graphics:
  Device-1: NVIDIA TU117M vendor: Lenovo driver: nvidia v: 455.45.01 
  alternate: nouveau,nvidia_drm bus ID: 01:00.0 chip ID: 10de:1f99 
  Device-2: AMD Renoir vendor: Lenovo driver: amdgpu v: kernel bus ID: 05:00.0 
  chip ID: 1002:1636 
  Device-3: Syntek Integrated Camera type: USB driver: uvcvideo bus ID: 1-3:2 
  chip ID: 174f:244c serial: <filter> 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 
  driver: amdgpu,ati,nvidia unloaded: modesetting,nouveau 
  alternate: fbdev,nv,vesa display ID: :0 screens: 1 
  Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") 
  s-diag: 582mm (22.9") 
  Monitor-1: eDP res: 1920x1080 hz: 60 dpi: 142 size: 344x194mm (13.5x7.6") 
  diag: 395mm (15.5") 
  OpenGL: renderer: AMD RENOIR (DRM 3.39.0 5.9.11-3-MANJARO LLVM 11.0.0) 
  v: 4.6 Mesa 20.2.3 direct render: Yes 
Audio:
  Device-1: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo 
  driver: N/A alternate: snd_pci_acp3x, snd_rn_pci_acp3x bus ID: 05:00.5 
  chip ID: 1022:15e2 
  Device-2: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel 
  v: kernel bus ID: 05:00.6 chip ID: 1022:15e3 
  Sound Server: ALSA v: k5.9.11-3-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo driver: r8169 v: kernel port: 2000 bus ID: 03:00.0 
  chip ID: 10ec:8168 
  IF: eno1 state: down mac: <filter> 
  Device-2: Intel Wi-Fi 6 AX200 driver: iwlwifi v: kernel port: 2000 
  bus ID: 04:00.0 chip ID: 8086:2723 
  IF: wlp4s0 state: up mac: <filter> 
Drives:
  Local Storage: total: 238.47 GiB used: 8.59 GiB (3.6%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB256HBHQ-000L2 
  size: 238.47 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 serial: <filter> rev: 3L1QEXH7 scheme: GPT 
Partition:
  ID-1: / raw size: 238.17 GiB size: 233.43 GiB (98.01%) used: 8.59 GiB (3.7%) 
  fs: ext4 dev: /dev/nvme0n1p2 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: file size: 512.0 MiB used: 0 KiB (0.0%) priority: -2 
  file: /swapfile 
Sensors:
  System Temperatures: cpu: 47.2 C mobo: N/A gpu: amdgpu temp: 39.0 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 301 Uptime: 9m Memory: 7.21 GiB used: 1.81 GiB (25.1%) 
  Init: systemd v: 246 Compilers: gcc: N/A Packages: pacman: 1190 lib: 332 
  flatpak: 0 Shell: Bash v: 5.0.18 running in: konsole inxi: 3.1.08

sudo dmesg -l emerg,alert,crit,err,warn

[    0.311345] TSC synchronization [CPU#0 -> CPU#6]:
[    0.311346] Measured 4650 cycles TSC warp between CPUs, turning off TSC clock.
[    0.312403]   #7  #8  #9 #10 #11
[    0.582673] pci 0000:00:00.2: AMD-Vi: Unable to read/write to IOMMU perf counter.
[    0.582781] pci 0000:00:00.2: can't derive routing for PCI INT A
[    0.582782] pci 0000:00:00.2: PCI INT A: not connected
[    0.584925]  PPR X2APIC NX GT IA GA PC GA_vAPIC
[    0.599224] [Firmware Bug]: ACPI(PEGP) defines _DOD but not _DOS
[    0.619748] nvme nvme0: missing or invalid SUBNQN field.
[    0.630294] Unstable clock detected, switching default tracing clock to "global"
              If you want to keep using the local clock, then add:
                "trace_clock=local"
              on the kernel command line
[    1.023922] i8042: PNP: PS/2 appears to have AUX port disabled, if this is incorrect please boot with i8042.nopnp
[    1.531628] nvidia: loading out-of-tree module taints kernel.
[    1.531638] nvidia: module license 'NVIDIA' taints kernel.
[    1.531639] Disabling lock debugging due to kernel taint
[    1.610263] NVRM: loading NVIDIA UNIX x86_64 Kernel Module  455.45.01  Thu Nov  5 23:03:56 UTC 2020
[    1.696575] i2c_hid i2c-MSFT0001:00: supply vdd not found, using dummy regulator
[    1.696610] i2c_hid i2c-MSFT0001:00: supply vddl not found, using dummy regulator
[    1.743704] snd_pci_acp3x 0000:05:00.5: Invalid ACP audio mode : 0
[    1.744474] acpi PNP0C14:01: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
[    1.747782] acpi PNP0C14:02: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
[    1.747871] acpi PNP0C14:03: duplicate WMI GUID 05901221-D566-11D1-B2F0-00A0C9062910 (first instance was on PNP0C14:00)
[    1.940157] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-cc-a0-56.ucode failed with error -2
[    1.941518] iwlwifi 0000:04:00.0: api flags index 2 larger than supported by driver
[    2.267125] ATPX version 1, functions 0x00000001
[    2.267236] ATPX Hybrid Graphics
[    2.499950] thermal thermal_zone0: failed to read out thermal zone (-61)
[    2.964255] ACPI: \: failed to evaluate _DSM (0x1001)
[    3.006241] amdgpu 0000:05:00.0: amdgpu: SMU driver if version not matched
[    3.190958] ------------[ cut here ]------------
[    3.191060] WARNING: CPU: 7 PID: 1096 at drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_link.c:2548 dc_link_set_backlight
_level+0x8a/0xf0 [amdgpu]
[    3.191060] Modules linked in: videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_common videodev mc joydev moused
ev squashfs hid_multitouch hid_generic wmi_bmof edac_mce_amd iwlmvm loop kvm_amd snd_hda_codec_realtek snd_hda_codec_generic m
ac80211 ledtrig_audio kvm amdgpu libarc4 snd_hda_intel irqbypass snd_intel_dspcfg crct10dif_pclmul snd_hda_codec crc32_pclmul
ghash_clmulni_intel iwlwifi nls_iso8859_1 snd_hda_core aesni_intel nls_cp437 vfat snd_hwdep r8169 fat crypto_simd snd_pcm cryp
td glue_helper rapl snd_timer realtek input_leds pcspkr mdio_devres ideapad_laptop sp5100_tco cfg80211 of_mdio sparse_keymap g
pu_sched snd k10temp fixed_phy i2c_algo_bit ucsi_acpi(+) tpm_crb i2c_piix4 snd_rn_pci_acp3x typec_ucsi tpm_tis ttm ccp snd_pci
_acp3x libphy rfkill soundcore typec wmi battery tpm_tis_core tpm rng_core pinctrl_amd cm32181 industrialio acpi_cpufreq uinpu
t i2c_hid nvidia_drm(POE) hid nvidia_modeset(POE) evdev mac_hid ac drm_kms_helper cec rc_core drm agpgart syscopyarea
[    3.191091]  sysfillrect sysimgblt fb_sys_fops nvidia(POE) msr sg crypto_user ip_tables x_tables ext4 crc32c_generic crc16
mbcache jbd2 serio_raw atkbd libps2 xhci_pci crc32c_intel xhci_hcd i8042 serio
[    3.191104] CPU: 7 PID: 1096 Comm: systemd-backlig Tainted: P           OE     5.9.11-3-MANJARO #1
[    3.191105] Hardware name: LENOVO 82B5/LNVNB161216, BIOS EUCN28WW 10/20/2020
[    3.191171] RIP: 0010:dc_link_set_backlight_level+0x8a/0xf0 [amdgpu]
[    3.191173] Code: 70 03 00 00 31 c0 48 8d 96 c0 01 00 00 48 8b 0a 48 85 c9 74 06 48 3b 59 08 74 20 83 c0 01 48 81 c2 d8 04
00 00 83 f8 06 75 e3 <0f> 0b 45 31 e4 5b 44 89 e0 5d 41 5c 41 5d 41 5e c3 48 98 48 69 c0
[    3.191174] RSP: 0018:ffffaf81408d7df0 EFLAGS: 00010246
[    3.191175] RAX: 0000000000000006 RBX: ffff9d43785d8000 RCX: 0000000000000000
[    3.191175] RDX: ffff9d43786c1ed0 RSI: ffff9d43786c0000 RDI: 0000000000000000
[    3.191176] RBP: ffff9d4378600000 R08: 00000000000000ff R09: 000000000000000a
[    3.191176] R10: 000000000000000a R11: f000000000000000 R12: 000000000000ff01
[    3.191177] R13: 0000000000000000 R14: 000000000000ffff R15: ffff9d43858dfee0
[    3.191178] FS:  00007f674aefd200(0000) GS:ffff9d43875c0000(0000) knlGS:0000000000000000
[    3.191179] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    3.191180] CR2: 0000556e14ba6838 CR3: 00000001e369e000 CR4: 0000000000350ee0
[    3.191180] Call Trace:
[    3.191244]  amdgpu_dm_backlight_update_status+0xb4/0xc0 [amdgpu]
[    3.191248]  backlight_device_set_brightness+0x7e/0x130
[    3.191250]  brightness_store+0x63/0x80
[    3.191252]  kernfs_fop_write+0xce/0x1b0
[    3.191254]  vfs_write+0xc7/0x210
[    3.191256]  ksys_write+0x67/0xe0
[    3.191258]  do_syscall_64+0x33/0x40
[    3.191260]  entry_SYSCALL_64_after_hwframe+0x44/0xa9
[    3.191261] RIP: 0033:0x7f674bd16f67
[    3.191262] Code: 0d 00 f7 d8 64 89 02 48 c7 c0 ff ff ff ff eb b7 0f 1f 00 f3 0f 1e fa 64 8b 04 25 18 00 00 00 85 c0 75 10
b8 01 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 51 c3 48 83 ec 28 48 89 54 24 18 48 89 74 24
[    3.191263] RSP: 002b:00007ffef16cd9c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000001
[    3.191264] RAX: ffffffffffffffda RBX: 0000000000000004 RCX: 00007f674bd16f67
[    3.191264] RDX: 0000000000000004 RSI: 00007ffef16cdab0 RDI: 0000000000000004
[    3.191264] RBP: 00007ffef16cdab0 R08: 0000000000000000 R09: 0000000000000000
[    3.191265] R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000004
[    3.191265] R13: 0000556e14b903c0 R14: 0000000000000004 R15: 00007f674bde9720
[    3.191267] ---[ end trace 99c47566404ba57b ]---
[    3.211947] ACPI: \: failed to evaluate _DSM (0x1001)
[    4.470691] ACPI Warning: \_SB.PCI0.GPP0.PEGP._DSM: Argument #4 type mismatch - Found [Buffer], ACPI requires [Package] (20
200717/nsarguments-59)
[    4.816049] NVRM: nv_acpi_dsm_method: DSM data invalid!
[    6.848471] kauditd_printk_skb: 51 callbacks suppressed
[   13.107418] kauditd_printk_skb: 23 callbacks suppressed

journalctl -x -p3 -b1

-- Logs begin at Fri 2020-12-04 08:45:37 CET, end at Fri 2020-12-04 08:57:41 CET. --
gru 04 08:45:37 Legion5 kernel: pci 0000:00:00.2: AMD-Vi: Unable to read/write to IOMMU perf counter.
gru 04 08:45:37 Legion5 systemd-modules-load[287]: Failed to find module 'platform-integrity'
gru 04 08:45:37 Legion5 kernel: snd_pci_acp3x 0000:05:00.5: Invalid ACP audio mode : 0
gru 04 08:45:38 Legion5 sddm[527]: Failed to read display number from pipe
gru 04 08:45:38 Legion5 sddm[527]: Display server failed to start. Exiting
gru 04 08:45:39 Legion5 systemd-backlight[1095]: Failed to get backlight or LED device 'backlight:acpi_video1': No such device
gru 04 08:45:39 Legion5 systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:acpi_video1.
░░ Subject: Zadanie uruchamiania dla jednostki systemd-backlight@backlight:acpi_video1.service się nie powiodło
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ Zadanie uruchamiania dla jednostki systemd-backlight@backlight:acpi_video1.service zostało ukończone z niepowodzeniem.
░░ 
░░ Identyfikator zadania: 371, wynik zadania: failed.
gru 04 08:45:39 Legion5 systemd-backlight[1096]: amdgpu_bl1: Failed to write system 'brightness' attribute: No such device or>
gru 04 08:45:39 Legion5 systemd-coredump[891]: Process 527 (sddm) of user 0 dumped core.
                                               
                                               Stack trace of thread 527:
                                               #0  0x00007f6777439615 raise (libc.so.6 + 0x3d615)
                                               #1  0x00007f6777422862 abort (libc.so.6 + 0x26862)
                                               #2  0x00007f677784e9ac _ZNK14QMessageLogger5fatalEPKcz (libQt5Core.so.5 + 0x90>
                                               #3  0x0000556afcb1f108 n/a (sddm + 0x2a108)
                                               #4  0x0000556afcb63271 _ZN4SDDM4SeatC2ERK7QStringP7QObject (sddm + 0x6e271)
                                               #5  0x0000556afcb64ec1 _ZN4SDDM11SeatManager10createSeatERK7QString (sddm + 0x>
                                               #6  0x0000556afcb65d03 n/a (sddm + 0x70d03)
                                               #7  0x00007f6777aaadd6 n/a (libQt5Core.so.5 + 0x2ecdd6)
                                               #8  0x0000556afcb63ec0 _ZN4SDDM10LogindSeat19canGraphicalChangedEb (sddm + 0x6>
                                               #9  0x0000556afcb66b6b _ZN4SDDM10LogindSeat11qt_metacallEN11QMetaObject4CallEi>
                                               #10 0x00007f67783c8066 n/a (libQt5DBus.so.5 + 0x21066)
                                               #11 0x00007f6777aa0582 _ZN7QObject5eventEP6QEvent (libQt5Core.so.5 + 0x2e2582)
                                               #12 0x00007f6777a73a50 _ZN16QCoreApplication15notifyInternal2EP7QObjectP6QEven>
                                               #13 0x00007f6777a76573 _ZN23QCoreApplicationPrivate16sendPostedEventsEP7QObjec>
                                               #14 0x00007f6777acd0a4 n/a (libQt5Core.so.5 + 0x30f0a4)
                                               #15 0x00007f67765a3914 g_main_context_dispatch (libglib-2.0.so.0 + 0x52914)
                                               #16 0x00007f67765f77d1 n/a (libglib-2.0.so.0 + 0xa67d1)
                                               #17 0x00007f67765a2121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                               #18 0x00007f6777acc6e1 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEv>
                                               #19 0x00007f6777a723fc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (>
                                               #20 0x00007f6777a7a894 _ZN16QCoreApplication4execEv (libQt5Core.so.5 + 0x2bc89>
                                               #21 0x0000556afcb21f31 main (sddm + 0x2cf31)
                                               #22 0x00007f6777424152 __libc_start_main (libc.so.6 + 0x28152)
                                               #23 0x0000556afcb2223e _start (sddm + 0x2d23e)
                                               
                                               Stack trace of thread 545:
                                               #0  0x00007f67774f146f __poll (libc.so.6 + 0xf546f)
                                               #1  0x00007f67765f775f n/a (libglib-2.0.so.0 + 0xa675f)
                                               #2  0x00007f67765a2121 g_main_context_iteration (libglib-2.0.so.0 + 0x51121)
                                               #3  0x00007f6777acc6e1 _ZN20QEventDispatcherGlib13processEventsE6QFlagsIN10QEv>
                                               #4  0x00007f6777a723fc _ZN10QEventLoop4execE6QFlagsINS_17ProcessEventsFlagEE (>
                                               #5  0x00007f677788ad22 _ZN7QThread4execEv (libQt5Core.so.5 + 0xccd22)
                                               #6  0x00007f67783be098 n/a (libQt5DBus.so.5 + 0x17098)
                                               #7  0x00007f677788bf0f n/a (libQt5Core.so.5 + 0xcdf0f)
                                               #8  0x00007f67773e33e9 start_thread (libpthread.so.0 + 0x93e9)
                                               #9  0x00007f67774fc293 __clone (libc.so.6 + 0x100293)
░░ Subject: Proces 527 (sddm) zrzucił plik core
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ Documentation: man:core(5)
░░ 
░░ Proces 527 (sddm) uległ awarii i zrzucił plik core.
░░ 
░░ Zwykle wskazuje to na błąd programistyczny w danym programie i powinno zostać
░░ zgłoszone jego producentowi jako błąd.
gru 04 08:45:39 Legion5 systemd[1]: Failed to start Load/Save Screen Backlight Brightness of backlight:amdgpu_bl1.
░░ Subject: Zadanie uruchamiania dla jednostki systemd-backlight@backlight:amdgpu_bl1.service się nie powiodło
░░ Defined-By: systemd
░░ Support: https://forum.manjaro.org/c/support
░░ 
░░ Zadanie uruchamiania dla jednostki systemd-backlight@backlight:amdgpu_bl1.service zostało ukończone z niepowodzeniem.
░░ 
░░ Identyfikator zadania: 365, wynik zadania: failed.
gru 04 08:45:51 Legion5 bluetoothd[1180]: Failed to set mode: Blocked through rfkill (0x12)

CPU usage at idle:

Thanks!

You showed a lot of things.
But for some reason not which processes are using these resources.

(heres a bet on baloo)

1 Like

Oh, i forgot :slight_smile:

It’s mostly krunner and plasmashell

This issue may be related:



You may check if you have other symptoms.

1 Like

Moving mimeapps.list did the trick. However changing default programs make system unresponsive again. I will read the second thread about mimeapps but for now everything works like a charm and there is no more cpu spikes! :slight_smile:
Thanks you so much for your help.

1 Like

Plasma settings creates .config/mimeapps.list file when changing default apps however can use .local/share/mimeapps.list file, fyi. You can just merge the files to the file under .local folder.

1 Like

Oh… That’s why my system started acting very weirdly after making Google chrome my default browser…

You may want to see this:

and even this:

on your own responsibility, of course :slight_smile:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.