LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 01-29-2024, 04:18 PM   #1
Humblenoise4
LQ Newbie
 
Registered: Jan 2024
Posts: 3

Rep: Reputation: 0
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.

https://imgur.com/a/zX2Zs4Y

Thank you.
 
Old 01-29-2024, 04:45 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,708

Rep: Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898Reputation: 5898
Post the output of the command:

free -m

https://www.linuxatemyram.com/
 
1 members found this post helpful.
Old 01-29-2024, 06:24 PM   #3
Humblenoise4
LQ Newbie
 
Registered: Jan 2024
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 01-29-2024, 06:29 PM   #4
Timothy Miller
Moderator
 
Registered: Feb 2003
Location: Arizona, USA
Distribution: Debian, EndeavourOS, OpenSUSE, KDE Neon
Posts: 4,005
Blog Entries: 26

Rep: Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521Reputation: 1521
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.
 
1 members found this post helpful.
Old 01-29-2024, 08:20 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
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.

How is any of this a problem ?.
 
1 members found this post helpful.
Old 01-30-2024, 09:08 AM   #6
_blackhole_
Member
 
Registered: Mar 2023
Distribution: FreeBSD
Posts: 88

Rep: Reputation: 67
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.
 
1 members found this post helpful.
Old 01-30-2024, 09:36 AM   #7
Humblenoise4
LQ Newbie
 
Registered: Jan 2024
Posts: 3

Original Poster
Rep: Reputation: 0
Thank you for the responses, everyone! Seems like there's nothing to worry about, then.
 
Old 01-30-2024, 02:54 PM   #8
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,660
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
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.
 
1 members found this post helpful.
Old 01-31-2024, 01:06 AM   #9
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,811
Blog Entries: 1

Rep: Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068Reputation: 2068
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:
Code:
# inxi -Saz --zl --hostname
System:
  Host: gx151 Kernel: 6.6.11-1-default arch: i686 bits: 32 compiler: gcc
    v: 13.2.1 clocksource: tsc avail: hpet,acpi_pm
    parameters: root=LABEL=<filter> ipv6.disable=1 net.ifnames=0 noresume
    consoleblank=0 mitigations=off
  Desktop: KDE Plasma v: 5.27.10 tk: Qt v: 5.15.12 wm: kwin_x11 dm: 1: KDM
    2: XDM Distro: openSUSE Tumbleweed 20240118
# free
               total        used        free      shared  buff/cache   available
Mem:         2048928      607240      997692       11080      684528     1441688
Swap:         530108           0      530108
#
32bit also helps reduce overall usage.
 
1 members found this post helpful.
Old 01-31-2024, 01:32 AM   #10
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,855

Rep: Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311Reputation: 7311
the usual answer is: www.linuxatemyram.com, see the first response. Additionally there is a link at the bottom of that page: "How can I verify these things?"
If you really want to know the details about memory management on linux probably you can check this: https://chrisdown.name/2018/01/02/in...e-of-swap.html
and the official documentation: https://docs.kernel.org/admin-guide/mm/index.html

But in short, you are right, that's how it's designed to work, nothing to worry about.
 
1 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nscd is using 2GB RAM, any smart way to prevent it to use so much RAM? postcd Linux - General 2 02-29-2016 02:43 PM
kernel panic attempted to kill the idle task! in idle task - not syncing dudutworld Linux - Newbie 2 09-16-2013 01:50 PM
How much RAM is not much?? tezarin Linux - Newbie 18 05-03-2013 02:46 PM
Why size of swap space is 2x of RAM??? Why not 1.5x of RAM or 2.5x of RAM??? Saurav Ghosh Linux - Newbie 7 11-01-2011 03:49 AM
CDDA vs XviD: why so much burden for the CPU, and so much RAM? stf92 Linux - General 4 06-18-2011 06:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration