Some programs randomly freezing

Hello! Since yesterday I’ve been encountering a very specific issue using Manjaro. At this point I’m nearly ready to give up and reinstall, but I thought I’d give the forum a shot first. I’ll try to describe the thing in as much detail as I can, but I’m no expert, so go easy on me.
Some programs when used cause very odd freezes, which seem to effect other random programs, while having no effect on others.
So far only I have only seen Vivaldi, Firefox and Discord cause the freeze. Browsers are far more likely to do this with Google Sheets open. Once that happens, browsers say that Sheets is trying to connect to Google servers, even though I still have Internet. Once they freeze, they take no input, and can only be closed by terminating them. They also do a thing where if I minimise them, and then open again from the tray, they just copy whatever was on the screen last. Restarting doesn’t fix it, browsers only load the top section and freeze again, Discord only starts an empty window. Once one of these three brakes, the others do as well. On top of that, I also cannot start the package manager, and after a while it seems to break a game running with wine as well. Programs I know aren’t affected are Teamspeak, Telegram Desktop and Spotify. These run without any issues, even if all the rest breaks.
Things I have tried: reinstalling the above software, switching to other versions of the kernel (5.4, 5.9 and 5.11 all did this).

System:
  Kernel: 5.11.6-1-MANJARO x86_64 bits: 64 compiler: gcc v: 10.2.0 
  parameters: BOOT_IMAGE=/boot/vmlinuz-5.11-x86_64 
  root=UUID=e1eeafc1-b039-4a9d-9bea-b0c59979e865 rw quiet intel_iommu=on 
  apparmor=1 security=apparmor udev.log_priority=3 
  Desktop: KDE Plasma 5.21.3 tk: Qt 5.15.2 wm: kwin_x11 vt: 1 dm: SDDM 
  Distro: Manjaro Linux base: Arch Linux 
Machine:
  Type: Laptop System: LENOVO product: 81DE v: Lenovo ideapad 330-15IKB 
  serial: <filter> Chassis: type: 10 v: Lenovo ideapad 330-15IKB 
  serial: <filter> 
  Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <filter> 
  UEFI-[Legacy]: LENOVO v: 8TCN58WW date: 06/18/2020 
Battery:
  ID-1: BAT0 charge: 30.9 Wh (98.4%) condition: 31.4/35.0 Wh (89.7%) 
  volts: 8.4 min: 7.6 model: LGC L16L2PB3 type: Li-poly serial: <filter> 
  status: Unknown 
Memory:
  RAM: total: 7.68 GiB used: 1.42 GiB (18.5%) 
  RAM Report: permissions: Unable to run dmidecode. Root privileges required. 
