Skip to content

How to get better performance

Removed before it was archived.

0 points7 comments
Open on Reddit
About this post
Posted
Archived
Deleted on
Score
0 · 50% up
Kind
Text
ID
10fijnf

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.

20 points
unknown author

Deleted before we saved it.

1 points

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.

10 points

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?

7 points
unknown author1 hidden

Deleted before we saved it.

1 points

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.

1 points
  • 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.
5 points
unknown author

Deleted before we saved it.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.