Low-RAM advice

I’ve been using Aurora for a few months now and love it. I use a slightly modified version (made with Blue Build) on a couple of ThinkPads with good amounts of RAM (32GB and 64GB) and everything works great.

For kicks I also put it on an older ThinkPad X1 with only 8GB RAM, knowing that it would struggle with KDE, Wayland, and other background tasks using up significant amount of its limited memory. It’s actually not that bad, but it doesn’t leave a lot of room for today’s memory-hungry web browsers.

So I’m looking for advice on using an atomic distribution (preferably ublue) with limited RAM. Here are some options I can think of:

  1. reducing memory usage on Aurora, which I’m guessing would mostly involve trimming down KDE as much as possible
  2. using one of the new Fedora atomic spins like Budgie, but with Universal Blue customizations
  3. using a non-atomic Fedora spin like XFCE, but making it atomic

Any advice on option 1 would be welcome, but I’m not optimistic about getting a significant amount of RAM back from KDE.

Option 2 seems pretty doable, and while I don’t know much about Budgie, I would imagine it would be less memory-hungry than KDE. Would it be possible to use Fedora’s atomic Budgie as the base for Blue Build, or would I need a ublue version of Budgie to build from?

Option 3 seems like a lot more work since I’d have to figure out everything involved with building a new atomic version of a non-atomic spin. Any advice on this option?

Update:

I just saw this post indicating that there’s already a ublue Budgie image that’s being deprecated. The advice to use the base-main image and just add a desktop environment sounds great, so I’m going to try that with Blue Build to explore options 2 and 3 above.

I still wouldn’t mind some advice on option 1 if anyone has tips on slimming down KDE.

1 Like

I’d been using KDE Plasma 6 on a thinkpad x1 with 8GB ram through arch, and I think it runs as well as it does because arch is barebones and allows you to install the Plasma environment without all the KDE apps in one go, but yeah I still run into issues with web browsers lagging a bit, especially when using Picture-In-Picture in Firefox/Zen. Also Firefox forks like Librewolf run slower due to the security implementations running.

I’m looking into building images with lightweight desktop environments and window managers myself. As far as I know, since Ublue is Wayland-only, just be aware that XFCE Wayland support is still considered experimental. XFCE will not have a dedicated Wayland compositor, but they are working so that you can add compatible compositors into XFCE. I believe labwc is compatible with XFCE.

The other one I am looking at is LXQT, as they have been explicitly working on wayland support for different compositors, as seen here: GitHub - lxqt/lxqt-wayland-session: Files needed for the LXQt Wayland Session . I look forward to tinkering with this when I have time and I don’t see any obstacle to assembling the needed components in a custom image.

Just to put something else on your radar even though it is still early days - XWayland works pretty well on making X11 apps compatible with Wayland, but there is another exciting development, Wayback: Making sure you're not a bot! . Once matured, it promises to run full X11 desktop environments and make them compatible with Wayland-only systems. That should also allow more lightweight desktop environment choices like MATE and even X11-only window managers that will likely never see support for Wayland.

I too had recently done some research on memory consumption for the KDE platform. I like the options and customization…but depending on settings memory consumption can be higher than expected.

So some of the first things I recommend:

-If you open Bazaar and close it…it may still run in memory…make sure to quit the application in system monitor (note that next time it starts it will need more time to startup…not a big deal really) Hopefully once bazaar becomes a flatpak it will exit completely when it closes.

-Search through ‘background services’ in kde and stop and disable unneeded services.

-If you don’t use the web browser from your search bar in the start menu and instead use a web browser consider disabling ‘web search keywords’ options…reduce other search options that are not needed…this will cut down on the things KDE needs to pull up each and every search query this saves resources.

-Do the same for plasma search.

