High RAM usage on system

Hey,

currently on idle my manjaro gnome system needs above 4 gb of ram, why is there?


When I sort my processes descending by ram usage the highest process takes about 400 mb…

above :smiley:

More important question, how it looks after a fresh boot.

And what means idle for you? did you closed all applications?

I recently heared that KDE is less Ram hungry than Gnome.

Anyways, Htop (i hope Htop works under gnome too) would give you maybe a better overview.

1 Like

Instead of the pretty useless picture better post the specific processes actually using your RAM. :wink:

1 Like

Hey @NachoImperium, I can do the same… Linux eats all my RAM!

Show:

free -h
# and
pamac install base-devel
pamac build smem
smem -ntka 
2 Likes

 PID User Command                                                                            Swap     USS     PSS     RSS 
 23872 1000 bwrap --args 43 -- Postman                                                            0   68.0K  128.0K  328.0K 
 23909 1000 bwrap --args 43 -- xdg-dbus-proxy --args=45                                           0  132.0K  132.0K  276.0K 
 23913 1000 bwrap --args 43 -- Postman                                                            0  120.0K  180.0K  376.0K 
 23906 1000 server --sh -n /run/user/1000/.flatpak-helper/pkcs11-flatpak-23898 --provider p       0  284.0K  284.0K  396.0K 
  2058 1000 /usr/bin/dbus-broker-launch --config-file=/usr/share/defaults/at-spi2/accessibi       0  300.0K  300.0K  444.0K 
 24019 1000 /app/extra/Postman/chrome_crashpad_handler --monitor-self-annotation=ptype=cras       0  308.0K  334.0K  476.0K 
 96208 1000 /opt/discord/chrome_crashpad_handler --monitor-self-annotation=ptype=crashpad-h       0  336.0K  337.0K  536.0K 
 20709 1000 /usr/lib/brave-browser/chrome_crashpad_handler --no-periodic-tasks --monitor-se       0  340.0K  340.0K  508.0K 
 23927 1000 /bin/sh /app/bin/Postman                                                              0  356.0K  362.0K  432.0K 
  1958 1000 /usr/lib/gnome-session-ctl --monitor                                                  0  384.0K  384.0K  636.0K 
  2059 1000 dbus-broker --log 4 --controller 9 --machine-id 0ff8077d15434b21a588313b1fed69b       0  324.0K  391.0K    1.2M 
 93597 1000 /usr/lib/evinced                                                                      0  472.0K  472.0K  724.0K 
  1921 1000 /usr/lib/gdm-wayland-session /usr/bin/gnome-session                                   0  500.0K  500.0K  752.0K 
  2067 1000 /usr/lib/xdg-permission-store                                                         0  520.0K  520.0K  772.0K 
 23910 1000 xdg-dbus-proxy --args=45                                                              0  532.0K  532.0K  784.0K 
 16483 1000 /usr/bin/gpg-agent --supervised                                                       0  508.0K  574.0K    1.3M 
 16485 1000 scdaemon --multi-server                                                               0  552.0K  575.0K  940.0K 
  2143 1000 /usr/lib/gsd-screensaver-proxy                                                        0  560.0K  580.0K    2.0M 
 23898 1000 /usr/lib/flatpak-session-helper                                                       0  628.0K  646.0K    1.9M 
  2105 1000 /usr/lib/gsd-a11y-settings                                                            0  644.0K  664.0K    2.1M 
  1909 1000 /usr/bin/dbus-broker-launch --scope user                                              0  436.0K  671.0K    1.9M 
  2240 1000 /usr/lib/ibus/ibus-dconf                                                              0  684.0K  684.0K  936.0K 
  2441 1000 /usr/lib/gvfs-mtp-volume-monitor                                                      0  732.0K  732.0K  984.0K 
  2391 1000 /usr/lib/xdg-document-portal                                                          0  716.0K  735.0K    2.2M 
  2140 1000 /usr/lib/gsd-rfkill                                                                   0  736.0K  755.0K    2.1M 
  2061 1000 /usr/lib/at-spi2-registryd --use-gnome-session                                        0  740.0K  767.0K    2.3M 
  1995 1000 /usr/lib/gvfsd-fuse /run/user/1000/gvfs -f                                            0  780.0K  780.0K    1.0M 
  2052 1000 /usr/lib/at-spi-bus-launcher                                                          0  720.0K  810.0K    3.2M 
  2176 1000 /usr/lib/gsd-usb-protection                                                           0  828.0K  847.0K    2.2M 
  2453 1000 /usr/lib/gvfs-gphoto2-volume-monitor                                                  0  864.0K  864.0K    1.1M 
 20707 1000 /usr/lib/brave-browser/chrome_crashpad_handler --monitor-self --monitor-self-an       0  876.0K  877.0K    1.1M 
  2431 1000 /usr/lib/gvfs-goa-volume-monitor                                                      0  888.0K  888.0K    1.1M 
  2631 1000 /usr/lib/pulse/gsettings-helper                                                       0  928.0K  928.0K    1.2M 
  2498 1000 /usr/lib/ibus/ibus-engine-simple                                                      0  904.0K 1018.0K    2.6M 
  2262 1000 /usr/lib/ibus/ibus-portal                                                             0    1.0M    1.0M    2.3M 
  2154 1000 /usr/lib/gsd-smartcard                                                                0    1.0M    1.1M    2.4M 
  2167 1000 /usr/lib/gsd-sound                                                                    0    1.1M    1.1M    2.5M 
  2447 1000 /usr/lib/gvfs-afc-volume-monitor                                                      0    1.1M    1.1M    1.4M 
  2338 1000 /home/tobias/.local/share/JetBrains/Toolbox/bin/jetbrains-toolbox --minimize          0    1.1M    1.1M    1.5M 
 20716 1000 /usr/lib/brave-browser/brave --type=zygote --string-annotations --crashpad-hand       0  144.0K    1.2M   20.2M 
  2600 1000 /usr/lib/dconf-service                                                                0    1.3M    1.3M    3.4M 
  2107 1000 /usr/lib/gsd-datetime                                                                 0    1.3M    1.4M    2.7M 
  2108 1000 /usr/lib/gsd-housekeeping                                                             0    1.3M    1.4M    3.3M 
 20723 1000 /usr/lib/brave-browser/brave --type=zygote --string-annotations --crashpad-hand       0  248.0K    1.4M   21.4M 
  2405 1000 /usr/lib/goa-identity-service                                                         0    1.5M    1.5M    2.0M 
  2303 1000 /usr/lib/gsd-disk-utility-notify                                                      0    1.4M    1.5M    3.2M 
  3335 1000 /usr/lib/gvfsd-metadata                                                               0    1.5M    1.5M    3.5M 
  2145 1000 /usr/lib/gsd-sharing                                                                  0    1.4M    1.5M    3.2M 
  2521 1000 /usr/bin/pipewire                                                                     0    1.6M    1.6M    1.8M 
  2128 1000 /usr/lib/gsd-print-notifications                                                      0    1.4M    1.6M    3.4M 
