On 04/08/2017 11:55:29 PM, Alan McKinnon wrote:
On 08/04/2017 21:33, Helmut Jarausch wrote:
> Hi,
>
> since a few days my system eats up memory, uses SWAP space and gets
slow.
> It might depend on xorg-server, but I don't know why.
>
> On a nearly idle system (except xorg-server and some XTerms) I have
> MEM | tot 7.5G | free 2.9G | cache 1.2G | buff 114.6M
|
> slab 498.0M | shmem 848.3M | vmbal 0.0M | hptot 0.0M
>
> (My system has 8G memory installed)
>
> Adding up all terms except 'tot' I get 5.6G where are the remaining
2G?
> And why is shmem 0.85G - I have even seen a value of 4G for shmem
> although all tempfs filesystems
> were nearly empty.
Lots of things use shared memory. All you know here is that something
is
using lots of it
You haven't done much useful to track it down. Find the process that
is
really using memory. A very quick easy first step is to run top and
sort
on the memory columns (just take the left-most memory-related column
with a big bag of salt, it doesn't show what people usually think).
Then
correlate that with packages you recently updated.
Thanks Alan.
I think my problem is a bit more complicated.
I did try to identify a process which eats my memory, but I couldn't
find one.
I have written a small Python program which does something similar to
htop / atop
which I've used before.
And here is what I get (I have summed up all 'visible' memory that top
would have shown)
And please, compare this to what I see as memory usage.
X memory usage: 548367360 swap 0
colord memory usage: 69735424 swap 0
python memory usage: 16473088 swap 0
python3 memory usage: 15261696 swap 0
nedit memory usage: 12661760 swap 0
atop memory usage: 10737664 swap 0
cupsd memory usage: 10657792 swap 0
icewm memory usage: 10000384 swap 0
nedit memory usage: 9300992 swap 0
gconfd-2 memory usage: 8031232 swap 0
xterm memory usage: 7298048 swap 0
xterm memory usage: 6979584 swap 0
xterm memory usage: 6731776 swap 0
polkitd memory usage: 5476352 swap 0
xterm memory usage: 4276224 swap 0
systemd-udevd memory usage: 3397632 swap 0
zsh memory usage: 3300352 swap 0
zsh memory usage: 3064832 swap 0
xterm memory usage: 2962432 swap 0
zsh memory usage: 2939904 swap 0
zsh memory usage: 2852864 swap 0
syslog-ng memory usage: 2841600 swap 0
xterm memory usage: 2834432 swap 0
zsh memory usage: 2819072 swap 0
zsh memory usage: 2812928 swap 0
zsh memory usage: 2799616 swap 0
zsh memory usage: 2798592 swap 0
icewmtray memory usage: 2284544 swap 0
icewmbg memory usage: 2159616 swap 0
upowerd memory usage: 1927168 swap 0
xless memory usage: 1859584 swap 0
at-spi2-registryd memory usage: 1820672 swap 0
xless memory usage: 1741824 swap 0
gvfsd-fuse memory usage: 1623040 swap 0
gvfsd memory usage: 1613824 swap 0
at-spi-bus-launcher memory usage: 1581056 swap 0
login memory usage: 1528832 swap 0
console-kit-daemon memory usage: 1523712 swap 0
dbus-daemon memory usage: 1434624 swap 0
su memory usage: 1292288 swap 0
su memory usage: 1292288 swap 0
dbus-launch memory usage: 1124352 swap 0
dconf-service memory usage: 1123328 swap 0
dbus-daemon memory usage: 1037312 swap 0
xfconfd memory usage: 1034240 swap 0
sshd memory usage: 998400 swap 0
dbus-daemon memory usage: 823296 swap 0
vsftpd memory usage: 717824 swap 0
startx memory usage: 651264 swap 0
sh memory usage: 650240 swap 0
xinit memory usage: 611328 swap 0
fcron memory usage: 599040 swap 0
syslog-ng memory usage: 589824 swap 0
pland memory usage: 538624 swap 0
atd memory usage: 462848 swap 0
agetty memory usage: 364544 swap 0
agetty memory usage: 362496 swap 0
agetty memory usage: 361472 swap 0
agetty memory usage: 356352 swap 0
agetty memory usage: 353280 swap 0
dpid memory usage: 327680 swap 0
init memory usage: 284672 swap 0
Total memory {Mb]: 776.73828125 i.e. ONLY 0.776 Gb
BUT the system is swapping :
MEM | tot 7.5G | free 59.2M | cache 3.8G | buff 170.1M |
slab 477.1M | shmem 3.7G | vmbal 0.0M | hptot 0.0M |
SWP | tot 4.0G | free 1.9G | |
| | | vmcom 6.5G | vmlim 7.8G |
just after starting X11 I have
free -m
total used free shared buff/cache
available
Mem: 7718 149 7252 0
316 7472
Swap: 4095 1 4094