You are not logged in.

#1 2013-03-26 10:41:07

Raiden616
Member
Registered: 2012-11-13
Posts: 28

Can't figure out what's using all my RAM

Hi there everyone,

I was wondering if anyone could help me with an issue I have been experiencing lately. Been running Arch for quite a while so this may have only started with a recent reinstall, but I'm not sure.

Basically, I have 4GB of RAM. When I turn on my PC it's steady about 1GB but as times goes on I notice the steady amount gradually go up. It does this until it maxes out at 4GB. When it did this a moment ago, I closed EVERYTHING but my desktop environment and it's still sitting steadily around 3. Checking ps aux none of my processes are using more than about 2-3%.

Does anyone have any hints as to what may be causing this, or how I can find out more info?

Thanks very much in advance!

Offline

#2 2013-03-26 10:59:20

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,734
Website

Re: Can't figure out what's using all my RAM

If you check ps aux when the memory is full, you don't see what's sapping it?  If you compare the output there to another util like htop, do the values agree?  Try this little alias I picked up from somewhere:

% which memrss
memrss: aliased to ps -eo comm,pmem,rss,etime --sort -rss | numfmt --header --from-unit=1024 --to=iec --field 3 | column -t | head -n20

Example on my system:

% memrss
COMMAND          %MEM  RSS   ELAPSED
deluged          1.9   626M  01:31:17
Thunar           0.6   214M  05:14:19
xfdesktop        0.6   194M  05:14:19
deluge-gtk       0.3   113M  58:03
Xorg             0.2   87M   05:14:24
xfwm4            0.1   57M   05:14:19
panel-10-weathe  0.1   53M   05:14:19
xfce4-panel      0.1   40M   05:14:19
panel-7-pulseau  0.1   38M   05:14:19
xfce4-terminal   0.1   38M   00:02
xfce4-session    0.1   34M   05:14:19
panel-8-actions  0.0   28M   05:14:19
tumblerd         0.0   28M   00:58
systemd-journal  0.0   27M   01:43:27
panel-9-xfce4-s  0.0   26M   05:14:19
panel-14-netloa  0.0   25M   05:14:19
panel-4-datetim  0.0   25M   05:14:19
xfce4-screensav  0.0   25M   05:14:19
python           0.0   23M   04:59:19

Last edited by graysky (2020-12-06 20:30:48)

Offline

#3 2013-03-26 11:28:55

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,737
Website

Re: Can't figure out what's using all my RAM

Could it simply be a case of disk caching? http://www.linuxatemyram.com/


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2013-03-26 11:35:54

hunterthomson
Member
Registered: 2008-06-22
Posts: 794
Website

Re: Can't figure out what's using all my RAM

WorMzy wrote:

Could it simply be a case of disk caching? http://www.linuxatemyram.com/

Ya, could the OP show the output of `free -m`

Last edited by hunterthomson (2013-03-26 11:36:12)


OpenBSD-current Thinkpad X230, i7-3520M, 16GB CL9 Kingston, Samsung 830 256GB
Contributor: linux-grsec

Offline

#5 2013-03-26 12:38:29

Raiden616
Member
Registered: 2012-11-13
Posts: 28

Re: Can't figure out what's using all my RAM

Thanks for the quick help guys. Here is the output of "free -m":

                  total       used       free     shared    buffers     cached
Mem:          3957       3372        585          0        151        624
-/+ buffers/cache:       2596       1361
Swap:            0          0          0

Offline

#6 2013-03-27 14:06:54

Fedes
Member
From: Buenos Aires, Argentina
Registered: 2012-10-23
Posts: 36

Re: Can't figure out what's using all my RAM

You are actually using 2.5 GB and have 1.3 available. You could try using "htop", it's easier to see at a glance which one is the process using more memory. Also, you may want to consider adding some swap, if your pc will go above 4GB often.

Offline

Board footer

Powered by FluxBB