124284 1000 zsh                                                                                   0  204.0K    1.6M    4.9M 
123857 1000 zsh                                                                                   0    1.1M    1.7M    4.0M 
124283 1000 zsh                                                                                   0  208.0K    1.7M    5.2M 
  1989 1000 /usr/lib/gvfsd                                                                        0    1.6M    1.7M    3.5M 
124286 1000 /usr/share/zsh-theme-powerlevel10k/gitstatus/usrbin/gitstatusd -G v1.5.4 -s -1        0    1.2M    1.7M    4.3M 
 18620 1000 /usr/lib/gvfsd-network --spawner :1.17 /org/gtk/gvfs/exec_spaw/2                      0    1.8M    1.8M    2.0M 
 16419 1000 /usr/lib/gvfsd-trash --spawner :1.17 /org/gtk/gvfs/exec_spaw/0                        0    2.0M    2.0M    3.2M 
  1926 1000 /usr/lib/gnome-session-binary                                                         0    2.1M    2.1M    2.4M 
  2590 1000 /usr/lib/gsd-printer                                                                  0    2.2M    2.2M    2.5M 
  2267 1000 /usr/bin/touchegg                                                                     0    2.3M    2.3M    3.7M 
  2523 1000 /usr/bin/wireplumber                                                                  0    2.6M    2.6M    2.9M 
  1960 1000 /usr/lib/gnome-session-binary --systemd-service --session=gnome                       0    3.1M    3.1M    5.1M 
  2234 1000 /usr/lib/gvfs-udisks2-volume-monitor                                                  0    3.1M    3.2M    5.2M 
  1903 1000 /usr/bin/gnome-keyring-daemon --foreground --components=pkcs11,secrets --contro       0    3.1M    3.2M    5.0M 
 18221 1000 /usr/lib/gvfsd-recent --spawner :1.17 /org/gtk/gvfs/exec_spaw/1                       0    3.2M    3.2M    5.1M 
  2109 1000 /usr/lib/gsd-keyboard                                                                 0    3.5M    3.5M    5.3M 
  1910 1000 dbus-broker --log 4 --controller 9 --machine-id 0ff8077d15434b21a588313b1fed69b       0    3.6M    3.7M    4.1M 
  2106 1000 /usr/lib/gsd-color                                                                    0    3.7M    3.7M    5.8M 
  2381 1000 /usr/lib/xdg-desktop-portal                                                           0    3.7M    3.8M    6.1M 
  2386 1000 /usr/lib/goa-daemon                                                                   0    3.9M    3.9M    4.2M 