-Always Quit Xwayland Video bridge on startup (unless needed) in the status and notifications section -click the ‘up arrow’ in the right hand corner of the taskbar by time/date and right click Xwayland Video Bridge and click ‘quit’. (Yes there are some ways to disable this…but it is more effort and may create other problems…and the video bridge will eventually become wayland only in the near future becoming more efficient…maybe it takes a year or two ( at the max).

-If you don’t need a custom desktop wallpaper…use the standard static ones…believe it or not this too may increase ram usage…part of the problem I believe is the way the data is accessed. I can’t say for sure…but it may be because the wallpapers setting section is pulling stuff from different directories with different security contexts and putting them all together. In the future I hope this changes so wallpapers can all stay in one directory together.

-Make sure your desktop theme is all the same across the board and preferably a standard option…if some parts are different from each other this may lead to higher memory consumption…so if it is ‘vapor’ choose to apply it to all in settings…also Breeze/Breeze Dark/fedora use a bit less memory than vapor….but this probably not a huge change…feel free to experiment. (Note that this may rearrange or remove taskbar icons/add or remove widgets/etc. to defaults… make sure to keep a note of how you had everything before…it is also best to close all open applications before making this change. Don’t worry you can change your taskbar icons back….and still have the ram benefit…now lets talk widgets.

-Right click the taskbar to show ‘add or manage’ widget options then in the right top corner select ‘running’ to show all currently running widgets. Try to use the minimum number of widgets… for instance if you don’t use virtual desktops- remove pager, you can remove the separator that sits between the time and the system tray, and the peek at desktop option.

-In flatseal/kde permissions reduce the number of apps that use internet connections or mangohud…unless needed….

-Set time to manual as opposed to automatic…otherwise chronyd will keep sending time sync connections out every 2- 5 minutes… that default might be great for servers where you are dealing with massive amounts of data where data packet loss or corruption could be a problem if time is not really well synced…or you have high precision instruments in lab somewhere that need this precise time keeping…but this is really unnecessary in most scenarios for an everyday desktop environment.

-Unless otherwise needed set firewall zone to ‘public’ for your connection in the network manager (wifi- internet settings) under the general tab.

-Also set the connection to metered.

-You may also wish to change the default ‘connect with priority’ option if internet feels slow to ‘0’ from the negative numbers.

I’m sure there are other things that could be modified like power profile (but that probably will eat into performance) …this should be a good starting point. Hope it helps!

1 Like

I think swap partitions should be the default on all installs.

I am admittedly atypical in that I have 128GB of ram, and needed to add 128GB of swap, which is occasionally used.

On lower memory system, having swap lets the kernel better manage memory.

1 Like

Quick update: I spent some time with Blue Build trying to add Budgie on top of base-main, but it turns out not to be as simple as adding budgie-desktop. I tried adding all the packages that I saw were included in Fedora’s atomic Budgie spin, but it’s currently getting stuck on a black screen before getting to LightDM. I’ll poke around at it some more at some point.

1 Like

Why so much trouble?

I run Bluefin on a Core i5 7th gen Intel, with 8GB RAM Lenovo 720 2-in-1, 13” laptop. Runs pretty smooth! I even have Bing wallpaper, Tiling Shell and do most things in Firefox, a music player (forgot which one, this is my mother’s laptop) and occasionally OnlyOffice.

YouTube (via Firefox) is commonly used.

I’m sure KDE doesn’t use much more RAM than Gnome?

This is my configuration post install:

No actual memory optimisations btw.

Just think that all that ram is being spent on a DE with icons looking like these windows vista widget knockoff designs

Not being able to do basic computer work on 8gbs of ram is absurd considering my old setup with the same amount of ram but likely slower considering it was ddr3 could play gmod at max settings in 322 fps at 1080p while I browsed and watched videos at the same time with 20 chrome tabs perfectly fine on my old gt 710 on my bloated virus ridden windows 10 install WHILE recording with OBS(Which windows 10 itself was considered bloated when it came out now that i think about it) . Don’t know what is being spent to where that 2013 cpu ddr3 hunk of junk can do more than a 800$ laptop but how does windows 10 with all its bloat and spyware use ram more efficiently than Aurora or kde.

You should absolutely be complaining about this. When old hunk of junk setup from back of the day running one of the most bloated most spyware ridden operating systems does literal track miles around your laptop you really need to wonder just how well optimized aurora is. I don’t even think UNOPTIMIZED code would cause that bad of a performance loss the only way I could think of something screwing up that bad would be if there was a serious bug with it thats causing memory leaks.

Anyways heres some actual good advice

Do not use firefox.

We all grew up with the “Chrome uses all your ram meme” But nowadays its the complete opposite, Firefox uses all your ram and chromium browsers conserve it better.

Current day firefox suffers from BAD memory leaks, bugs and crashes and generally even if it works fine for you is extremely slower than the one from a few years ago.

>Almost 1 gb for a SINGLE TAB OF FIREFOX

image

Eventually for me inputs start to slow down and I have to manually restart but that is the current state of firefox.

Use a older version of firefox if you must but I personally would just use brave, Firefox already probably takes your data somehow so just accept it. You can remove the sponsorships they do and although chromium browsers are bad because firefox dying out would be bad for the software industry say it with me

“Even though chromium browsers are based off google and even though firefox dying is a bad thing there still faster, more memory efficient and less buggy than modern day firefox”

This will save you literal gigabytes of ram. And is something from mixing and matching with configs as a late teen as I learned on my hand me down laptop.

WEll we can’t do anything to KDE, we are not KDE devs.

So we use as much as ram as KDE uses.

This changes so many times in the past few years. Phoronix has some nice insights into this.

Firefox is doing a lot better and the difference is meaningless.

Also, the purpose of RAM is to be used. Not to be unused. Definitely for a foreground app like a browser. It should be leveraged as much as possible. People forget what RAM is for.

You want your background stuff use as little RAM as possible so that you can use as much as possible for user activities.

Im not blaming you guys I know software dev work is extremely hard and alot of things fall onto things that are not your fault

This is the latest version of firefox.

1gb for ONE tab is not ok.

I don’t know where you’re getting this, because I never said anything remotely like not being able to do basic work with 8GB RAM under KDE.

This is an even stranger comment. The 8GB machine works ok, but I reached out for advice knowing that KDE uses more RAM out of the box than a more memory-optimized desktop environment. It’s actually a combination of the desktop environment and how memory-hungry web browsers are these days.

This hasn’t been my experience.

Anyway, I’m really hooked on Firefox’s multi-account container feature and have a hard time living without it now. I’ve tried Chrome-based browsers like Vivaldi which add nice features and provide drastically better privacy than stock Chrome, but Chrome’s profile feature is very different and actually frustrating for me. In Chrome (and its descendants) each profile has completely separate extensions, settings, and basically everything about how you use the browser.

With Firefox and its multi-account container feature, I have one set of extensions and settings but can open tabs using a “personal” container that has one set of accounts signed into various services, and other tabs using a “work” container that has other signed-in accounts, and they’re pretty isolated from each other. And I can create other containers for things like browsing social media sites where I don’t want any crossover with any of the other containers.

I also really love the Sidebery extension for Firefox, which provides both vertical tree-style tabs but also separate “tab panels” for different purposes. It’s kinda like tabs for tabs, in that you have a small horizontal row of tab panels, each with its own set of tree-style/vertical tabs. It also lets you pin tabs to the top of a panel, can re-open a tab in a container if desired (so a “work” tab panel can automatically open tabs using your “work” container), and even move tabs to the right tab panel based on URL patterns (this is great for keeping things organized, especially when external apps open URLs and you want them to end up in the right panel).

On the privacy issues, I’ve recently switched to a Firefox-based alternative called Waterfox that improves privacy as well as adding new features, similar to Chrome alternatives like Vivaldi.

This is going way off topic now, but wanted to elaborate on why “just use Chrome” isn’t the answer for everyone.

1 Like