When few number of programs are opened, the system keeps lagging and te system hangs, with high CPU usage shown in System Monitor and nohang notification keeps popping up.
Here's a screenshot of applications open and cpu usage.
Could you post
inxi -Fxxxza
as text, no pic's please.
System: Kernel: 5.9.11-zen2-1-zen x86_64 bits: 64 compiler: gcc v: 10.2.0
parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
root=UUID=d3bb8e07-9084-43e0-9259-de6b498bfd1c rw rootflags=subvol=@ quiet splash
rd.udev.log_priority=3 vt.global_cursor_default=0
systemd.unified_cgroup_hierarchy=1 loglevel=3
Desktop: KDE Plasma 5.20.4 tk: Qt 5.15.2 info: latte-dock wm: kwin_x11 dm: SDDM
Distro: Garuda Linux
Machine: Type: Laptop System: HP product: HP Pavilion Gaming Laptop 15-ec0xxx v: N/A
serial: <filter> Chassis: type: 10 serial: <filter>
Mobo: HP model: 86D5 v: 96.44 serial: <filter> UEFI: AMI v: F.10 date: 08/25/2020
Battery: ID-1: BAT0 charge: 16.3 Wh condition: 44.0/44.0 Wh (100%) volts: 10.8/11.6
model: Hewlett-Packard Primary type: Li-ion serial: N/A status: Discharging
cycles: 395
CPU: Info: Quad Core model: AMD Ryzen 5 3550H with Radeon Vega Mobile Gfx bits: 64
type: MT MCP arch: Zen+ family: 17 (23) model-id: 18 (24) stepping: 1
microcode: 8108109 L2 cache: 2048 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
bogomips: 33536
Speed: 1659 MHz min/max: 1400/2100 MHz boost: enabled Core speeds (MHz): 1: 1251
2: 1314 3: 1283 4: 1256 5: 1222 6: 1450 7: 1221 8: 1358
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: disabled, RSB filling
Type: srbds status: Not affected
Type: tsx_async_abort status: Not affected
Graphics: Device-1: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Hewlett-Packard
driver: nvidia v: 455.45.01 alternate: nouveau,nvidia_drm bus ID: 01:00.0
chip ID: 10de:1f91
Device-2: AMD Picasso vendor: Hewlett-Packard driver: amdgpu v: kernel
bus ID: 05:00.0 chip ID: 1002:15d8
Device-3: Luxvisions Innotech Limited HP TrueVision HD Camera type: USB
driver: uvcvideo bus ID: 3-1:2 chip ID: 30c9:0013 serial: <filter>
Display: x11 server: X.org 1.20.10 compositor: kwin_x11 driver: amdgpu,nvidia
unloaded: modesetting alternate: ati,fbdev,nouveau,nv,vesa
resolution: <missing: xdpyinfo>
OpenGL: renderer: AMD Radeon Vega 8 Graphics (RAVEN DRM 3.39.0 5.9.11-zen2-1-zen
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: Hewlett-Packard 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: Hewlett-Packard driver: snd_hda_intel
v: kernel bus ID: 05:00.6 chip ID: 1022:15e3
Sound Server: ALSA v: k5.9.11-zen2-1-zen
Network: Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter
vendor: Hewlett-Packard driver: rtw_8822ce v: N/A modules: rtw88_8822ce port: e000
bus ID: 03:00.0 chip ID: 10ec:c822
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
chip ID: 10ec:8168
IF: eno1 state: down mac: <filter>
IF-ID-1: docker0 state: down mac: <filter>
Drives: Local Storage: total: 1.03 TiB used: 340.24 GiB (32.4%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/nvme0n1 vendor: Western Digital model: PC SN520 SDAPNUW-128G-1006
size: 119.24 GiB block size: physical: 512 B logical: 512 B speed: 15.8 Gb/s
lanes: 2 serial: <filter> rev: 20120006 scheme: GPT
ID-2: /dev/sda vendor: Western Digital model: WD10SPZX-60Z10T0 size: 931.51 GiB
block size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s rotation: 5400 rpm
serial: <filter> rev: 1A04 scheme: MBR
Partition: ID-1: / raw size: 96.00 GiB size: 96.00 GiB (100.00%) used: 14.98 GiB (15.6%)
fs: btrfs dev: /dev/sda2
ID-2: /home raw size: 96.00 GiB size: 96.00 GiB (100.00%) used: 14.98 GiB (15.6%)
fs: btrfs dev: /dev/sda2
ID-3: /var/log raw size: 96.00 GiB size: 96.00 GiB (100.00%)
used: 14.98 GiB (15.6%) fs: btrfs dev: /dev/sda2
ID-4: /var/tmp raw size: 96.00 GiB size: 96.00 GiB (100.00%)
used: 14.98 GiB (15.6%) fs: btrfs dev: /dev/sda2
Swap: Kernel: swappiness: 10 (default 60) cache pressure: 75 (default 100)
ID-1: swap-1 type: partition size: 4.00 GiB used: 0 KiB (0.0%) priority: -2
dev: /dev/sda3
ID-2: swap-2 type: zram size: 734.5 MiB used: 170.6 MiB (23.2%) priority: 32767
dev: /dev/zram0
ID-3: swap-3 type: zram size: 734.5 MiB used: 189.5 MiB (25.8%) priority: 32767
dev: /dev/zram1
ID-4: swap-4 type: zram size: 734.5 MiB used: 163.9 MiB (22.3%) priority: 32767
dev: /dev/zram2
ID-5: swap-5 type: zram size: 734.5 MiB used: 178.9 MiB (24.4%) priority: 32767
dev: /dev/zram3
ID-6: swap-6 type: zram size: 734.5 MiB used: 166.9 MiB (22.7%) priority: 32767
dev: /dev/zram4
ID-7: swap-7 type: zram size: 734.5 MiB used: 179.2 MiB (24.4%) priority: 32767
dev: /dev/zram5
ID-8: swap-8 type: zram size: 734.5 MiB used: 177.0 MiB (24.1%) priority: 32767
dev: /dev/zram6
ID-9: swap-9 type: zram size: 734.5 MiB used: 190.9 MiB (26.0%) priority: 32767
dev: /dev/zram7
Sensors: System Temperatures: cpu: 51.8 C mobo: N/A gpu: amdgpu temp: 51.0 C
Fan Speeds (RPM): N/A
Info: Processes: 315 Uptime: 2h 54m wakeups: 1 Memory: 5.74 GiB used: 4.17 GiB (72.7%)
Init: systemd v: 247 Compilers: gcc: 10.2.0 Packages: 1186 pacman: 1180 lib: 311
flatpak: 6 Shell: fish v: 3.1.2 running in: konsole inxi: 3.1.09
Please use ~~~ in first and last line.
Sorry I am new to the forum.
I applied a swap of 4GB won't that work? My ram is actually of 8 gigs but 2 is used by integrated graphics
Take 16 GB its fast (ID-1: /dev/nvme0n1) but I am not an expert for this.
I noticed that whatever is the usage of ram and swap (even at the extremities like the aforementioned) it never exceeds 5.7GB which is my ram capacity i.e.I am assuming the swap memory is never used. Is that so? And also the Stats in the System monitor shows my ram is 5.7 and swap is 9.7(i.e. 5.7+4) is this normal?
Yes, we use zram for cpu
A Gaming Laptop with less RAM (and -2 GB for GPU) is really …
If possible buy RAM, BIOS seems fresh, how old is the Laptop?
Yes the RAM for a Gaming laptop is just minimal , the laptop is 4 months old.
What happens when you run fewer applications?
6GB RAM is not very much now - just a browser with a few tabs open will easily use 2-4GB.
When running fewer apps it works fine without any issue
So I guess the issue is with the ram capacity.....
Yup - you're seeing the result of running out of RAM and how Garuda uses ZRAM rather than plain swap.
Normally, your PC would slowly grind to a halt as memory was swapped to the disk-based swap file. Disks are slow (even SSDs) compared to RAM.
With how Garuda uses ZRAM, memory is compressed to try and avoid writing to disk. It's definitely faster than swapping to disk, but will use a lot of CPU if it's being used heavily.
Without swap, your PC would simply freeze (or crash, depending) when it ran out of available RAM (which is why having some swap is generally a good idea).
Unfortunately there's only two real solutions to not having enough RAM:
- run fewer applications
- buy more RAM
Thanks a lot for pin pointing the reason and the solution @SGS @jonathon, and yes this btrfs, zen linux and zram and not forgetting to mention the best part - the overall UI of the dragonzed version is the reason for me shifting to Garuda from stalk Archlinux running alongwith KDE Plasma, love the overall performance
Perhaps Xfce or one of the Window Managers may provide you better efficiency? The available artwork, theming, etc., while not quite as stylized as @dr460nf1r3’s release, might fill some of those holes while not running on your resources razor’s edge?
regards
Yes this does the work thankyou @Bro but with limited scope as opening a few more tabs in browser or apps reinitiates the problem as ram gets filled up
Yeah, the thing with Garuda is it is built to sacrifice RAM to increased optimization + services. It really demands a higher amount of RAM to provide the most efficient usage of the system. But, hey, it shouldn't be difficult to add a bit more, assuming it is in your budget at this time. I note the 12 gigs on my desktop machine and the 8 gig laptop both run efficiently.
If that is not the case, perhaps you might be able to eliminate say, unneeded systemd services?
And, as someone else already stated, even in cases where RAM is nearly/fully consumed, Garuda is built to handle OOM problems in a more elegant manner than your run of the mill distribution. I tell ya, these folks know how to make a hip 'n' slick distro.
regards
A new 8gb ram is affordable for me rn, but the problem is that my laptop's ram are placed in dual channel, thus blocking both the slots with 4 gigs each. For upgradation I have to discard one stick for the new one . Dont't know what to do of the old one.