123850 1000 zsh                                                                                   0    3.3M    4.3M    8.7M 
 96190 1000 /opt/discord/Discord --type=zygote                                                    0  156.0K    4.4M   13.5M 
  2068 1000 /usr/lib/gnome-shell-calendar-server                                                  0    4.4M    4.4M    4.7M 
  2114 1000 /usr/lib/gsd-media-keys                                                               0    4.2M    4.4M    7.0M 
 96193 1000 /opt/discord/Discord --type=zygote                                                    0  248.0K    4.4M   13.2M 
  2182 1000 /usr/lib/gsd-wacom                                                                    0    4.4M    4.5M    6.3M 
 20918 1000 gjs -m /usr/share/gnome-shell/extensions/gsconnect@andyholmes.github.io/service       0    4.6M    4.6M    4.9M 
  2241 1000 /usr/bin/gjs -m /usr/share/gnome-shell/org.gnome.ScreenSaver                          0    5.1M    5.1M    5.4M 
  2415 1000 /usr/lib/evolution-calendar-factory                                                   0    5.1M    5.1M    5.4M 
  2746 1000 /usr/lib/ibus/ibus-x11                                                                0    5.1M    5.3M    7.7M 
  2104 1000 /usr/bin/ibus-daemon --panel disable                                                  0    5.5M    5.6M    7.6M 
122480 1000 /usr/lib/brave-browser/brave --type=utility --utility-sub-type=data_decoder.moj       0    1.3M    5.9M   56.3M 
  2744 1000 /usr/lib/xdg-desktop-portal-gtk                                                       0    5.9M    5.9M    7.8M 
  2477 1000 /usr/lib/evolution-addressbook-factory                                                0    5.6M    6.1M    9.8M 
  2119 1000 /usr/lib/gsd-power                                                                    0    6.1M    6.2M    8.4M 
 24001 1000 /app/extra/Postman/postman --type=zygote --no-zygote-sandbox --no-sandbox             0    1.2M    6.2M   11.7M 
 23933 1000 /app/extra/Postman/Postman                                                            0    6.5M    6.5M    6.5M 
 20771 1000 /usr/lib/brave-browser/brave --type=utility --utility-sub-type=storage.mojom.St       0    4.1M    6.5M   38.5M 
  2090 1000 /usr/bin/gjs -m /usr/share/gnome-shell/org.gnome.Shell.Notifications                  0    5.5M    7.0M   12.2M 
 96189 1000 /opt/discord/Discord --type=zygote --no-zygote-sandbox                                0    1.4M    7.2M   13.5M 
 24111 1000 p11-kit-remote --provider p11-kit-trust.so pkcs11:model=p11-kit-trust?write-pro       0    7.4M    7.5M    7.8M 
  2296 1000 /usr/bin/msm_notifier                                                                 0    9.7M    9.7M   10.2M 
 20715 1000 /usr/lib/brave-browser/brave --type=zygote --no-zygote-sandbox --string-annotat       0    1.4M   10.5M   20.3M 
  2242 1000 /usr/lib/ibus/ibus-extension-gtk3                                                     0   10.9M   11.0M   12.8M 
 24002 1000 /app/extra/Postman/postman --type=zygote --no-sandbox                                 0   11.1M   11.1M   11.6M 
