Memory Usage And Low Memory notification

```text
System:    Kernel: 5.15.5-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen
           root=UUID=b535843d-ee6e-4bda-ae28-a47360553dcf rw [email protected] quiet splash
           rd.udev.log_priority=3 vt.global_cursor_default=0 systemd.unified_cgroup_hierarchy=1
           loglevel=3
           Desktop: GNOME 41.1 tk: GTK 3.24.30 wm: gnome-shell dm: GDM 41.0 Distro: Garuda Linux
           base: Arch Linux
Machine:   Type: Laptop System: LENOVO product: 82C6 v: Lenovo V14-ADA
           serial: <superuser required> Chassis: type: 10 v: Lenovo V14-ADA
           serial: <superuser required>
           Mobo: LENOVO model: LNVNB161216 v: No DPK serial: <superuser required> UEFI: LENOVO
           v: E8CN27WW date: 01/15/2021
Battery:   ID-1: BAT0 charge: 28.1 Wh (91.5%) condition: 30.7/30.0 Wh (102.3%) volts: 8.7 min: 7.5
           model: SMP L16M2PB1 type: Li-poly serial: <filter> status: Charging cycles: 139
CPU:       Info: Dual Core model: AMD Ryzen 3 3250U with Radeon Graphics bits: 64 type: MT MCP
           arch: Zen family: 17 (23) model-id: 18 (24) stepping: 1 microcode: 8108109 cache:
           L1: 192 KiB L2: 1024 KiB L3: 4 MiB
           flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
           bogomips: 20760
           Speed: 1816 MHz min/max: 1400/2600 MHz boost: enabled Core speeds (MHz): 1: 2526
           2: 2484 3: 2695 4: 2701
           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
           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: AMD Picasso vendor: Lenovo driver: amdgpu v: kernel bus-ID: 02:00.0
           chip-ID: 1002:15d8 class-ID: 0300
           Device-2: Chicony Integrated Camera type: USB driver: uvcvideo bus-ID: 1-5:2
           chip-ID: 04f2:b624 class-ID: 0e02 serial: <filter>
           Display: x11 server: X.Org 1.21.1.1 compositor: gnome-shell driver: loaded: amdgpu,ati
           unloaded: modesetting,radeon alternate: fbdev,vesa display-ID: :1 screens: 1
           Screen-1: 0 s-res: 1366x768 s-dpi: 96 s-size: 361x203mm (14.2x8.0")
           s-diag: 414mm (16.3")
           Monitor-1: eDP res: 1366x768 hz: 60 dpi: 112 size: 309x173mm (12.2x6.8")
           diag: 354mm (13.9")
           OpenGL:
           renderer: AMD Radeon Vega 3 Graphics (RAVEN2 DRM 3.42.0 5.15.5-zen1-1-zen LLVM 13.0.0)
           v: 4.6 Mesa 21.2.5 direct render: Yes
Audio:     Device-1: AMD Raven/Raven2/Fenghuang HDMI/DP Audio vendor: Lenovo driver: snd_hda_intel
           v: kernel bus-ID: 02:00.1 chip-ID: 1002:15de class-ID: 0403
           Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor vendor: Lenovo
           driver: snd_pci_acp3x v: kernel alternate: snd_rn_pci_acp3x,snd_pci_acp5x
           bus-ID: 02:00.5 chip-ID: 1022:15e2 class-ID: 0480
           Device-3: AMD Family 17h HD Audio vendor: Lenovo driver: snd_hda_intel v: kernel
           bus-ID: 02:00.6 chip-ID: 1022:15e3 class-ID: 0403
           Sound Server-1: ALSA v: k5.15.5-zen1-1-zen running: yes
           Sound Server-2: JACK v: 1.9.19 running: no
           Sound Server-3: PulseAudio v: 15.0 running: no
           Sound Server-4: PipeWire v: 0.3.40 running: yes
Network:   Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter vendor: Lenovo
           driver: rtw_8822ce v: N/A modules: rtw88_8822ce port: 2000 bus-ID: 01:00.0
           chip-ID: 10ec:c822 class-ID: 0280
           IF: wlp1s0 state: up mac: <filter>
Bluetooth: Device-1: Realtek Bluetooth Radio type: USB driver: btusb v: 0.8 bus-ID: 1-6:3
           chip-ID: 0bda:c123 class-ID: e001 serial: <filter>
           Report: bt-adapter ID: hci0 rfk-id: 4 state: up address: <filter>
Drives:    Local Storage: total: 931.51 GiB used: 13.22 GiB (1.4%)
           SMART Message: Required tool smartctl not installed. Check --recommends
           ID-1: /dev/sda maj-min: 8:0 vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB
           block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400
           serial: <filter> rev: LFM3 scheme: GPT
Partition: ID-1: / raw-size: 128 GiB size: 128 GiB (100.00%) used: 13.22 GiB (10.3%) fs: btrfs
           dev: /dev/sda6 maj-min: 8:6
           ID-2: /boot/efi raw-size: 1023 MiB size: 1021 MiB (99.80%) used: 580 KiB (0.1%)
           fs: vfat dev: /dev/sda5 maj-min: 8:5
           ID-3: /home raw-size: 128 GiB size: 128 GiB (100.00%) used: 13.22 GiB (10.3%) fs: btrfs
           dev: /dev/sda6 maj-min: 8:6
           ID-4: /var/log raw-size: 128 GiB size: 128 GiB (100.00%) used: 13.22 GiB (10.3%)
           fs: btrfs dev: /dev/sda6 maj-min: 8:6
           ID-5: /var/tmp raw-size: 128 GiB size: 128 GiB (100.00%) used: 13.22 GiB (10.3%)
           fs: btrfs dev: /dev/sda6 maj-min: 8:6
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
           ID-1: swap-1 type: zram size: 3.28 GiB used: 1.77 GiB (53.9%) priority: 100
           dev: /dev/zram0
Sensors:   Message: No sensor data found. Is lm-sensors configured?
Info:      Processes: 256 Uptime: 4h 51m wakeups: 767 Memory: 3.28 GiB used: 2.46 GiB (75.0%)
           Init: systemd v: 249 tool: systemctl Compilers: gcc: 11.1.0 clang: 13.0.0 Packages:
           pacman: 1119 lib: 297 Client: Unknown Client: garuda-assistant inxi: 3.3.09

I have started using Garuda Gnome version recently. It has been just 2 days and the thing that is happening is "Low Memory' warning message is often showing up. Yet i have not installed/downloaded much software or apps then also much memory space is already used (my laptop has 4gb ram). Also when i run more than two things in one desktop it starts to lag a little bit.

Can we have your inxi -Faz Please

1 Like

Sorry Sir, actually i have no idea what 'inxi-Faz' is.

Post your terminal/konsole in- and output as text (no pictures) from:

inxi -Faz

Put ~~~ above and ~~~ below the text, this will put it into a scrollable box for us.

Without it, you will not receive any help from the Garuda team or your topic is likely to be closed without notice.

Before you open a new help request, read relevant sections of the Arch and Garuda wiki.
Thoroughly search your issue and any error messages in the forum and on the web.

Report everything you have already attempted to solve your problem.

1 Like

Ok goto garuda welcome then garuda assistant then system specs and copy to forum?
Or goto terminal and type inxi -Faz and copy to forum

1 Like

Sir, is it okay now?
is this what I am supposed to do?

i will definitely keep it in mind. It is my first time here.

Yes, but you've removed your problem.
Here (from the edits display):

"I have started using Garuda Gnome version recently. It has been just 2 days and the thing that is happening is "Low Memory' warning message is often showing up. Yet i have not installed/downloaded much software or apps then also much memory space is already used (my laptop has 4gb ram). Also when i run more than two things in one desktop it starts to lag a little bit."

Please copy and paste that back into your OP.

1 Like

now is it okay?

Cool.

Now in a terminal enter this, wait a few second, then copy the output and paste to a new reply (with ~~~ above it and ~~~ below)

top -o %MEM | head -n 20

head: invalid number of lines '20~~~'
sudo: ~~~top: command not found

~~~

top - 16:17:10 up 55 min,  1 user,  load average: 10,56, 4,35, 1,85
Tasks: 629 total,   1 running, 628 sleeping,   0 stopped,   0 zombie
%CPU(s):  0,4 us,  0,4 sy,  0,0 ni, 99,2 id,  0,0 wa,  0,0 hi,  0,0 si,  0,0 st
MiB Spch: 128790,8 total, 112803,1 free,   5115,7 used,  10872,0 buff/cache
MiB Swap: 128790,0 total, 128785,8 free,      4,2 used. 121775,5 avail Spch

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     ZEIT+ BEFEHL                                  
  28417 sgs       17  -3 5581980 848244 387048 S   0,0   0,6   3:55.90 GeckoMain                               
 442441 sgs       19  -1 1326016 579556 123488 S   0,0   0,4   0:07.12 AppRun                                  
  47818 sgs       17  -3 3619980 524128 183220 S   6,7   0,4   4:00.80 Web Content                             
  28612 sgs       17  -3 3054560 382300 126592 S   0,0   0,3   0:34.03 Web Content                             
  28928 sgs       17  -3 3006232 280656 163416 S   0,0   0,2   0:23.53 Web Content                             
   1123 root      10 -10   24,4g 276336  55384 S   6,7   0,2   1:14.55 Xorg                                    
  28608 sgs       17  -3 2792872 268928 119952 S   0,0   0,2   0:14.78 Web Content                             
  28620 sgs       17  -3 2617500 232960 115600 S   0,0   0,2   0:14.12 Web Content                             
  28768 sgs       17  -3   26,5g 204088 103060 S   0,0   0,2   0:07.29 WebExtensions                           
 442842 sgs       20   0 4689148 182600 107608 S   0,0   0,1   0:02.50 github-desktop                          
  28616 sgs       17  -3 2553752 176312 106248 S   0,0   0,1   0:03.08 Web Content                             
 442796 sgs       10 -10  799744 174900  83280 S   0,0   0,1   0:03.56 github-desktop                          
   4994 sgs       10 -10 4729776 170036 108332 S   0,0   0,1   0:01.60 mullvad-gui 

~~~

3 Likes
top - 21:05:15 up  5:32,  1 user,  load average: 0.57, 0.40, 0.55
Tasks: 256 total,   1 running, 255 sleeping,   0 stopped,   0 zombie
%Cpu(s):  3.1 us,  1.6 sy,  0.0 ni, 95.3 id,  0.0 wa,  0.0 hi,  0.0 si,  0.0 st
MiB Mem :   3356.5 total,    192.4 free,   2358.0 used,    806.2 buff/cache
MiB Swap:   3356.0 total,   1823.3 free,   1532.7 used.    591.4 avail Mem

    PID USER      PR  NI    VIRT    RES    SHR S  %CPU  %MEM     TIME+ COMMAND
   4400 kaustab   17  -3 4225636 305048 138072 S   0.0   8.9  29:30.33 GeckoMain
   7597 kaustab   17  -3 2631088 178444  71564 S   0.0   5.2   2:55.12 Web Content
    461 prelockd  20   0  171932 165336 158348 S   0.0   4.8   0:01.19 python3
   2408 kaustab   20   0 4956768 165244  75144 S   0.0   4.8   6:47.91 gnome-shell
   4508 kaustab   17  -3 3312856 147140  85052 S   0.0   4.3  39:55.92 Web Content
   4615 kaustab   17  -3 2497880  92060  66008 S   0.0   2.7   0:16.61 Privileged Cont
   3406 kaustab   20   0   48.8g  88324  50892 S   6.2   2.6  20:12.43 Discord
   3300 kaustab   19  -1   36.6g  80216  62540 S   0.0   2.3   1:41.04 Discord
  12570 kaustab   17  -3 2430368  79988  67368 S   0.0   2.3   0:00.16 Web Content
   5806 kaustab   17  -3 2596788  75992  59408 S   0.0   2.2   0:17.55 Web Content
   4558 kaustab   17  -3 2732940  71304  45572 S   0.0   2.1   0:38.50 WebExtensions
  12642 kaustab   20   0  733508  70376  52700 S   0.0   2.0   0:02.40 nautilus
  12703 kaustab   20   0  578880  56140  43784 S   0.0   1.6   0:03.20 gnome-terminal-

sorry for being so late :pray:

From the Garuda FAQ:
The idle RAM usage is pretty high, how to I reduce it?

Answer

Its widely known that unused RAM is wasted RAM nowadays. In Garuda we use some performance tweaks that might increase RAM usage while improving performance such as zram-generator.
Generally you dont have to worry about this. If you still want to save some RAM you can try disabling systemd services you dont use. This can be done by opening the terminal and typing:

sudo systemctl disable --now

Then press tab instead of enter. It will show you all active services which you can then disable. An example is bluetooth, not everyone uses bluetooth so the service could safely be disabled.

A page about Linux memory usage.
https://www.linuxatemyram.com/
For your system, that looks fine (though I see you just rebooted, so maybe post that again in a while when you've used the system for a bit and/or you're getting low-memory warnings as there might be something with a memory leak.
You're running with the bare minimum for Garuda as it's designed primarily for medium - high performance machines, so you're going to be limited in how many programs you can run at once.
If you keep running out of memory because you have too many apps open (web browsers use a lot of memory these days), I'd suggest using a lightweight distro to free up a gig or so.

Also, you could reduce the memory allocated to your GPU, that'll eek you out a few hundred MB more.

E2A:
Your memory usage:

192.4 free,   2358.0 used,    806.2 buff/cache

the 192MB "Free" is "wasted" RAM, it's not doing anything.
2,358MB "used" is what's actually being used by applications
896MB is the "cached" memory which is being used to increase the responsiveness of your system, but can/will be easily and quickly released when applications actually need it.

How much memory is actually available is "free" + "cached".

2 Likes

The practical solutions are:

  • Run fewer concurrent applications.
  • Run a desktop or window manager that is lighter on resources than GNOME.
  • Install more memory.
5 Likes

yes i will be actually installing another 4gb ram in a month or two

3 Likes

Cannot i include that free space for actual works?
I am actually using Garuda and Windows in dual booting.
128GB is assigned for Garuda.

1 Like

I see gnome in your output use xfce. 4gb is too low. Gnome will eat over a gig of that idle.

Yes, you are correct. So if I install another 4gb ram(total ram will be then 8gb) then this problem might get solved!

It'll be MUCH better. Whether it'll be "solved" will depend on how quickly you get used to the extra memory and therefore push it harder and harder.
8GB is still "kinda" low these days.

Looking at the specs of your laptop, it might be worth saving for an 8GB stick:

Up to 12GB (4GB soldered + 8GB SO-DIMM) DDR4-2400