How Do You Keep Resource Usage Low?

I leave baloo on but I only have it index filenames. It uses little to no resources once the initial index is rebuilt. I also make the config file immutable so nothing can trigger a reindex.

5 Likes

Still always a risk, also for any OS:

  • Heavy on resources usually
  • Thrashes disks for no good reason
  • Not really needed this days, since searching SSD is really fast

That’s smart!
I wonder if there is real speed benefit compared to no index at all though (assuming you have SSD)?

Alright, thanks!

In the rare occasions I have to search for a file, I am patient enough to let the find command do its job. I organise my directory hierarchy in a way I can usually guess where something is, so I never start looking at the root level, but rather from a fairly deep branch.

If you use a LUKS or Veracrypt volume to store your sensitive data and/or personal data which you don’t want anyone else to know this could be a problem . The same applies to a USB drive containing files . I will definitely disable for I am person using Ram disk to save thumbnails :face_with_hand_over_mouth::grin:

2 Likes

Thanks @Hystrix !

So if I want to disable indexing on Cinnamon, should I disable updatedb.service?

updatedb.service isn’t exactly the same as baloo. It is the index commands like mlocate use. I wouldn’t recommend disabling it unless you have a compelling reason to do so.

1 Like

Thanks @dalto !

So then I just let it run. But does it have to run daily or I can change it to weekly?

You can change it to weekly if you would prefer that.

Don’t edit the system timer as that will get overwritten whenever the package is updated. Instead, make a copy of updatedb.timer in /etc/systemd/system and edit it there. Alternatively, you can use sudo systemctl edit updatedb.timer and create a new entry for OnCalendar= but I find that method somewhat less intuitive than just copying the file and modifying it.

3 Likes

Great! Thanks for taking your time explaining!

I will go the copy-edit route and and change the timer to weekly. Hopefully everything will be working as smoothly as before.

2 Likes

I don’t do anything. Never really had issues with running out of memory. Unless running heavily modded mincraft that is.

Right now I am using 4.8GB of ram with two firefox windows open one with 3 tabs one with 6, Evolution, pamac, signal, Remmina with an RDP connection open, terminal.

Also running a lot of extensions as well: Caffeine, Dash to Dock, Scroll Panel, Sound Input & Output Device Chooser, System-monitor, Unite, User Themes, Wallpaper Changer v2, Window Is Ready -Notification Remover, Auto Move Windows,

Screenshot from 2020-08-05 12-01-56

1 Like

This machine is fine enough, it has 16 GB of RAM and a good processor. I’m considering getting EndeavourOS on a machine with 4 GB of RAM and a rather weak processor (2015 Intel Pentium N3700 (4) @ 2.4000GHz) hence why I made this thread.

Anyways, thanks so much everyone for all the responses, I’ll try to implement most of these on a day to day basis!

Also, how do I disable file indexing for MATE?

@MagusZ there are a lot of ways to reduce the number of packages and services running, but in the end you’d want to think about the reasons why you’d want to do so.

If it’s ambition to see how sleek you can make the system, that’s a geeky goal I can understand. It’s an honorable tinkerer’s mission :slight_smile: But if you are not genuinely worried about the OS eating away resources, or are satisfied with the performance, I’d say there shouldn’t be too much worry. RAM usage stays higher after some time, but that is mostly the cached memory. If you don’t run out of RAM, a restart is not necessarily a good idea.

Check out this old thread regarding this topic. There are many views, mine included, that if you have the drive space to spare, 100-200 packages worth 1-2GB is not the end of the world and it wont affect performance, while providing useful tools you might need:

The low specced 4GB RAM, Pentium N3700 machine, should be golden provided you don’t open Chrome or Firefox :slight_smile: Those are the real resource eaters. But not of their own fault.
I develop websites for a living and I can tell you the libraries that go into building a site nowadays are so complex and bloated that a website (think reddit, facebook) can easily gulp 1-2GB of RAM by itself.

On a 6-core/12-thread CPU, 32GB RAM machine reddit still freezes after scrolling for a few hours.

3 Likes

Yeah, the Internet is the real kicker of them all, even with my extensive setup (uMatrix + uBlock Origin + a few other tools) it’s still easily what takes up the most RAM. As of now I do want to get resource usage on it as low as possible because it begins to start swapping with the amount of tabs I have to use for school (which was online-centric even before the pandemic) with literally anything other than Lubuntu and I’d rather use Arch than Ubuntu.

The Internet today expects you to have a good machine so it can wow you with its bells and whistles. That’s the trend and it only gets worse I’m afraid.

I think you will find that if you run the exact same processes you run now they will use less ram over time on a machine that has less ram.

For example, on my workstation falkon will use about ~500MB per tab but on a machine with less ram it will use drastically less than that. Linux doesn’t try to conserve the resources, it tries to utilize them.

2 Likes

I guess you’re right in that it should be less, Linux RAM management for the most part has worked just fine for me. I just want to minimize as much as possible because on any given day I never know how much I need, and either way that old 2015 machine was my daily driver for a long time (I only got this good machine back in June and had used that old thing for a few years at that point) so the habit of minimizing as much as possible stuck with me.

So you’re the one to blame for slow websites… ! :face_with_symbols_over_mouth:

:rofl:

3 Likes

Guilty as charged. :slight_smile:

Although, in my defense, even if I go to great pains to make my sites as light as possible, sometimes I work on other people’s projects with painful legacy, or there is simply no budget for optimization and the customer makes a compromise on the expense of his user base.

1 Like

I am running EOS KDE on a 4GB machine with pentium processor . It’s not lagging in any way . But my friend with an i5 got hung up on boot :face_with_hand_over_mouth: . If KDE fails try Xfce . Or try both with different user accounts , it’s fun . Also firefox is working great and brave greater !

2 Likes