Gnome freezes for couple of seconds on apps startups

Hello,

I’m running manjaro on Dell G5 with Gnome and nvidia hybrid drivers. Since around Xmas updates the UI started to freeze for couple of seconds when I’m starting some larger application.

Example: I have 8GB mem free, system is pretty much idle, the fans are off. I click to start IntelliJ and the system freezes for like 3-5 seconds (the clock stops, can move the mouse, can’t switch windows, etc.), after those couple of seconds the fans starts spinning and the UI becomes responsive again.

Any hints on what to check or where the problem could be?

Here’s the output from inxi about my system confiuration

System:    Host: Haven Kernel: 5.4.95-1-MANJARO x86_64 bits: 64 Desktop: GNOME 3.38.3 Distro: Manjaro Linux 
Machine:   Type: Laptop System: Dell product: G5 5590 v: N/A serial: <superuser required> 
           Mobo: Dell model: 0CNDTP v: A01 serial: <superuser required> UEFI: Dell v: 1.14.0 date: 10/20/2020 
Battery:   ID-1: BAT0 charge: 83.3 Wh condition: 83.3/90.0 Wh (93%) 
CPU:       Info: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP L2 cache: 12 MiB 
   Speed: 1390 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 1390 2: 2721 3: 1042 4: 3506 5: 1168 6: 1560 7: 1984 
   8: 1758 9: 1083 10: 944 11: 1066 12: 1386 
Graphics:  Device-1: Intel UHD Graphics 630 driver: i915 v: kernel 
   Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] driver: nvidia v: 460.39 
   Device-3: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo 
   Display: x11 server: X.Org 1.20.10 driver: loaded: modesetting,nvidia unloaded: intel,nouveau 
   resolution: 1920x1080~144Hz 
   OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.4 
Audio:     Device-1: Intel Cannon Lake PCH cAVS driver: snd_hda_intel 
   Sound Server: ALSA v: k5.4.95-1-MANJARO 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi 
   IF: wlo1 state: up mac: c0:b8:83:24:2c:d2 
   Device-2: Realtek driver: r8168 
   IF: enp60s0 state: down mac: 8c:04:ba:9a:6a:ae 
   IF-ID-1: docker0 state: up speed: N/A duplex: N/A mac: 02:42:8b:bf:54:b7 
   IF-ID-2: ppp0 state: unknown speed: N/A duplex: N/A mac: N/A 
   IF-ID-3: vethd0e6fcb state: up speed: 10000 Mbps duplex: full mac: 1e:38:bc:46:84:33 
   IF-ID-4: vethf41e780 state: up speed: 10000 Mbps duplex: full mac: 0e:c4:85:c1:5d:38 
   IF-ID-5: ztrf2z3eko state: unknown speed: 10 Mbps duplex: full mac: 4a:80:e8:53:fc:99 
Bluetooth: Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB driver: btusb 
   Message: Required tool hciconfig not installed. Check --recommends 
Drives:    Local Storage: total: 476.94 GiB used: 738.57 GiB (154.9%) 
   ID-1: /dev/nvme0n1 vendor: SK Hynix model: PC601 NVMe 512GB size: 476.94 GiB 
Partition: ID-1: / size: 464.21 GiB used: 368.92 GiB (79.5%) fs: ext4 dev: /dev/dm-0 
   ID-2: /boot/efi size: 299.4 MiB used: 15.5 MiB (5.2%) fs: vfat dev: /dev/nvme0n1p1 
Swap:      ID-1: swap-1 type: partition size: 4.02 GiB used: 731.8 MiB (17.8%) dev: /dev/dm-1 
Sensors:   System Temperatures: cpu: 61.0 C mobo: N/A 
   Fan Speeds (RPM): N/A 
Info:      Processes: 485 Uptime: 21h 51m Memory: 15.46 GiB used: 10.75 GiB (69.6%) Shell: Zsh inxi: 3.3.01

