Deadly lagging during simple work

Hello everyone!
I have a problem with witch one i have been fighting already 1.5 y
Sometime during simple (not gaming ) work my laptop deadly lagging and only hard reset can help.
As first lags picture, after lags sound and laptop just stack and don’t response for anything…
By the way when i gaming it never happens!
A will be very happy if someone help determinate problem source or (this would be fantastic) fix it.

There is some info about my set-up:

$ inxi -Fxz
System:
  Kernel: 5.15.41-1-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 12.1.0
    Desktop: KDE Plasma v: 5.24.5 Distro: Manjaro Linux base: Arch Linux
Machine:
  Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-ec0xxx v: N/A
    serial: <superuser required>
  Mobo: HP model: 86D5 v: 96.16 serial: <superuser required> UEFI: AMI
    v: F.02 date: 09/20/2019
Battery:
  ID-1: BAT0 charge: 41.4 Wh (100.0%) condition: 41.4/41.4 Wh (100.0%)
    volts: 12.8 min: 11.6 model: Hewlett-Packard Primary status: full
  Device-1: hidpp_battery_0
    model: Logitech G305 Lightspeed Wireless Gaming Mouse
    charge: 100% (should be ignored) status: discharging
CPU:
  Info: quad core model: AMD Ryzen 7 3750H with Radeon Vega Mobile Gfx
    bits: 64 type: MT MCP arch: Zen/Zen+ note: check rev: 1 cache: L1: 384 KiB
    L2: 2 MiB L3: 4 MiB
  Speed (MHz): avg: 1775 high: 2659 min/max: 1400/2300 boost: enabled
    cores: 1: 1320 2: 1857 3: 2602 4: 2659 5: 1386 6: 1177 7: 1198 8: 2003
    bogomips: 36751
  Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
  Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q]
    vendor: Hewlett-Packard driver: nvidia v: 470.129.06 arch: Turing
    bus-ID: 01:00.0
  Device-2: AMD Picasso/Raven 2 [Radeon Vega Series / Radeon Mobile Series]
    vendor: Hewlett-Packard driver: amdgpu v: kernel bus-ID: 05:00.0
  Device-3: Quanta HP TrueVision HD Camera type: USB driver: uvcvideo
    bus-ID: 3-1:2
  Display: x11 server: X.Org v: 21.1.3 with: Xwayland v: 22.1.1 driver: X:
    loaded: modesetting,nvidia gpu: amdgpu resolution: 1920x1080~144Hz
  OpenGL: renderer: AMD Radeon Vega 10 Graphics (raven LLVM 13.0.1 DRM 3.42
  5.15.41-1-MANJARO)
    v: 4.6 Mesa 22.0.4 direct render: Yes
Audio:
  Device-1: NVIDIA vendor: Hewlett-Packard driver: snd_hda_intel v: kernel
    bus-ID: 01:00.1
  Device-2: AMD ACP/ACP3X/ACP6x Audio Coprocessor vendor: Hewlett-Packard
    driver: snd_pci_acp3x v: kernel bus-ID: 05:00.5
  Device-3: AMD Family 17h/19h HD Audio vendor: Hewlett-Packard
    driver: snd_hda_intel v: kernel bus-ID: 05:00.6
  Sound Server-1: ALSA v: k5.15.41-1-MANJARO running: yes
  Sound Server-2: sndio v: N/A running: no
  Sound Server-3: PulseAudio v: 15.0 running: no
  Sound Server-4: PipeWire v: 0.3.51 running: yes
Network:
  Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
    vendor: Hewlett-Packard driver: rtw_8822ce v: N/A port: e000
    bus-ID: 03:00.0
  IF: wlo1 state: up mac: <filter>
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Hewlett-Packard driver: r8169 v: kernel port: d000 bus-ID: 04:00.0
  IF: eno1 state: up speed: 100 Mbps duplex: full mac: <filter>
  IF-ID-1: br-3634ee032338 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-2: br-5068a96795ba state: down mac: <filter>
  IF-ID-3: br-5622e6b193cb state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-4: br-5c6318df5ff7 state: up speed: -1 duplex: unknown
    mac: <filter>
  IF-ID-5: br-6c9e65059b26 state: down mac: <filter>
  IF-ID-6: br-7f061b51a658 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-7: br-898979e2f3d8 state: down mac: <filter>
  IF-ID-8: br-8dc12c0da993 state: down mac: <filter>
  IF-ID-9: br-bb0600e32459 state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-10: br-d2d5c76b49a6 state: down mac: <filter>
  IF-ID-11: br-e4a5e44f3a8c state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-12: br-e5001acb692c state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-13: br-e55b7d566fbe state: up speed: 10000 Mbps duplex: unknown
    mac: <filter>
  IF-ID-14: docker0 state: down mac: <filter>
  IF-ID-15: veth1f5dbe9 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-16: veth3af50c4 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-17: veth7cdb7ef state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-18: veth8759a05 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-19: veth9c0b6eb state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-20: vetha013069 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
  IF-ID-21: vethd51fdc4 state: up speed: 10000 Mbps duplex: full
    mac: <filter>