CPU:
  Info: Quad Core model: Intel Core i5-8250U bits: 64 type: MT MCP 
  arch: Kaby Lake note: check family: 6 model-id: 8E (142) stepping: A (10) 
  microcode: E0 cache: L2: 6 MiB bogomips: 28808 
  Speed: 1932 MHz min/max: 400/3400 MHz Core speeds (MHz): 1: 1932 2: 1743 
  3: 1082 4: 1000 5: 808 6: 800 7: 800 8: 800 
  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 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: VMX disabled 
  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 620 vendor: Lenovo driver: i915 v: kernel 
  bus-ID: 00:02.0 chip-ID: 8086:5917 class-ID: 0300 
  Device-2: IMC Networks EasyCamera type: USB driver: uvcvideo bus-ID: 1-8:8 
  chip-ID: 13d3:5a02 class-ID: 0e02 serial: <filter> 
  Display: x11 server: X.Org 1.20.10 compositor: kwin_x11 driver: 
  loaded: intel unloaded: modesetting alternate: fbdev,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: eDP1 res: 1920x1080 dpi: 143 size: 340x190mm (13.4x7.5") 
  diag: 389mm (15.3") 
  OpenGL: renderer: Mesa Intel UHD Graphics 620 (KBL GT2) v: 4.6 Mesa 20.3.4 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Lenovo 
  driver: snd_hda_intel v: kernel alternate: snd_soc_skl bus-ID: 00:1f.3 
  chip-ID: 8086:9d71 class-ID: 0403 
  Device-2: Razer USA Kraken 7.1 Chroma type: USB 
  driver: hid-generic,snd-usb-audio,usbhid bus-ID: 1-3:4 chip-ID: 1532:0504 
  class-ID: 0300 
  Sound Server-1: ALSA v: k5.11.6-1-MANJARO running: yes 
  Sound Server-2: JACK v: 0.125.0 running: no 
  Sound Server-3: PulseAudio v: 14.2 running: yes 
  Sound Server-4: PipeWire v: 0.3.23 running: yes 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Lenovo driver: r8168 v: 8.048.03-NAPI modules: r8169 port: 3000 
  bus-ID: 01:00.0 chip-ID: 10ec:8168 class-ID: 0200 
  IF: enp1s0 state: down mac: <filter> 
  Device-2: Qualcomm Atheros QCA9377 802.11ac Wireless Network Adapter 
  vendor: Lenovo driver: ath10k_pci v: kernel port: 3000 bus-ID: 02:00.0 
  chip-ID: 168c:0042 class-ID: 0280 
  IF: wlp2s0 state: up mac: <filter> 
  IP v4: <filter> type: dynamic noprefixroute scope: global 
  broadcast: <filter> 
  IP v6: <filter> type: noprefixroute scope: link 
  IF-ID-1: virbr0 state: down mac: <filter> 
  IP v4: <filter> scope: global broadcast: <filter> 
  WAN IP: <filter> 
Bluetooth:
  Device-1: Qualcomm Atheros type: USB driver: btusb v: 0.8 bus-ID: 1-7:7 
  chip-ID: 0cf3:e500 class-ID: e001 
  Report: This feature requires one of these tools: hciconfig/bt-adapter 
Logical:
  Message: No LVM data was found. 
RAID:
  Message: No RAID data was found. 
Drives:
  Local Storage: total: 238.47 GiB used: 96.72 GiB (40.6%) 
  SMART Message: Unable to run smartctl. Root privileges required. 
  ID-1: /dev/sda maj-min: 8:0 vendor: SK Hynix model: HFS256G3BTND-N210A 
  size: 238.47 GiB block-size: physical: 512 B logical: 512 B speed: 6.0 Gb/s 
  rotation: SSD serial: <filter> rev: 1P10 scheme: GPT 
  Message: No Optical or Floppy data was found. 
Partition:
  ID-1: / raw-size: 237.84 GiB size: 233.99 GiB (98.38%) 
  used: 96.72 GiB (41.3%) fs: ext4 dev: /dev/sda5 maj-min: 8:5 label: N/A 
  uuid: e1eeafc1-b039-4a9d-9bea-b0c59979e865 
  ID-2: /boot/efi raw-size: 100 MiB size: 98.4 MiB (98.45%) 
  used: 298 KiB (0.3%) fs: vfat dev: /dev/sda2 maj-min: 8:2 label: N/A 
  uuid: AF81-0FEA 
Swap:
  Alert: No Swap data was found. 
Unmounted:
  ID-1: /dev/sda1 maj-min: 8:1 size: 529 MiB fs: ntfs 
  label: Helyre\xc3\xa1ll\xc3\xadt\xc3\xa1s uuid: 96841DFF841DE293 
  ID-2: /dev/sda3 maj-min: 8:3 size: 16 MiB fs: <superuser required> 
  label: N/A uuid: N/A 
USB:
  Hub-1: 1-0:1 info: Full speed (or root) Hub ports: 12 rev: 2.0 
  speed: 480 Mb/s chip-ID: 1d6b:0002 class-ID: 0900 
  Device-1: 1-1:2 info: [Maxxter] USB GAMING MOUSE type: Mouse,Keyboard 
  driver: hid-generic,usbhid interfaces: 2 rev: 1.1 speed: 1.5 Mb/s 
  power: 100mA chip-ID: 18f8:1286 class-ID: 0301 
  Hub-2: 1-2:3 info: Genesys Logic Hub ports: 4 rev: 2.1 speed: 480 Mb/s 
  power: 100mA chip-ID: 05e3:0610 class-ID: 0900 
  Device-1: 1-2.1:5 info: HUION 420 type: Mouse,HID driver: uclogic,usbhid 
  interfaces: 3 rev: 1.1 speed: 12 Mb/s power: 100mA chip-ID: 256c:006e 
  class-ID: 0300 
  Device-2: 1-2.4:6 info: Razer USA BlackWidow Ultimate 2013 
  type: Keyboard,Mouse driver: hid-generic,usbhid interfaces: 3 rev: 2.0 
  speed: 12 Mb/s power: 100mA chip-ID: 1532:011a class-ID: 0300 
  Device-3: 1-3:4 info: Razer USA Kraken 7.1 Chroma type: Audio,HID 
  driver: hid-generic,snd-usb-audio,usbhid interfaces: 4 rev: 2.0 
  speed: 12 Mb/s power: 200mA chip-ID: 1532:0504 class-ID: 0300 
  Device-4: 1-7:7 info: Qualcomm Atheros type: Bluetooth driver: btusb 
  interfaces: 2 rev: 2.0 speed: 12 Mb/s power: 100mA chip-ID: 0cf3:e500 
  class-ID: e001 
  Device-5: 1-8:8 info: IMC Networks EasyCamera type: Video driver: uvcvideo 
  interfaces: 2 rev: 2.0 speed: 480 Mb/s power: 500mA chip-ID: 13d3:5a02 
  class-ID: 0e02 serial: <filter> 
  Hub-3: 2-0:1 info: Full speed (or root) Hub ports: 6 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 1d6b:0003 class-ID: 0900 
  Hub-4: 2-2:2 info: Genesys Logic hub ports: 4 rev: 3.0 speed: 5 Gb/s 
  chip-ID: 05e3:0616 class-ID: 0900 
Sensors:
  System Temperatures: cpu: 35.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 256 Uptime: 3m wakeups: 1 Init: systemd v: 247 tool: systemctl 
  Compilers: gcc: 10.2.0 clang: 11.1.0 Packages: 1714 pacman: 1695 lib: 451 
  flatpak: 7 snap: 12 Shell: Bash v: 5.1.0 running-in: konsole inxi: 3.3.03 

Do I have any chance of saving this without reinstall?

Edited, thanks.

This is what stands out to me:

  1. Your on-board graphics does consume your RAM. So, your useage might not be what is being reported.

  2. With 8GB total ram, I would opine that you definitely need a swap partition/file.

Okay, I see, thanks. Just two more quick questions then. How much swap do you think I need? And how is it only a problem since yesterday?

It is always a problem when there is no swap defined - you will encounter issues sooner or later - in your case it was later.

The default installation has a vm.swappiness of 60 but when there is no swap defined the system goes bonkers - because it is default configured to use swap early but has none. This clogs up the system and you will run into freezes as the system tries to handle early swap with no swap space. To actually run a system without swap you need a system with at least 16GB better yet 32GB - yes I know - could probably be done with less - and a vm.swappiness=10 but still a little swap - like 2GB is always better than none.

1 Like

Allocated about 10 gigs of swap space, problem persists. It also produce a new thing, where I could use everything with the keyboard I could use before, just the mouse wasn’t working. The mouse is good, I tested it.