124440 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0    4.9M   12.0M   77.5M 
 24166 1000 /app/extra/Postman/postman --type=utility --utility-sub-type=audio.mojom.AudioS       0   11.7M   12.0M   13.3M 
  2220 1000 /usr/lib/evolution-source-registry                                                    0   13.6M   13.8M   16.3M 
  2657 1000 /usr/lib/gsd-xsettings                                                                0   13.7M   13.8M   16.3M 
  2524 1000 /usr/bin/pulseaudio --daemonize=no --log-target=journal                               0   13.7M   14.4M   16.8M 
 20802 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0   12.7M   14.6M   46.3M 
 20881 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0   12.0M   14.7M   57.7M 
 96385 1000 /opt/discord/Discord --type=utility --utility-sub-type=audio.mojom.AudioService       0   14.1M   15.8M   22.7M 
115902 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0   10.5M   16.1M   86.8M 
  2250 1000 /usr/lib/evolution-data-server/evolution-alarm-notify                                 0   18.2M   18.2M   19.3M 
 22129 1000 /usr/lib/brave-browser/brave --type=utility --utility-sub-type=audio.mojom.Audi       0   18.6M   19.4M   31.0M 
 20779 1000 /usr/lib/brave-browser/brave --type=utility --utility-sub-type=brave_rewards.mo       0   18.5M   19.4M   29.1M 
  2251 1000 /usr/bin/python /usr/bin/blueman-applet                                               0   20.9M   21.3M   23.2M 
 24049 1000 /app/extra/Postman/postman --type=utility --utility-sub-type=network.mojom.Netw       0   17.7M   21.6M   29.1M 
 16496 1000 /usr/lib/tracker-miner-fs-3                                                           0   21.3M   22.6M   29.2M 
  2541 1000 gjs -m /usr/share/gnome-shell/extensions/gsconnect@andyholmes.github.io/service       0   21.5M   24.1M   30.9M 
 96249 1000 /opt/discord/Discord --type=utility --utility-sub-type=network.mojom.NetworkSer       0   22.8M   28.5M   40.9M 
115991 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0   28.8M   33.1M  100.9M 
 16371 1000 python3 /usr/lib/lollypop/lollypop-sp                                                 0   31.7M   33.2M   38.9M 
128695 1000 python /usr/bin/smem -ntka                                                            0   36.6M   37.7M   41.2M 
123797 1000 /usr/lib/gnome-terminal-server                                                        0   27.3M   37.8M   59.2M 
119233 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0   32.1M   38.5M  122.6M 
 20753 1000 /usr/lib/brave-browser/brave --type=utility --utility-sub-type=network.mojom.Ne       0   47.1M   51.4M   80.8M 
  2755 1000 /usr/lib/mutter-x11-frames                                                            0   60.0M   62.6M   68.4M 
  2466 1000 /usr/bin/Xwayland :0 -rootless -noreset -accessx -core -auth /run/user/1000/.mu       0   62.5M   65.5M   71.6M 
 96565 1000 /opt/discord/Discord --type=renderer --crashpad-handler-pid=96208 --enable-cras       0   52.9M   69.9M  100.6M 
120551 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0   63.8M   71.4M  160.0M 
 93590 1000 /usr/bin/evince /home/tobias/Downloads/Meetdocs_Korrekturen_02.pdf                    0   80.0M   84.2M   92.0M 
 96159 1000 /opt/discord/Discord                                                                  0   75.3M   87.6M  114.3M 
 96238 1000 /opt/discord/Discord --type=gpu-process --crashpad-handler-pid=96208 --enable-c       0   70.4M   92.5M  126.4M 
 16368 1000 /usr/bin/gnome-calendar --gapplication-service                                        0   97.3M   97.5M   99.3M 
