I have macbook air with M1 chip, I wish I could change to linux but unfortunately I cant so I try to stick as much as possible to using open source on macos. But i cant understand why FOSS apps take up so much space in memory. I’m even getting messages that says that I dont have space left in memory and i must close apps, and I thought that chip M1 was enough with 8gb of ram. I send a pic of my memory usage.
Huh. It’d be interesting to see how much memory LibreOffice or some such takes on a Linux system.
I’d test myself, but I’m currently on a Raspberry Pi and my beefy box is a) off and b) all the way over there.
I just opened an empty Writer document to check the RAM usage. On Fedora 39, it is using 161.0 MB. I opened an empty Calc, and the RAM usage increased to 223.9 MB.
My first guess would be emulation for apps that do not run on aarm by default.
A lot of OSS devs don’t want to spend time supporting a closed architecture. Especially some of the more privacy and openness focused apps that you’re running.
I am not one of these people who’s constantly surveilling RAM. But I look at it occasionally and I don’t really see anything unexpected in your screenshot. Maybe you could load up comparable non open source applications doing the same task and show the comparison? How does Safari or Edge do if you create a comparable session?
Right now on my linux computer, Firefox is using 1 GB of RAM. I have lots of tabs open so that’s typical. Sometimes it is higher. You are using logsec, zotero and libreoffice which suggests you are conducting research and writing. So I will guess you also have lots of tabs. And maybe browser extensions? The zotero web clipper that looks at every page you load to see if it is scrapeable? Maybe a markdown clipper doing same thing?.. And there is a good chance those other applications are working with a lot of data like your whole citation database, whatever you are writing etc. Do you have any of those zotero extensions that do all kinds of fancy stuff to the items you add? Not to mention Thunderbird and whatsapp. It is a lot of stuff for the computer to do.
In firefox (and presumably librewolf) you can go to about:processes
to see exactly what is going on. This page with your thread is using 59 MB. Also you can go to about:unloads
which has a rudimentary method to remove background tabs from memory. With only 8gb of RAM you should make a habit of this. You can also get extensions with more sophisticated unloading methods and that might be worthwhile for you.
All that said, I think an 8GB RAM machine is likely under-powered for your task. To be fair I am making assumptions based on the applications you have open. because when I have those sorts of applications open, I am typically being quite demanding of the computer. Opening documents, converting filetypes, scraping metadata, OCR, passing information between applications, interacting with databases, drafting documents, searching email archives… and lots of tabs.
I am really surprised that Apple would sell a laptop-type device with only 8gb in the modern era. I always think of them as expensive but good hardware (if you are using them the way Apple intends). If my assumptions about your work are correct, life will improve if you can scrape up some more RAM.
I have macbook air with M1 chip, I wish I could change to linux but unfortunately I cant
Why not? Fedora Asahi works pretty well. When was the last time you tried it?
16GB should be the absolute bare minimum with 32GB being standard at this point.
Selling 8GB high end laptops like macbooks with soldered RAM shouldn’t be a thing at all. It’s such a waste of resources, because devices which could be used in 10 years won’t be useful beyond basic word processing and browsing.
The only reason Apple has them is to have a low starting price while taking 200 USD for 8GB additional RAM. For context, 16GB RAM costs about 50 USD in retail.
won’t be useful beyond basic word processing and browsing.
Not even that. For most basic users, web browsing is by far the most resource-intensive thing they’ll ever do, and it’ll only get moreso. If it weren’t for modern web design, most users could honestly probably be okay with 4GB or 8GB of RAM today. For a laugh, I tried using a 512MB Raspberry Pi 1B for all my work for a few days. I could do absolutely everything (mostly developing code and editing office documents) without any problems at all except I couldn’t open a single modern web page and was limited to the “retro” web. One web page used up more resources than all of my work combined. I’m guessing it won’t be too many years before web design has evolved to the point where basic webpages will require several GB of RAM per tab.
(I agree with your overall point, by the way. Soldering in 8GB of RAM these days is criminal just based on its effects on the environment)
I think we should strive for either:
- Not building/using piece of shit platforms MacOS that is very wasteful when it comes to memory management.
- Not building/using piece of shit applications like electron-based stuff or the window server from this post.
There is no reason why 8gbs shouldn’t be enough, excluding gaming.