Are you sure you're not suffering from https://www.linuxatemyram.com/?
Anyways, unless you're on some ancient 4GB RAM system or something, fighting for a couple of 100MB more or less will not affect performance in any way.
Memory usage on my Void Linux desktop, just rebooted, is 533MB, with 2 gettys, acpid, cronyd, cupsd, dbus, gdm, logger, cron equiv, sshd, and virtlockd/virtlogd (for my VMs when running) running as services, plus dwm and one terminal to check memory usage.
Arch uses a bit more resource out of the gate thanks to systemd.
Chances are you have a bunch of services running, even if only to satisfy systemd.
Bottom line question: Why do you think 500mb is too much?
There's also a lot of kernel internals that need more RAM, you are going to need more RAM on a system that has more/better hardware due to relevant support and references and the like needing to be loaded and maintained.
If you care that much about RAM usage, remove NetworkManager and just go with plain WPA supplicant (wpa_supplicant-nl80211@your_iface) and dhcpcd. And wpa_gui if you really must have a GUI.
You might want to provide data, that is, sudo pstree -lTU and sudo systemd-cgtop -b -n 1 -p.
Some but not all and maybe not the most important things, but still more important for performance, other than removing redundant processes are:
Using NVMe SSDs.
Installing and configuring an OOM daemon, such as systemd-oomd.
Turning vm.dirt_writeback{,ratio} way down.
Having swap to preemptively move unused pages to disk so that that RAM can be immediately discarded for new programs.
Keeping Chrome under control, or switching to Firefox (personal, anecdotal experience). U-block Origin works. Or switching to Qutebrowser or similar and starting with JavaScript disabled, only selectively enabling for the page's domain, i.e., the tsh key binding.
Keeping your editor under control. No slow LSP plugins or other plugins. No weird EMACS settings like a friend's I know that I can see redraw on the screen.
Hardware video decode. The right GPU drivers. Vulkan bits installed if used by programs.
10 comments
Is the performance actually poor or are you just trying to lower ram usage? Because it seems like you're confusing the 2.
Deleted before we saved it.
Are you sure you're not suffering from https://www.linuxatemyram.com/?
Anyways, unless you're on some ancient 4GB RAM system or something, fighting for a couple of 100MB more or less will not affect performance in any way.
they're probably on tty if it's that low
500MB Seems reasonable.
Memory usage on my Void Linux desktop, just rebooted, is 533MB, with 2 gettys, acpid, cronyd, cupsd, dbus, gdm, logger, cron equiv, sshd, and virtlockd/virtlogd (for my VMs when running) running as services, plus dwm and one terminal to check memory usage.
Arch uses a bit more resource out of the gate thanks to systemd.
Chances are you have a bunch of services running, even if only to satisfy systemd.
Bottom line question: Why do you think 500mb is too much?
Deleted before we saved it.
There's also a lot of kernel internals that need more RAM, you are going to need more RAM on a system that has more/better hardware due to relevant support and references and the like needing to be loaded and maintained.
If you care that much about RAM usage, remove
NetworkManagerand just go with plain WPA supplicant (wpa_supplicant-nl80211@your_iface) and dhcpcd. Andwpa_guiif you really must have a GUI.You might want to provide data, that is,
sudo pstree -lTUandsudo systemd-cgtop -b -n 1 -p.Some but not all and maybe not the most important things, but still more important for performance, other than removing redundant processes are:
systemd-oomd.vm.dirt_writeback{,ratio}way down.tshkey binding.That's pretty low already tbh
Deleted before we saved it.