So I am currently running stacer, tbh idk if its working good or not lol. Sometimes my computer still flares up randomly with high CPU usage and the fan going, but I try to use htop to pinpoint, but that tool is probably way more in depth than I know. I’d rather have like maybe a daemon? Or always on app that automatically notices strange things and helps balance out performance, I.e. CPU usage, ram usage, maybe heat?Battery life, overall just to help maintain optimum performance and proper running (I do not game at all BTW, so not a factor)
The three I know of are tlp, auto-cpufreq, and stacer. I’ve read that its not good to run the first two together. Plus I’ve tried tlp numerous times and I feel it made my perfoance worse… I tried the simple default settings and even thoroughly went through and customized the settings, still never seemed to work right. I experimented a little with autocpufreq but had no idea if it was working correctly lol. I mean I followed the basic instructions to set it up, but who knows. Same with stacer; dont know if its really working or if I even configured it right…
In your experiences, what would be the best tool or tools to help me with this. Not really looking for monitors as I have no idea what to do with all that info lol but tools that automatically monitor and make performance tweaks accordingly? Idk if there is an all in one solution or if you need specific apps together, but also need to be aware of possible confliction… Not to mention I set up netdata lol omg I had no clue what I was looking at or how to use it. Super overwhelming because the tool could actually help with network performance but it was so completely confusing. Definitely not for a beginner. Would love your guys suggestions please. Thank you
Reminds me of the programs that make the kernel drop FS buffers in an attempt to free up RAM. Or hog as much memory as they can in an attempt to have unused things swapped to disk. Yeah, they free up RAM all right, but at the expense of actual speed.
Most of the time, this junk is actively harmful. Forget it, modern Linux uses optimized defaults.
You can get more performance out of your hardware by switching to from heavyweight to lightweight programs - for example, instead of Skype (which uses Electron), choose some other way to chat like
irssi
for IRC. Instead of Gnome, choose i3 or dwm or something like that. You need a bunch of tradeoffs and learning, though, to really get the most out of your hardware.Thanks. See these are the things I dont know. I pretty much only use the browser on my laptop. I try to keep most things within the browser, but obviously have some apps/tools/programs like bitwarden, vlc, libre word, a textpad, just your basics… The only intensive thing I do on my computed is browsing. Sometimes I’ll get into researching and use the browser heavily, lots of tabs lol or I’ll stream videos I.e. Netflix, Hulu, YouTube, whatever… Thats about it. No email, unless I use the browser. I typically use my phone for emailing. I do always try to look for light options as well. But I have zero knowledge of the technical workings under the surface, so I would have no idea how to properly configure certain aspects that may need fixed or configured. If I ever do configure something I either go by the manual or just use settings that I want. Idk I just wanna make sure everything is always properly balanced as possible, but as I’ve explained, I do have many strange issues here and there whether they’re errors, hangs or freezes, slowdowns, overheating, high CPU or ram usage at random times when I’m not using heavily, idk. Linux is a complex system and I dont have the knowledge yet to understand and tweak the inner workings yet. Too confusing and dont know where to start
I pretty much only use the browser on my laptop.
Sounds like you might be better off with something like ChromeOS Flex. It’s optimized to do just that.
Thanks for the recommendation but honestly, I’ve been trying to ween off of google lol
Here’s a couple of pointers to get started:
- The Arch Linux Wiki is full of excellent information. It’s not for beginners, though.
- Run
top
in your terminal to see what’s taking CPU. - Run
top -o RES
(or what’s easier, runtop
and then pressM
while it’s running) to see what is taking up RAM.
… though unfortunately, it’s mighty probable that the only significant consumer of memory and CPU is your browser. Get uBlock Origin, it helps web pages be lighter and eat less resources. Don’t open too many tabs at once - learn to use bookmarks efficiently, instead (folders, bookmarks toolbar and whatnot).
The issues you’re experiencing are peculiar for sure. Though some of the things you’ve mentioned do ring some bells for me; specifically from the time I was new to Linux and installed a bunch of (random) stuff to get more battery life out of my laptop.
First of all, unfortunately an all-encompassing software that ensures optimal performance at all times simply does not exist. Your best bet would be running a distro that does a lot of heavy lifting to ensure a good experience regardless of your hardware. So let’s start with a healthy dose of questions to make sure we’re all on the same wavelength:
- Could you inform us regarding your hardware specifics?
- What distro do you run?
- How long ago did you install the distro?
- Did you ever install software that was not available in the official repositories and is not otherwise delivered as a self-contained package-deal (read: flatpaks, snaps, appimages etc)?
- Were the issues there from the get-go? Or did you do some things that might have triggered them? And if so, do you have any suspicions on what that something might be?
P.S. if it isn’t khamzatsmom 🤣🤣. Welcome to the better platform 😉! Btw, I’m not surprised to hear that you’re met with random issues if you continue to run more niche distros for the heck of it 🤣🤣. Sure; you’re free to do whatever you want, but running a sane distro as a start will make a huge difference.
Thanks so much. Wow those are some tricky questions lol. My only computer and main device is my dell xps 13 9310 laptop with Intel i5 evo processor and I think 8 GB of ram. Storage isn’t a concern as I never really store anything and if its important enough, I put it in the cloud. I am currently using linux mint 21.2 with cinnamon desktop.
I just installed it a few weeks ago because I was using debian 12 bookworm and was having issues with freezing and errors and WiFi problems and I could not successfully troubleshoot them (my only helped is chat gpt lol) so I wiped my drive and installed mint. I’ve been doing this same thing for a while. Swapping distros either due to boredom and curiosity or I break them to the point where idk how to fix it, so I reinstall.
I believe I have installed apps outside of official repos, sometimes successfully other times not. I try not to do that though. And the big problem is I can’t ever really tell what triggered the issues and a lot of times its hard to pinpoint WHAT is causing the issue and sometimes if I’m lucky, I can narrow it down to a certain thing, but there’s usually a ton of errors and such I find along the way. I do successfully troubleshoot and fix some things, but there’s more complex stuff that is out of my wheelhouse and I usually make things worse in my troubleshooting efforts lol
Thank you for being quite elaborate!
dell xps 13 9310 laptop with Intel i5 evo processor and I think 8 GB of ram
That should be fine.
I am currently using linux mint 21.2 with cinnamon desktop.
That should be fine as well.
I believe I have installed apps outside of official repos, sometimes successfully other times not. I try not to do that though.
Have you considered installing those apps inside of a container? Distrobox is worth mentioning as it streamlines a lot of this process and even allows one to set a ‘distrobox’ with its own custom HOME directory. It should make experimentation a whole lot less painful, so you should definitely think about it if you haven’t yet.
I’d argue that if you reinstall Linux Mint with TLP -for what it offers in terms of battery life- and install the exotic packages within a distrobox, then most of your concerns would be resolved. Maintaining a healthier system like that should also decrease the rare bugs that you might be facing right now and thus enable you to run a system over a longer time period.
If this course of action makes running your distro too boring, then it’s probably worth exploring either Arch or Gentoo as a dualboot alongside Linux Mint. Linux Mint would be used for school/work or whatsoever, while Arch/Gentoo is where all the ‘fun’ happens. Both distros also play a lot nicer with packages not found in the official repos, so they should necessarily offer a better experience.
What… Exactly are you trying to accomplish? To me it seems like you think your system is leaving performance on the table, but that you don’t think you have the knowledge to get that performance back.
What makes you think there is performance left on the table to begin with? Linux is running on millions of servers across the world, and programmers miles ahead of both you and me have expanded significant effort to optimize the performance as best as possible.
Even if there was performance left on the table (there always is a little, as a result of more general optimization as opposed to more niche tuning), what could an automated tool do that the kernel couldn’t on its own?
No, I think you may have misinterpreted my post. By performance, I just mean overall performance, preferably optimized for the perfect median… Not trying to squeeze more performance, just trying to work with what I got and ensure all the moving parts and software and such are playing fair and on the same page… Basically looking for just smoothness and proper running of my systems at all times. I’ve had so many issues over the years, most likely user error, with just freeze ups, overheating, high CPU usage when I’m not really doing anything intensive at all and not to mention many WiFi issues, but that’s probably a whole other topic. I dont quite know what aspects or programs I should configure or how or if everything should just be default, etc. Sometimes I just wing configurations to things that make sense to me. Needless to say, I just want to ensure my system stays on the same page and runs smooth, how it should, with fewer errors or slowdowns or other annoyances.
There’s no one answer here. It’s going to take a lot of trial and error and experimenting. All of the issues you mention are going to have to be addressed individually as well. There is never going to be a single tool to do this for you.
As far as tracking state over time, standing up a proper, modern monitoring stack will help tremendously. If you send logs to loki, collect metrics with Prometheus or OpenTelemetry, and graph them both with grafana, you should have really great insights to whatever is happening… It’s never going to be finished though. It’s always a work in progress.
Sounds like a complex undertaking. I dont quite even know where to start with learning how to do all of that. I figured there are tools out there, like the ones I listed, that are supposed to automatically optimize aspects for you.
It sounds like you’re chasing something that doesn’t exist. There isn’t really like a point you get to when everything is “optimized” or whatever… That word doesn’t really mean anything. Optimization is a process that you use for really specific situations. It’s not a state you get to.
For example, if I was serving a website and the server was showing high CPU usage and disk activity, I might find what files are being accessed most often and add a caching layer (redis, varnish, memcache, etc). That would optimize for more efficient CPU usage and lower disk activity but it would also increase memory usage. That’s a trade off I would need to consider before implementing that change. If the apps I am running are already consuming a lot of memory, I might run the risk of exhausting all the memory and having processes killed off (aka OOM errors). Maybe I try something else then.
You need to find what’s happening with your system and then figure out what you can do to mitigate the behavior of any poorly performing apps. That all starts with good monitoring but beyond that its impossible to say because it’s extremely dependent on how you have chosen to configure your system and what you are running.
This type of investigation is what gets you to be a real engineer.
Thanks, I’m starting to realize this. There are many different aspects and tools to use to assess different parts of your system. I just want to ensure my system is bug and error free. I just have no idea where to start and with what tools and how to understand and implement things. I know logs are a popular option, but even those confuse the heck out me me. Like I KNOW there’s issues within my system but its difficult to find the right way to pinpoint and address things. I sorta wanna be like an investigator for my computer lol I want to really dig in and make sure everything is proper. Its just so daunting and vast and confusing. Chat gpt helps me with some stuff, which is actually very useful because answers on forums and what not can be all over the place and a lot of times the solutions dont quite work.
I don’t think you’re going to find a magic program that will just make your computer run faster. If there is a lot of CPU usage, something is using it. try to find out what that is, and either stop the process, wait for it to finish, etc.
if you have a lot of maintenance tasks that run and take up resources, maybe try and reschedule them for other times of the day?
No no I’m sorry, you guys seem to be misinterpreting things a bit, I’m not really looking for MORE performance because there are obvious hardware limitations, I’m just looking for tools that help optimize what I have to work with. To ensure things are balanced and smooth and running within normal bounds. Trying to enhance I guess health and overall usability. Make sure things aren’t running out of control or consuming more resources than they should. I mean I can look at htop and understand some things, but I by no means know how to use that info to manually configuring things myself, ya know? Just like the many monitoring tools out there, but ones that automatically make adjustments accorsingly, so daemon type programs I guess?
I get what you’re saying, but I don’t think you’re going to find anything like that. Linux doesn’t really need some maintenance app running on top of it to keep it healthy. most of the programs that claim to do the same on windows,. android, etc. don’t really do anything helpful either. If you’ve got a specific issue that keeps popping up, perhaps we can solve it.
Well this is good to know. Even programs such as tlp? It seems like everybody and their mother recommend that one lol
A long time ago I managed to set up pretty much all temporary files, internet cache files, and even system log files in a tmpfs RAM volume. Made a HUGE difference!
That last part, putting log files in tmpfs, is not exactly easy though, it requires a startup script to generate all the log directory names, otherwise the system will most likely crash. Plus you lose all system logs after every restart.
Still, tell ya what, it was worth the effort to me, made things so much faster!
Oh gosh that sounds interesting, but way above my pay grade haha
I can sort of imagine like a little program that tries to be smart and says “hey this thing is running and using a lot of CPU, and Chromium also wants a lot of CPU right now, so let me go ahead and renice this other process to lower its priority so Chromium can go faster”. Or “gee the system is unusable because it is swapping, let me randomly kill stuff until it works again”.
But I’m not sure there are a lot of options for that sort of userland tool, because being smart enough to do the right thing in those cases while not also doing a bunch of unexpected and possibly counterproductive stuff is hard. But maybe you can bolt a large language model to a root shell and see if it helps?
Really the kernel is supposed to just do the right thing all the time anyway. You might be able to find something that like changes your CPU governor when you go on and off battery? But mostly there are settings to tune like which CPU governor you want to be using or whether to compress stuff in RAM or how much the kernel should tend to swap stuff to disk, or what the fan speed ought to be at different temperatures, and if you want to make the system go faster you fiddle with those.
Thanks a lot! The issue is that linux is very complex with many aspects and I am not pro lol. Like niceness, I’ve heard of it and seen it in htop, but idk if the settings are correct. There’s so many programs, daemons, software, and actual hardware, idk where to start exploring and tuning the system myself. Its very overwhelming, so I figured maybe some of the tools I listed may help. For instance, I’ll spend hours And hours trying to understand logs or reading tutorials to help check for and fix errors or problems or broken things or misconfigured things but I just get lost and none of it makes sense. Like I’ll read an error line in a log, but I have no clue what it means. I’ll google it and sometimes try solutions, but even then, a lot of that is confusing and leads me down other rabbit holes too lol. Its vicious really… So needless to say, I have no idea where or how to start properly fixing or tuning things myself yet alone pinpoint actual issues. Its tricky but I’ve gotten better over the years, usually trial and error
Usually tools that people make to help people get stuff working properly when they are new is all about constraining the system to be set up right in the first place, rather than tuning or fixing it later. Rather than starting with a distro that needs a lot of fiddling and getting a tool to fiddle with it for you, you want to look for a distro that is designed to set itself up in a sensible configuration when you install it.
See thats one thing I’ve been weary about as well. I mean every computer is different so I figure just a fresh, default install won’t necessarily mean the system is configured and running properly simply due to the nature of all the different hardware and bits and bobs for each setup. How am I supposed to know if things are configured and working properly even after a fresh install? Linux really is a beast with so many aspects
Usually the parts that would need some optimization, like, say, using the CPU features properly, are things that are shared with a bunch of other people, and so good support for them makes it into the mainline kernel and from there to everybody.
If you think you have an unusual or super new system, you can look for a way to run newer or specially-optimized-for-your-hardware kernel builds. Or you can always get into compiling the kernel or other system components with the right optimizations or go-faster stripes for exactly your machine: Gentoo people like to do that.
Of all the tools you mentioned the only thing I use is tlp on laptops. I’ve never felt the need to run something like stacer, it looks like it claims to do what you’re looking for, beyond that I would just address your specific concerns. If you have a job that’s running periodically that consumes too much CPU maybe you should schedule it for when you are not using the computer, or see if you can throttle it.
Uninstall apps you’re not using if your laptop is overloaded. Maybe consider a buying a new one if you need more performance or battery life.
Keep in mind Linux is not Windows and modern Windows doesn’t really need all the “optimization” people think it does anyway.
What specific issues are you having?
Oh man I’ve done a lot of research on various performance issues and I end up wormholing and getting even more confused. Hence why it would preferably be nice to have tools to do it for me lol. I’ve had many random issues over the years; errors, freezes, overheating, high CPU and/or ram usage when I’m seemingly doing nothing but browsing the web (normal browsing, nothing intensive), overall slow downs or crashes, not to mention WiFi issues. I’ve trouble shot that to death and could never get anywhere so I installed a freaking Ethernet jack the other day in my living room, where I typically use my laptop. I’m just looking for tools to monitor and ensure things are running as they should and to help optimize in real time, so like daemon programs I suppose. Whenever I run into a serious enough issue that I can’t troubleshoot, I just end up wiping my drive and reinstalling a new distro. Thats not the ideal way of troubleshooting haha