this post was submitted on 20 Jul 2024
10 points (91.7% liked)

libre

9655 readers
1 users here now

Welcome to libre

A comm dedicated to the fight for free software with an anti-capitalist perspective.

The struggle for libre computing cannot be disentangled from other forms of socialist reform. One must be willing to reject proprietary software as fiercely as they would reject capitalism. Luckily, we are not alone.

libretion

Resources

  1. Free Software, Free Society provides an excellent primer in the origins and theory around free software and the GNU Project, the pioneers of the Free Software Movement.
  2. Switch to GNU/Linux! If you're still using Windows in $CURRENT_YEAR, flock to Linux Mint!; Apple Silicon users will want to check out Asahi Linux.

Rules

  1. Be on topic: Posts should be about free software and other hacktivst struggles. Topics about general tech news should be in the technology comm or programming comm. That doesn't mean all posts have to be serious though, memes are welcome!
  2. Avoid using misleading terms/speading misinformation: Here's a great article about what those words are. In short, try to avoid parroting common Techbro lingo and topics.
  3. Avoid being confrontational: People are in different stages of liberating their computing, focus on informing rather than accusing. Debatebro nonsense is not tolerated.
  4. All site-wide rules still apply

Artwork

founded 3 years ago
MODERATORS
 

What's the lowest ram consumption i can expect on Arch ?

im using Arch with the stock kernel + dwm/st + pure alsa + ~700 packages(~250mb on idle, dwm activated).

top 9 comments
sorted by: hot top controversial new old
[–] marsxyz@hexbear.net 6 points 2 months ago (1 children)

You shouldn't want to decrease your RAM usage. It is there it may as well be used.

https://www.linuxatemyram.com/

[–] Chronicon@hexbear.net 3 points 2 months ago* (last edited 2 months ago)

this

But to be more clear/TLDR, make sure you're looking at "available" RAM not "free" ram (if your tool doesn't show this try free -h), and ignore buffer/cache usage, as the kernel will free this up as needed for other programs, but otherwise uses it to cache/accelerate I/O

[–] PorkrollPosadist@hexbear.net 4 points 2 months ago* (last edited 2 months ago) (1 children)

There's probably lower hanging fruit than this, but if you are aiming for the lowest RAM use possible, don't require compatibility with third party binaries, and don't expect to exceed 4GB, running an i686 build will reduce binary size and memory consumption across the board. There is an unofficial 32 bit version of ArchLinux available (https://archlinux32.org/). Never tried it myself though.

Compiling a custom kernel and vastly limiting the number of enabled features can make an impact. If 250MB is too high, even the choice of filesystem (and number of filesystems mounted) might have considerable implications on memory usage.

The main sticking point is that you are stuck with the binaries Arch ships. Perhaps you can replace some with leaner alternatives versions provided in AUR, but the key to reducing RAM use below where you're at now is going to be completely disabling optional compile-time features.

[–] comrade_pibb@hexbear.net 1 points 2 months ago (1 children)

32 bit Arch sounds sweaty as fuck, no thanks

[–] PorkrollPosadist@hexbear.net 1 points 1 month ago* (last edited 1 month ago)

I would never go back unless I absolutely needed to get something running on a 2003 Dell or something. I just retired a system with 32GB for one with 128GB lmao.

[–] Zvyozdochka@hexbear.net 4 points 2 months ago

Is there a hardware restriction that you're trying to work with, or are you just interested? A fresh install for me (with only the base meta-package and the bootloader) uses about ~160mb. Though this number might be a bit "bloated" simply due to the fact that the kernel will use available memory for disk caching

[–] hello_hello@hexbear.net 3 points 2 months ago* (last edited 2 months ago) (2 children)

The RAM consumption question is hard to answer scientifically. But if you want to reduce your footprint even further you can use Artix to drop systemd and replace it with an init system such as openRC or runit.

You can swap DWM for sway if you want to Wayland proof your desktop without sacrificing that much memory and use foot as your terminal.

In any case your RAM usage will skyrocket if you use any HTML5 web browser (like browsing hexbear).

But really RAM usage on Linux is fine. People say that any unused RAM is wasted RAM and I'd agree. Unless there's a memory leak or anything related to chromium or firefox your RAM usage should remain low. If you really want to push Linux to be even smaller you'd want to look at Puppy-Linux or Damnsmall Linux.

[–] Titou@hexbear.net 4 points 2 months ago

OpenRC is available in AUR, i was thinking about giving it a try

[–] skeletorsass@hexbear.net 2 points 2 months ago

Browser on X11 use a lot of extra memory as well. A lot of pixmap will be loaded.