this post was submitted on 05 Mar 2026
3 points (66.7% liked)

Linux

16538 readers
70 users here now

Welcome to c/linux!

Welcome to our thriving Linux community! Whether you're a seasoned Linux enthusiast or just starting your journey, we're excited to have you here. Explore, learn, and collaborate with like-minded individuals who share a passion for open-source software and the endless possibilities it offers. Together, let's dive into the world of Linux and embrace the power of freedom, customization, and innovation. Enjoy your stay and feel free to join the vibrant discussions that await you!

Rules:

  1. Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.

  2. Be respectful: Treat fellow community members with respect and courtesy.

  3. Quality over quantity: Share informative and thought-provoking content.

  4. No spam or self-promotion: Avoid excessive self-promotion or spamming.

  5. No NSFW adult content

  6. Follow general lemmy guidelines.

founded 2 years ago
MODERATORS
 

cross-posted from: https://lemmy.eco.br/post/21348187

Olá galera, sou novo por aqui, muito prazer em fazer parte dessa comunidade. Bom eu tenho usado o void Linux na tentativa de dá uma sobrevida ao meu meu velho notebook com um i3 de 1º geração e 4GB de ram. Estou usando o niri windows manager porém mesmo só com o mínimo de coias instaladas ele fica na casa de 1gb de ram e tem bastante travamento.

Além de trocar o HDD por um SDD, o que mais posso fazer para otimizar o meu sistema ?

desde já agradeço a todos que comentarem.

you are viewing a single comment's thread
view the rest of the comments
[–] INeedMana@piefed.zip 3 points 2 days ago (1 children)

I'm not sure how lightweight niri is. Maybe try Sway for a bit? (definitely not Hyprland ;D)

With 4GB of RAM, I would suggest to create a SWAP partition and maybe increase swappiness?

Are the crashes happening because you are running out of RAM? If you monitor # journalctl -f, the crashes happen with OOM?

I don't know the answer, but try to find a Firefox clone that is focused on being lightweight. Vanilla Firefox can be a bit RAM-greedy

[–] AndreProtasio@lemmy.eco.br 1 points 2 days ago (1 children)

Hi there! First of all, thanks for the comment. I’ve actually tried using Void Linux (the musl version) before, but I ran into a lot of trouble configuring it and getting things to work—especially with Btrfs and setting up zram with lz4. I’m not exactly sure why, but while it was fast, it ended up being very unstable.

I had similar issues with Alpine, but even worse; I spent ages just trying to get PipeWire to work.

Just a heads-up: I’m no Linux expert. In fact, I did everything with the help of AI using my Android phone. I'm only using complex distros like Void because this laptop is all I have. I’ll look into your suggestions, though—it’s very possible that I’m just not managed to make the most out of it yet.

One more thing: even though Xorg-based window managers are lighter, most of them are legacy or abandoned projects. Because of that, I always run into errors that cause things to crash or stop working.

Thanks again for the comment!

[–] INeedMana@piefed.zip 1 points 1 day ago (2 children)

tried using Void Linux (the musl version)

(...)

issues with Alpine

the choice of musl based distros was informed one or just coincidence? Maybe you should test glibc too?

I’m no Linux expert

Maybe I should clarify one thing, then. When I wrote # journalctl -f I meant journalctl -f ran by root or via sudo. journalctl ran by just a user will not show everything.
https://unix.stackexchange.com/questions/291729/why-is-the-default-symbol-for-a-user-shell-and-the-default-symbol-for-a-root

Xorg-based window managers are lighter, most of them are legacy or abandoned projects. Because of that, I always run into errors that cause things to crash or stop working.

The "universal" switch to Wayland is not that old, it shouldn't be so bad. Maybe your way forward is to fix the issues you were having with X. For lightweight try i3/awesome or fluxbox

[–] AndreProtasio@lemmy.eco.br 2 points 1 day ago

One more thing: is there a tutorial or a website where I can learn how to properly use musl-based distros? Even though they aren't as widely used, I believe software built on this library can be more performant, so I’d really like to learn more about it.

Thanks again for your time!

[–] AndreProtasio@lemmy.eco.br 2 points 1 day ago (1 children)

Hi! What I meant is that I’m just a hobbyist, not a programmer, so I don't have a deep technical grasp of how things work or the 'why' behind them.

