view the rest of the comments
Linux
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:
-
Stay on topic: Posts and discussions should be related to Linux, open source software, and related technologies.
-
Be respectful: Treat fellow community members with respect and courtesy.
-
Quality over quantity: Share informative and thought-provoking content.
-
No spam or self-promotion: Avoid excessive self-promotion or spamming.
-
No NSFW adult content
-
Follow general lemmy guidelines.
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.
the choice of musl based distros was informed one or just coincidence? Maybe you should test glibc too?
Maybe I should clarify one thing, then. When I wrote
# journalctl -fI meantjournalctl -fran by root or viasudo.journalctlran 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
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
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!
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.
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
Ah, I'm not familiar with Void itself. In that case you want to observe outputs of
dmesgandtail -f /var/log/messagesto see what the system complains about when the crashes happenNot 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
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
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
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! 😊
Nice ^^
If you want to do some stress-testing later on, there is a thing called
cpuburnfor CPU. And for behaviour under RAM load, I would start opening tabs in FF. When I had 8GB of RAM I had to routinely "close all tabs to the right" once a week