[SOLVED] Why do I use so much ram at idle (Debian 12 + KDE)?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why do I use so much ram at idle (Debian 12 + KDE)?
Hello,
I installed Debian 12 with the KDE desktop environment a few days ago. I am using the sweet global theme and I have a few widgets installed.
One thing I've been kind of surprised at is that it uses a lot of ram. I also understand that I am not using the most lightweight setup and I don't mind to use some ram to make things pretty and convenient. But I idle at 3 gigs with basically nothing open (see images), which is, like, windows-level. Is that normal? I don't mind that much if it's how it's supposed to be, but I just want to be sure that there's not something funky going on. I have linked some screenshots of the system monitor for reference.
Thanks for the reply! The output of the command is as follows:
total used free shared buff/cache available
Mem: 15345 3831 9622 61 2281 11513
Swap: 976 0 976
If I understand correctly, I should look to the "available" column to see how much ram is really being used and if that's the case, still seems 3-4 gigs. I ran this with no programs open in the background.
To be clear, it is not as though I am low on ram or anything, I have 16 gigs installed, so using 3-4 gigs at idle is not the end of the world. But I want to make sure that it is expected, as opposed to something having gone wrong.
Because you have so much avaialable is the simple answer.
KDE will take a lot of ram if there's a lot available in order to ensure that you get a smooth experience. If you had very little ram, it wouldn't use so much (KDE's actually surprisingly efficient nowadays), but there is plenty, so it reserves a fair portion in order to ensure a good user experience.
We keep getting these types of questions ... so try this.
You've got a large back lawn, and want to put up some swings/slides for the kids. Not wanting to clutter the entire lawn, you put them over to one side. Over time they get moved around, and take up a bit more space. No problem, plenty there for the family to relax in.
Then one day you want to put up a marquee to have some people around - but the swings are now in the way. Move them back to the side and on we go. When the marquee gets taken down, the cycle starts again.
It's a common fallacy, in that users see memory as something that shouldn't be used. For many I think it goes back to their Windows days where some misbehaving programme would consume a lot, or tons of unnecessary services, start up applications, applets, tray apps, etc would hog a lot of memory, then Windows Update would start doing its thing and that would bring the computer to its knees.
The browser cache is a good example. The cache grows as you use the browser and visit different sites. We see threads now and then where "firefox is using 4GB!?" or whatever. Often these threads go on for quite a few posts and the person still fails to grasp what is going on - often getting irate and demanding to know why firefox is using so much RAM.
Operating systems are designed to be "opportunistic," and "lazy." RAM is a resource to be used to its fullest extent. If there is no pressure being exerted on the memory resource, the OS will do nothing to "clean it up." Only when, and if, "pressure" actually begins to manifest will it begin to do things like "swapping," or identifying not-recently-used memory and recovering it to be used for some other process. Otherwise, there is no motivation to do so.
If you have little, and configure Plasma not to autostart every background process and bling element it knows how, you can get its usage down quite a bit:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.