0

I'm using Linux Mint as day-by-day OS, but I'm having a hard time with RAM usage, as 4 of 16 GB are used just when idling... Why is this happening? Is it something I forgot to configure? What can I do to lower RAM usage? I only have Skype, Spotify and Discord open.

Resources page: RAM Usage

Processes page: Processes

CPU Usage: enter image description here

Uptime stats:
dragos@madscientistlab ~ $ uptime 16:40:10 up 3 days, 3:53, 1 user, load average: 1,95, 1,42, 1,13
free -g command:
dragos@madscientistlab ~ $ free -g total used free shared buff/cache available Mem: 15 4 6 0 5 10 Swap: 15 0 15

  • I'm failing to see how a RAM usage of 4 out of 16 Gb is an issue... – Kusalananda Sep 3 '18 at 12:07
  • Yes, what makes you feel there is a problem? RAM should be used! There's no point in keeping it empty. It only becomes a problem if other programs don't have enough, and that doesn't seem to be the case here. Also see linuxatemyram.com. – terdon May 9 at 18:04
  • Hi. For anyone asking questions like this, please specify the version number of the operating system you are using. It's very difficult to tell you if it's a knownbug / fixed in a later version, etc, if we don't know what the version you tested is :-). – sourcejedi May 10 at 15:18
  • @terdon The tool in question does not count "cached" memory as "used". It actually appears to show the MemAvailable figure. – sourcejedi May 10 at 15:20
  • @sourcejedi yes, I know, but there may well be other programs using the RAM in ways that allow it to be available. I may be wrong here, but I just don't see how such a low %use of RAM could ever be a problem. By the way, the OS version isn't very relevant, the change in the way free displays the data depends on the kernel. See How can I get the amount of available memory portably across distributions? – terdon May 10 at 15:25
1

You could close the unused programs, the bulk of it though is coming from Cinnamon (desktop environment), nearly 1GB which is a little high but believe it or not is about right for idle use.

Cinnamon compared to other desktops can use quite a lot of ram (but it does look pretty)

See this post (granted its not for Linux mint)

There is nothing out of the ordinary about the output you have provided. If you want to use less ram in an "idle" state, i suggest closing all applications (skype, spotify, discord).

Closing those app's would save you around a couple GB.

You can of course get rid of cinnamon...But i wouldn't be too bothered, your memory inst spiking, it seems to be consistent.

  • Thanks for your reply, well, actually, I'm playing music even if idling with Spotify, and I need Skype for messaging :(. After restart, the ram got down to 3.0 GB with Spotify, Skype, Discord and Chromium. I guess Cinammon is just leaking memory? – unkn0wnx Feb 20 '18 at 15:03
1

1GB in the cinnamon process alone seems relatively high to me. At least two sources, including links in other answers, suggest the whole system should use on the order of 800M when you initially boot and log in to Cinnamon.

1) It looks like Cinnamon version 4.0 includes significant fixes to memory management, based on the upstream GNOME project(s). I don't know if the fixes have been ported to earlier versions. (Also I am not 100% certain that Cinnamon suffered the same problem as upstream GNOME, but it is looking very suggestive :-).

I note the gnome-shell process on my Fedora Workstation 29 (which includes these upstream fixes) currently shows as using somewhere between 200-400M. (Although processes like this may be pinning more memory in less obvious ways).

2) The bug tracker and other sources say to be wary of any Cinnamon "spice applets, desklets, extensions", and non-default themes. They may cause the main cinnamon process to leak memory. I.e. make sure to test without them.

3) ghu knows what cinnamon-screensaver needs over 200M resident for when it's not active. It does not make me happy. Maybe also be some sort of leak. i) Try using whatever the default screensaver setting is, if you changed it. If you're not sure what the default was, try a blank screen option. ii) This might suggest a graphics driver problem - this can definitely be an issue, though I don't know if it's your main problem.

I make no promises! Maybe you can keep memory usage down to 3GB on idle, maybe not. If you can, it is not clear from your question that you would not consider 3GB on your "idle" load to be "high" as well :-).

4) If you are interested in learning about Terminal tools to look at memory usage:

  • At a basic level, please use free -h . free -g only shows the nearest gigabyte, e.g. it will show "0 shared" even if you have 499 megabytes used as "shared".

    (Don't make too many assumptions about what "shared" means in free, without very careful testing. Except that free does not count "shared" as part of "used"; for technical reasons it counts "shared" as part of "cached". But unlike the rest of the cache, the "shared" is not automatically freed up when you need to allocate more memory).

  • atop is a bit complex but worth the effort IMO. sudo atop -r, press m and M to show PSIZE for each process. This avoids you double-counting memory which is shared between multiple processes. The atop package also includes a service which can log per-process memory usage every ten minutes - great for seeing if something tends to leak increase its memory usage over time :-P.
  • Interesting read... +1 – Fabby May 10 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.