Ram in use after suspend issue
from dr_jekell@lemmy.world to linux@lemmy.ml on 01 Apr 15:39
https://lemmy.world/post/27659551

So I recently built a new computer to replace my 7 year old one but I have noticed a strange problem with it.

When I boot up the computer and use it as normal it sits around 8-10 GiB of ram in use plus about another 9 GiB committed.

But when I suspend the computer then un-suspend it later the in use ram starts creeping up even if I have less running than I did when I originally booted the computer.

Last time this happened it went from 10 GiB all the way up to about 43 GiB in the space of a few hours.

If I reboot then things go back to normal behavior.

Anyone have any ideas about what I could look for to fix it?


Specs:

#linux

threaded - newest

bjoern_tantau@swg-empire.de on 01 Apr 15:53 next collapse

Can you see with top or ps what program is eating up all the RAM? Probably some bug you may report.

dr_jekell@lemmy.world on 01 Apr 16:25 next collapse

Will check after work today.

dr_jekell@lemmy.world on 03 Apr 12:10 collapse

Here is what I started with:

<img alt="" src="https://lemmy.world/pictrs/image/98d56b64-aaa6-4a5b-b73d-f7c0e64d66a7.jpeg">

<img alt="" src="https://lemmy.world/pictrs/image/1d9c7006-0283-4b56-b2b9-d5d314ff60e2.jpeg">

And what I have today after 3 suspends:

<img alt="" src="https://lemmy.world/pictrs/image/039c0073-46a5-43a7-8a18-6f8690475427.jpeg">

<img alt="" src="https://lemmy.world/pictrs/image/fbdf4add-a760-4d5b-90c7-4a940b8e6716.jpeg">

<img alt="" src="https://lemmy.world/pictrs/image/42916f15-8a1a-4627-a57f-daac2934f62f.jpeg">

Markaos@discuss.tchncs.de on 03 Apr 17:38 collapse

xfwm is XFCE’s window manager, and it’s eating almost 30% of the total system memory, so that’s the prime suspect (I’m not exactly sure how much it interacts with other apps, so it’s possible something else is forcing xfwm to use all that memory, but that is IMHO unlikely).

An ugly “fix” is to log out and log back in (yes, not much better than just rebooting), or you could try to somehow restart xfwm - running xfvm --replace in terminal might work.

Edit: there’s an issue on the Manjaro forums that might be related: forum.manjaro.org/t/…/7

dr_jekell@lemmy.world on 07 Apr 10:20 collapse

Of course it would be a Nvidia driver issue.

Thought about getting a AMD card but as I had only had one major issue with my previous 1070 (that was fixed by reloading my Timeshift snapshot then not upgrading the driver until the next version) so I thought that I would continue with Nvidia.

Eh, I can’t change it for now but at least I know what is causing it and can work around it.

Thanks for the assist.

drspod@lemmy.ml on 01 Apr 16:16 next collapse

What desktop environment are you using?

dr_jekell@lemmy.world on 01 Apr 16:25 collapse

XFCE

MentalEdge@sopuli.xyz on 01 Apr 18:03 next collapse

Is it actually being used?

My guess it just doesn’t evict stuff from before the suspend, starts re-loading stuff after the resume, which makes the apparent amount “used” go up.

On a normal linux system, “free” RAM will over time drop down to zero, as the kernel puts the extra memory available to use. But it doesn’t mean there isn’t room to evict less-needed stuff if necessary.

AFAIK linux only starts actively evicting RAM once it fills up.

Like the other guy mentioned, drill down and see if you can find the actual program causing the problem.

xmanmonk@lemmy.sdf.org on 01 Apr 22:41 collapse

What is the output of “free -h”?

dr_jekell@lemmy.world on 03 Apr 12:12 collapse

Just made a reply to Björn Tantau.