Bluetooth:
  Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8
    bus-ID: 1-4:3
  Report: rfkill ID: hci0 rfk-id: 1 state: up address: see --recommends
Drives:
  Local Storage: total: 476.94 GiB used: 314.87 GiB (66.0%)
  ID-1: /dev/nvme0n1 vendor: Intel model: SSDPEKNW512G8H size: 476.94 GiB
    temp: 34.9 C
Partition:
  ID-1: / size: 468.09 GiB used: 314.87 GiB (67.3%) fs: ext4
    dev: /dev/nvme0n1p2
  ID-2: /boot/efi size: 299.4 MiB used: 288 KiB (0.1%) fs: vfat
    dev: /dev/nvme0n1p1
Swap:
  Alert: No swap data was found.
Sensors:
  System Temperatures: cpu: 68.0 C mobo: N/A gpu: amdgpu temp: 72.0 C
  Fan Speeds (RPM): N/A
Info:
  Processes: 385 Uptime: 28m Memory: 13.64 GiB used: 8.73 GiB (64.1%)
  Init: systemd Compilers: gcc: 12.1.0 clang: 13.0.1 Packages: 1811
  Shell: Zsh v: 5.9 inxi: 3.3.16

SOLVE:

For every one who will have same problem what i done to solve it:

  1. Create Swap file (when you will read topic in manjaro site scroll little bit more to topic about file, cause i was confused about swap partition)
  2. Clear docker
    cause i’m a web developer i had a lot of containers, i’m just killed all of them and cleared cache. You can do this with two simple commands:
docker kill $(docker ps -q)
docker system prune -a   
  1. Clean PC fans. I had high temperature. After removing dust temperature had normilized!

P.S: (I’m so sorry for my english, it’s not my native language and i can make a lot of dummy mistakes :D)

This sounds like its getting to hot. Can you rule out this?

Let’s hope there weren’t too many casualties.

As for the lag itself; take a closer look at htop and free -m when it happens. Is cpu at 100%? What process is it? Is RAM full? (As @linux-aarhus pointed below, no swap and full ram cause these exact symptoms)
Check journalctl for relevant entries when it happens. Perhaps try journalctl -kg "killed process".

I also see you have quite a few docker containers, I presume, running. Could those be culprit?

I suggest you setup swap - Swap - Manjaro

A little swap is better than none at all

Temperature looks high to me - Is your system clogging with dust?

Something is putting your system to work almost immediately after boot?

What about the docker container?

1 Like

Yes i have some docker’s containers. By the way in time when i run inxy command i had startet webstorm and browser with several tabs.
I’ll try add swap, if it helps i’ll mark it topic and solved

I’ll disable docker for several day’s, may it is problem. Also i’ll post journal when lag occur’s

I had same opinion, but when i playing games my laptop never do this lag… I have this issue for long time and sure about that by 100% :confused:

Webcharm (and all Jetbrains IDEs) are massive RAM eaters. You should setup swap.

This is relatively easy with a swapfile, no need to repartition your disk. If you don’t have encryption or use hibernation (or god forbid both), it’s very simple to try out.

Thank you for tip. I created swap file already and seems like it helps!
For every one who will have same problem what i done to solve it:

  1. Create Swap file (when you will read topic in manjaro site scroll little bit more to topic about file, cause i was confused about swap partition)
  2. Clear docker ( cause i’m a web developer i had a lot of containers, i’m just killed all of them and cleared cache. You can do this with two simple commands:
docker kill $(docker ps -q)
docker system prune -a   

)
3. Clean PC fans. I had high temperature. After removing dust temperature had normilized!

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