102318 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0   95.7M  100.1M  166.5M 
124431 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0   79.3M  101.7M  220.4M 
115887 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0   98.2M  103.2M  175.1M 
122530 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0   83.8M  106.2M  224.6M 
 23958 1000 /app/extra/Postman/postman --no-sandbox                                               0  103.1M  109.8M  119.9M 
 24043 1000 /app/extra/Postman/postman --type=gpu-process --no-sandbox --crashpad-handler-p       0  104.7M  114.4M  127.4M 
 49504 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0  120.0M  125.3M  198.3M 
116187 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0  139.1M  145.4M  226.8M 
 93476 1000 /usr/bin/nautilus --gapplication-service                                              0  152.1M  152.8M  157.3M 
115723 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0  164.3M  170.2M  249.1M 
 20752 1000 /usr/lib/brave-browser/brave --type=gpu-process --string-annotations --crashpad       0  142.8M  171.6M  232.5M 
107554 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0  196.2M  203.8M  282.5M 
  1983 1000 /usr/bin/gnome-shell                                                                  0  194.6M  208.8M  238.1M 
  2591 1000 /usr/lib/xdg-desktop-portal-gnome                                                     0  234.6M  234.8M  237.4M 
 24068 1000 /app/extra/Postman/postman --type=renderer --crashpad-handler-pid=23 --enable-c       0  327.3M  335.5M  347.5M 
 96331 1000 /opt/discord/Discord --type=renderer --crashpad-handler-pid=96208 --enable-cras       0  365.6M  385.0M  422.8M 
117086 1000 /usr/lib/brave-browser/brave --type=renderer --string-annotations --crashpad-ha       0  382.6M  391.3M  477.4M 
 20697 1000 /usr/lib/brave-browser/brave                                                          0  443.6M  458.9M  526.2M 
  2309 1000 ./jetbrains-toolbox --minimize                                                        0  595.5M  599.9M  612.9M 
----------------------------------------------------------------------------------------------------------------------------
   145 1                                                                                          0    5.1G    5.5G    7.4G 

You can also check what App takes how much RAM… Example:

smem -ntka -P brave

It can already be seen that brave needs the most memory. Postman and Discord each start their own Electron/Chrome instance. However, it is still not surprising. Programs always try to use as much memory as possible and necessary to avoid read/write operations, which makes it faster. Unused memory is wasted memory. Please understand that there is difference in memory managment berween OS’s. While Windows memory managment is “file-based”, on Linux it is global.

Must also be mentioned: Flatpaks take more memory because the libraries are not globally shared, but sandboxed and different to system libraries.

The obligatory: https://www.linuxatemyram.com/

3 Likes

Why do need so much free memory? What good does free memory do? Be happy that your investment into this machine is actually of good use.

That’s not the problem.
The problem is, that sometimes my system laggs and closes applications due to ram…

Okay, but that’s not the issue you described in your first post.

Then you should either not use these massive Electron apps, invest in more RAM, or maybe set up a swap partition (or file).

3 Likes

Nice… now it turns out to be a XY problem.

Well then create/add a swap? A zRAM could be useful:

or just use traditional swap. Anyway… swap is not mandatory, but it makes systems more robust and stable.

1 Like

The problem is that you do not have any swap defined – none, nada!

If the screenshot of data is consistent with posted data
Gnome + Brave + Discord + Postman is using < 50% RAM

A bit of free space can be useful for avoiding use of Swap space

But OP claim of High RAM usage is not consistent with screenshots of data

I don’t understand users that consider a system that uses less available resources is a good thing

2 Likes

Loading everything in RAM is also one thing that i like and prefer. There is nothing to say against using empty RAM, the problem is when the RAM is need and if the demanding new Task will gain his space in the right time or not.

When gnome still demand this RAM and forced the new Task to use swap, then i would think twice if i would use a Ram hungry DE like this.

But i don’t know the answer, if this the case here.

Ok thank you.
Yeah my main question was, that I’ve never had this issues like 5-6 months ago.
Taht’s the weird thing, but maybe these apps use more ram than 5-6 months before…

And I know electron apps and there are ram hungry as fu*k.

I’m gonna add a swap file now, because I wanna buy a new PC in 4 months so it’s not the best investo to buy 16GB more RAM.

You clearly need swap irrespective of whether you add RAM; though, more RAM would be an advantage.

Good luck.

1 Like

Yeah I’m gonna create a swap partition.

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