Regarding the journalctl command, if I’m not mistaken, it’s part of systemd. As I said, I could be wrong, but since I’m currently testing Void glibc, it doesn't use systemd. I’ve been trying to keep the system as optimized as possible, even if it's a bit harder to manage.

On the Xorg vs. Wayland topic, my point is exactly how far this transition has come. Many Xorg projects seem stuck in time, and even if it doesn't look like much, some things just run better on Wayland. For example, the foot terminal is very light and responsive even on my hardware—only urxvt comes close. Same goes for niri; since a lot is already built-in, it stays very lightweight if you disable animations and other features.

So, what I'm trying to do is keep my old hardware running with modern software and good performance. But if that’s not possible, I’m open to using older software. At least, I think that’s what you’re suggesting, right? 🙂

Thanks for the help, I’m learning a lot!

Note: My English isn’t the best, so please excuse any misunderstandings.

[–] INeedMana@piefed.zip 1 points 1 day ago (1 children)

I don’t have a deep technical grasp of how things work or the ‘why’ behind them

I think it's not needed in general. You might need to go a bit deeper as your project is a bit of an edge case (4GB RAM for desktop) but I don't think you'll need to learn programming

since I’m currently testing Void glibc, it doesn’t use systemd

Ah, I'm not familiar with Void itself. In that case you want to observe outputs of dmesg and tail -f /var/log/messages to see what the system complains about when the crashes happen

I’m open to using older software. At least, I think that’s what you’re suggesting, right? 🙂

Not exactly. Maybe I've lost grasp with how things look like on X, I've switched to Wayland even before it was universal. My thought is: Wayland might have been developed and tested more on stronger machines. While X definitely remembers the times when 4GB was absurdly a lot. So it might work better with lower specs. But if other software has already moved on, it's probably better idea to make Wayland work

My English isn’t the best, so please excuse any misunderstandings.

It's all good, don't worry about it. Sometimes I wonder if there are more people speaking English as second language than native speakers. I'm not a native speaker either

is there a tutorial or a website where I can learn how to properly use musl-based distros? Even though they aren’t as widely used, I believe software built on this library can be more performant

I haven't heard of any such place. In general Arch wiki is pretty good, even if you don't use that distro

I'm not convinced with musl being more performant. I'm not saying it isn't, just that I'm not convinced.
musl definitely has gotten recognition because of the size of Alpine docker image. Because in containers' world, smaller image means less data to send on update, less data to store in Registry, etc. But I've heard second-hand that some people using containers in production started to switch from Alpine to IIRC debian-slim (glibc) because of performance, while still having a small image. And image size does not really matter in your case, you are not running containers here. But all of that is anecdotal, not hard facts.
And in your case, musl might actually be a downside. AFAIU musl statically links everything. So that means that every program you run will have inside the same blocks of code, instead of re-using them via shared libraries. So statically linked binaries will be bigger, and when OS runs a program it has to load it whole into RAM.
Also, if using musl on desktop is less frequent in general, it might be harder to find solutions for problems with it


At home I have an old single board computer with 1GB of RAM. I'm not running a desktop on it but it serves a purpose in my network and works without an issue. So I think a desktop on 4GB should be doable, you just need to find which pieces of software to use.

With older CPU I expect you might run into problems with things like video decoding etc. So not that catastrophic level of failures. Unless the problem is that binaries from packages expect some CPU extensions that you don't have.
With small RAM you might be getting into problems with actually running the stuff. And that has to be mitigated if that's what's happening.
Hence, you need to start observing system logs (dmesg and /var/log/messages) what is going on when the crashes happen and start from there

[–] AndreProtasio@lemmy.eco.br 2 points 1 day ago

​Hi! While researching and using Gemini AI, I realized that the installation script I used didn't set up the zram properly. So, I created a swap file and configured the zram myself. Right now, I'm running a test: I'm compiling a Rust TUI app, watching a YouTube video in Firefox, streaming web radio via mpv to a Bluetooth speaker, and keeping the terminal open with 'bottom' to monitor everything. RAM usage peaked at 50%, with 50% swap usage. Even though the CPU usage is high, I'm really happy with the results. Thanks for the comments and the help! 😊