1 |
On 04/08/2017 11:55:29 PM, Alan McKinnon wrote: |
2 |
> On 08/04/2017 21:33, Helmut Jarausch wrote: |
3 |
> > Hi, |
4 |
> > |
5 |
> > since a few days my system eats up memory, uses SWAP space and gets |
6 |
> slow. |
7 |
> > It might depend on xorg-server, but I don't know why. |
8 |
> > |
9 |
> > On a nearly idle system (except xorg-server and some XTerms) I have |
10 |
> > MEM | tot 7.5G | free 2.9G | cache 1.2G | buff 114.6M |
11 |
> | |
12 |
> > slab 498.0M | shmem 848.3M | vmbal 0.0M | hptot 0.0M |
13 |
> > |
14 |
> > (My system has 8G memory installed) |
15 |
> > |
16 |
> > Adding up all terms except 'tot' I get 5.6G where are the remaining |
17 |
> 2G? |
18 |
> > And why is shmem 0.85G - I have even seen a value of 4G for shmem |
19 |
> > although all tempfs filesystems |
20 |
> > were nearly empty. |
21 |
> |
22 |
> Lots of things use shared memory. All you know here is that something |
23 |
> is |
24 |
> using lots of it |
25 |
> |
26 |
> You haven't done much useful to track it down. Find the process that |
27 |
> is |
28 |
> really using memory. A very quick easy first step is to run top and |
29 |
> sort |
30 |
> on the memory columns (just take the left-most memory-related column |
31 |
> with a big bag of salt, it doesn't show what people usually think). |
32 |
> Then |
33 |
> correlate that with packages you recently updated. |
34 |
|
35 |
Thanks Alan. |
36 |
I think my problem is a bit more complicated. |
37 |
I did try to identify a process which eats my memory, but I couldn't |
38 |
find one. |
39 |
|
40 |
I have written a small Python program which does something similar to |
41 |
htop / atop |
42 |
which I've used before. |
43 |
|
44 |
And here is what I get (I have summed up all 'visible' memory that top |
45 |
would have shown) |
46 |
And please, compare this to what I see as memory usage. |
47 |
|
48 |
|
49 |
X memory usage: 548367360 swap 0 |
50 |
colord memory usage: 69735424 swap 0 |
51 |
python memory usage: 16473088 swap 0 |
52 |
python3 memory usage: 15261696 swap 0 |
53 |
nedit memory usage: 12661760 swap 0 |
54 |
atop memory usage: 10737664 swap 0 |
55 |
cupsd memory usage: 10657792 swap 0 |
56 |
icewm memory usage: 10000384 swap 0 |
57 |
nedit memory usage: 9300992 swap 0 |
58 |
gconfd-2 memory usage: 8031232 swap 0 |
59 |
xterm memory usage: 7298048 swap 0 |
60 |
xterm memory usage: 6979584 swap 0 |
61 |
xterm memory usage: 6731776 swap 0 |
62 |
polkitd memory usage: 5476352 swap 0 |
63 |
xterm memory usage: 4276224 swap 0 |
64 |
systemd-udevd memory usage: 3397632 swap 0 |
65 |
zsh memory usage: 3300352 swap 0 |
66 |
zsh memory usage: 3064832 swap 0 |
67 |
xterm memory usage: 2962432 swap 0 |
68 |
zsh memory usage: 2939904 swap 0 |
69 |
zsh memory usage: 2852864 swap 0 |
70 |
syslog-ng memory usage: 2841600 swap 0 |
71 |
xterm memory usage: 2834432 swap 0 |
72 |
zsh memory usage: 2819072 swap 0 |
73 |
zsh memory usage: 2812928 swap 0 |
74 |
zsh memory usage: 2799616 swap 0 |
75 |
zsh memory usage: 2798592 swap 0 |
76 |
icewmtray memory usage: 2284544 swap 0 |
77 |
icewmbg memory usage: 2159616 swap 0 |
78 |
upowerd memory usage: 1927168 swap 0 |
79 |
xless memory usage: 1859584 swap 0 |
80 |
at-spi2-registryd memory usage: 1820672 swap 0 |
81 |
xless memory usage: 1741824 swap 0 |
82 |
gvfsd-fuse memory usage: 1623040 swap 0 |
83 |
gvfsd memory usage: 1613824 swap 0 |
84 |
at-spi-bus-launcher memory usage: 1581056 swap 0 |
85 |
login memory usage: 1528832 swap 0 |
86 |
console-kit-daemon memory usage: 1523712 swap 0 |
87 |
dbus-daemon memory usage: 1434624 swap 0 |
88 |
su memory usage: 1292288 swap 0 |
89 |
su memory usage: 1292288 swap 0 |
90 |
dbus-launch memory usage: 1124352 swap 0 |
91 |
dconf-service memory usage: 1123328 swap 0 |
92 |
dbus-daemon memory usage: 1037312 swap 0 |
93 |
xfconfd memory usage: 1034240 swap 0 |
94 |
sshd memory usage: 998400 swap 0 |
95 |
dbus-daemon memory usage: 823296 swap 0 |
96 |
vsftpd memory usage: 717824 swap 0 |
97 |
startx memory usage: 651264 swap 0 |
98 |
sh memory usage: 650240 swap 0 |
99 |
xinit memory usage: 611328 swap 0 |
100 |
fcron memory usage: 599040 swap 0 |
101 |
syslog-ng memory usage: 589824 swap 0 |
102 |
pland memory usage: 538624 swap 0 |
103 |
atd memory usage: 462848 swap 0 |
104 |
agetty memory usage: 364544 swap 0 |
105 |
agetty memory usage: 362496 swap 0 |
106 |
agetty memory usage: 361472 swap 0 |
107 |
agetty memory usage: 356352 swap 0 |
108 |
agetty memory usage: 353280 swap 0 |
109 |
dpid memory usage: 327680 swap 0 |
110 |
init memory usage: 284672 swap 0 |
111 |
|
112 |
Total memory {Mb]: 776.73828125 i.e. ONLY 0.776 Gb |
113 |
|
114 |
BUT the system is swapping : |
115 |
|
116 |
MEM | tot 7.5G | free 59.2M | cache 3.8G | buff 170.1M | |
117 |
slab 477.1M | shmem 3.7G | vmbal 0.0M | hptot 0.0M | |
118 |
SWP | tot 4.0G | free 1.9G | | |
119 |
| | | vmcom 6.5G | vmlim 7.8G | |
120 |
|
121 |
just after starting X11 I have |
122 |
free -m |
123 |
total used free shared buff/cache |
124 |
available |
125 |
Mem: 7718 149 7252 0 |
126 |
316 7472 |
127 |
Swap: 4095 1 4094 |