What’s the output of:

inxi --admin --verbosity=7 --filter --no-host --width
free --human

before you start said application

and:

free --human

after?

The output of: inxi --admin --verbosity=7 --filter --no-host --width is:

System:
  Kernel: 5.4.95-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.1 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.4-x86_64 
  root=UUID=53daf429-2de4-483a-8c5b-fe0f3ceac68f rw quiet 
  cryptdevice=UUID=41593711-c62d-4035-ab81-3f9b87284891:luks-41593711-c62d-4035-ab81-3f9b87284891 
  root=/dev/mapper/luks-41593711-c62d-4035-ab81-3f9b87284891 
  resume=/dev/mapper/luks-41593711-c62d-4035-ab81-3f9b87284891 apparmor=1 
  security=apparmor udev.log_priority=3 
Desktop: GNOME 3.38.3 tk: GTK 3.24.24 info: docker wm: gnome-shell 
dm: GDM 3.38.2.1 Distro: Manjaro Linux 
Machine:
Type: Laptop System: Dell product: G5 5590 v: N/A serial: <filter> Chassis: 
type: 10 serial: <filter> 
Mobo: Dell model: 0CNDTP v: A01 serial: <filter> UEFI: Dell v: 1.14.0 
date: 10/20/2020 
Battery:
ID-1: BAT0 charge: 83.3 Wh condition: 83.3/90.0 Wh (93%) volts: 13.1/11.4 
model: BYD DELL 6YV0V94 type: Li-poly serial: <filter> status: Full 
Memory:
RAM: total: 15.46 GiB used: 10.06 GiB (65.1%) 
RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
Info: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP 
arch: Kaby Lake note: check family: 6 model-id: 9E (158) stepping: A (10) 
microcode: DE L2 cache: 12 MiB bogomips: 62431 
Speed: 2894 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 2894 2: 3185 
3: 1833 4: 2222 5: 1395 6: 2520 7: 2514 8: 2506 9: 2252 10: 1494 11: 3285 
12: 3617 
Flags: 3dnowprefetch abm acpi adx aes aperfmperf apic arat arch_perfmon art 
avx avx2 bmi1 bmi2 bts clflush clflushopt cmov constant_tsc cpuid 
cpuid_fault cx16 cx8 de ds_cpl dtes64 dtherm dts epb ept ept_ad erms est 
f16c flexpriority flush_l1d fma fpu fsgsbase fxsr ht hwp hwp_act_window 
hwp_epp hwp_notify ibpb ibrs ida intel_pt invpcid invpcid_single lahf_lm lm 
mca mce md_clear mmx monitor movbe mpx msr mtrr nonstop_tsc nopl nx pae pat 
pbe pcid pclmulqdq pdcm pdpe1gb pebs pge pln pni popcnt pse pse36 pti pts 
rdrand rdseed rdtscp rep_good sdbg sep smap smep ss ssbd sse sse2 sse4_1 
sse4_2 ssse3 stibp syscall tm tm2 tpr_shadow tsc tsc_adjust 
tsc_deadline_timer vme vmx vnmi vpid x2apic xgetbv1 xsave xsavec xsaveopt 
xsaves xtopology xtpr 
Vulnerabilities: Type: itlb_multihit status: KVM: Split huge pages 
Type: l1tf 
mitigation: PTE Inversion; VMX: conditional cache flushes, SMT vulnerable 
Type: mds mitigation: Clear CPU buffers; SMT vulnerable 
Type: meltdown mitigation: PTI 
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 generic retpoline, IBPB: conditional, 
IBRS_FW, STIBP: conditional, RSB filling 
Type: srbds mitigation: Microcode 
Type: tsx_async_abort status: Not affected 
Graphics:
Device-1: Intel UHD Graphics 630 vendor: Dell driver: i915 v: kernel 
bus ID: 00:02.0 chip ID: 8086:3e9b class ID: 0300 
Device-2: NVIDIA TU106M [GeForce RTX 2060 Mobile] vendor: Dell 
driver: nvidia v: 460.39 alternate: nouveau,nvidia_drm bus ID: 01:00.0 
chip ID: 10de:1f11 class ID: 0300 
Device-3: Realtek Integrated_Webcam_HD type: USB driver: uvcvideo 
bus ID: 1-5:3 chip ID: 0bda:5521 class ID: 0e02 serial: <filter> 
Display: x11 server: X.Org 1.20.10 compositor: gnome-shell driver: 
loaded: modesetting,nvidia unloaded: intel,nouveau alternate: fbdev,nv,vesa 
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: eDP-1 res: 1920x1080 hz: 144 dpi: 142 size: 344x194mm (13.5x7.6") 
diag: 395mm (15.5") 
OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.3.4 
direct render: Yes 
Audio:
Device-1: Intel Cannon Lake PCH cAVS vendor: Dell driver: snd_hda_intel 
v: kernel alternate: snd_soc_skl,snd_sof_pci bus ID: 00:1f.3 
chip ID: 8086:a348 class ID: 0403 
Sound Server: ALSA v: k5.4.95-1-MANJARO 
Network:
Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel 
port: 5000 bus ID: 00:14.3 chip ID: 8086:a370 class ID: 0280 
IF: wlo1 state: up mac: <filter> 
IP v4: <filter> type: dynamic noprefixroute scope: global 
broadcast: <filter> 
IP v6: <filter> type: noprefixroute scope: link 
Device-2: Realtek vendor: Dell driver: r8168 v: 8.048.03-NAPI modules: r8169 
port: 3000 bus ID: 3c:00.0 chip ID: 10ec:2502 class ID: 0200 
IF: enp60s0 state: down mac: <filter> 
IF-ID-1: docker0 state: up speed: N/A duplex: N/A mac: <filter> 
IP v4: <filter> scope: global broadcast: <filter> 
IP v6: <filter> scope: link 
IF-ID-2: veth9edfea9 state: up speed: 10000 Mbps duplex: full mac: <filter> 
IF-ID-3: vethc383833 state: up speed: 10000 Mbps duplex: full mac: <filter> 
IF-ID-4: ztrf2z3eko state: unknown speed: 10 Mbps duplex: full mac: <filter> 
IP v4: <filter> scope: global broadcast: <filter> 
  IP v6: <filter> scope: link 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) type: USB 
  driver: btusb v: 0.8 bus ID: 1-14:5 chip ID: 8087:0aaa class ID: e001 
  Message: Required tool hciconfig not installed. Check --recommends 
RAID:
  Message: No RAID data was found. 
Drives:
  Local Storage: total: 476.94 GiB used: 737.35 GiB (154.6%) 
  SMART Message: Required tool smartctl not installed. Check --recommends 
  ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: SK Hynix model: PC601 NVMe 512GB 
  size: 476.94 GiB block size: physical: 512 B logical: 512 B speed: 31.6 Gb/s 
  lanes: 4 rotation: SSD serial: <filter> rev: 80002111 scheme: GPT 
  Message: No Optical or Floppy data was found. 
Partition:
  ID-1: / raw size: 472.62 GiB size: 464.21 GiB (98.22%) 
  used: 368.49 GiB (79.4%) fs: ext4 dev: /dev/dm-0 maj-min: 254:0 
  mapped: luks-41593711-c62d-4035-ab81-3f9b87284891 label: N/A 
  uuid: 53daf429-2de4-483a-8c5b-fe0f3ceac68f 
  ID-2: /boot/efi raw size: 300 MiB size: 299.4 MiB (99.80%) 
  used: 15.5 MiB (5.2%) fs: vfat dev: /dev/nvme0n1p1 maj-min: 259:1 label: N/A 
  uuid: 939D-27A0 
  ID-3: /home/<filter>/RobotFramework/archives/docker-images/overlay2/21be7207fcb003590e82a9b2215cee4bd029b11a8cb70011b2ee922c66044cca/merged raw size: N/A size: 464.21 GiB used: 368.49 GiB (79.4%) fs: overlay 
  source: ERR-102 label: N/A uuid: N/A 
  ID-4: /home/<filter>/RobotFramework/archives/docker-images/overlay2/398c1daeca36a979192a9fcdb27bab5442da24e11dca81cbd90c13c2bc96dc65/merged raw size: N/A size: 464.21 GiB used: 368.49 GiB (79.4%) fs: overlay 
  source: ERR-102 label: N/A uuid: N/A 
Swap:
  Kernel: swappiness: 60 (default) cache pressure: 100 (default) 
  ID-1: swap-1 type: partition size: 4.02 GiB used: 356.8 MiB (8.7%) 
  priority: -2 dev: /dev/dm-1 maj-min: 254:1 
  mapped: luks-71bf355f-aba9-4678-832c-1996ea497265 label: N/A 
  uuid: d7cf9e64-918c-4080-926e-54850c4bac54 
Unmounted:
  Message: No Unmounted partitions found. 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 16 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Device-1: 1-1:2 info: Trust Wireless Mouse type: Mouse 
  driver: hid-generic,usbhid interfaces: 1 rev: 1.1 speed: 12 Mb/s 
  chip ID: 145f:0263 class ID: 0301 
  Device-2: 1-5:3 info: Realtek Integrated_Webcam_HD type: Video 
  driver: uvcvideo interfaces: 2 rev: 2.0 speed: 480 Mb/s chip ID: 0bda:5521 
  class ID: 0e02 serial: <filter> 
  Device-3: 1-9:4 info: Shenzhen Goodix Fingerprint Reader 
  type: <vendor specific> driver: N/A interfaces: 1 rev: 2.0 speed: 12 Mb/s 
  chip ID: 27c6:530c class ID: ff00 
  Device-4: 1-14:5 info: Intel Bluetooth 9460/9560 Jefferson Peak (JfP) 
  type: Bluetooth driver: btusb interfaces: 2 rev: 2.0 speed: 12 Mb/s 
  chip ID: 8087:0aaa class ID: e001 
  Hub-2: 2-0:1 info: Full speed (or root) Hub ports: 8 rev: 3.1 speed: 10 Gb/s 
  chip ID: 1d6b:0003 class ID: 0900 
  Hub-3: 5-0:1 info: Full speed (or root) Hub ports: 2 rev: 2.0 
  speed: 480 Mb/s chip ID: 1d6b:0002 class ID: 0900 
  Hub-4: 6-0:1 info: Full speed (or root) Hub ports: 2 rev: 3.1 speed: 10 Gb/s 
  chip ID: 1d6b:0003 class ID: 0900 
Sensors:
  System Temperatures: cpu: 59.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 515 Uptime: 2d 3h 30m wakeups: 8469 Init: systemd v: 247 
  Compilers: gcc: 10.2.0 Packages: pacman: 1462 lib: 457 flatpak: 0 Shell: Zsh 
  v: 5.8 running in: guake inxi: 3.3.01 

The output of free --human before is:

          total        used        free      shared  buff/cache   available
Mem:           15Gi       5,4Gi       3,2Gi       4,3Gi       6,9Gi       5,4Gi
Swap:         4,0Gi       356Mi       3,7Gi

The free --human output afterwards is:

              total        used        free      shared  buff/cache   available
Mem:           15Gi       6,7Gi       2,1Gi       4,4Gi       6,7Gi       4,0Gi
Swap:         4,0Gi       796Mi       3,2Gi

Your swap is on an encrypted volume and swapping is taking place. That’s the only thing I can think of, so: move the swap to an unencrypted partition / file…

:thinking:

Hum, pretty sure that’s not it. I’ve just tried to run the program with having 8G free memory and the UI was still lagging.