Re: Need help analyzing (kernel?) memory usage and reclaiming RAM (Debian Stretch)
On Mon, Apr 15, 2019 at 04:35:27PM +0300, Reco wrote:
> Can you please provide unsorted outputs of /proc/meminfo? It's easier to
> compare them if they are unsorted.
> And "smem -tm | tail" would be helpful too.
Thanks for your input!
The system from my previous example has already been rebooted, sorry!
But here's from another system that currently starts showing the same
problem and has an equally small workload:
------------------------------------------------------------------------
root@rad-wgv-srv01:~# free -thwl
total used free shared buffers cache available
Mem: 987M 843M 72M 1,1M 9,7M 61M 37M
Low: 987M 914M 72M
High: 0B 0B 0B
Swap: 2,0G 75M 1,9G
Total: 3,0G 919M 2,0G
root@rad-wgv-srv01:~# cat /proc/meminfo
MemTotal: 1010976 kB
MemFree: 73980 kB
MemAvailable: 38756 kB
Buffers: 9964 kB
Cached: 50340 kB
SwapCached: 2728 kB
Active: 58776 kB
Inactive: 15164 kB
Active(anon): 11068 kB
Inactive(anon): 3696 kB
Active(file): 47708 kB
Inactive(file): 11468 kB
Unevictable: 0 kB
Mlocked: 0 kB
SwapTotal: 2097148 kB
SwapFree: 2019416 kB
Dirty: 104 kB
Writeback: 0 kB
AnonPages: 13048 kB
Mapped: 19904 kB
Shmem: 1120 kB
Slab: 90744 kB
SReclaimable: 13100 kB
SUnreclaim: 77644 kB
KernelStack: 2700 kB
PageTables: 3764 kB
NFS_Unstable: 0 kB
Bounce: 0 kB
WritebackTmp: 0 kB
CommitLimit: 2602636 kB
Committed_AS: 155208 kB
VmallocTotal: 34359738367 kB
VmallocUsed: 0 kB
VmallocChunk: 0 kB
HardwareCorrupted: 0 kB
AnonHugePages: 0 kB
ShmemHugePages: 0 kB
ShmemPmdMapped: 0 kB
HugePages_Total: 0
HugePages_Free: 0
HugePages_Rsvd: 0
HugePages_Surp: 0
Hugepagesize: 2048 kB
DirectMap4k: 925568 kB
DirectMap2M: 122880 kB
root@rad-wgv-srv01:~# smem -tm | tail
/bin/bash 3 358 1076
/lib/systemd/systemd 3 386 1158
/lib/x86_64-linux-gnu/libc-2.24.so 33 54 1783
/usr/lib/x86_64-linux-gnu/libcrypto.so.1 5 386 1933
/usr/bin/python2.7 1 2220 2220
/lib/systemd/libsystemd-shared-232.so 5 544 2723
<anonymous> 33 146 4848
[heap] 33 304 10060
-----------------------------------------------------------------
179 922 11110 41011
root@rad-wgv-srv01:~# ps aux --sort=-rss | head -15
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 61714 0.0 0.6 95180 6676 ? Ss 16:35 0:00 sshd: msch [priv]
msch 61716 0.0 0.5 64832 5852 ? Ss 16:35 0:00 /lib/systemd/systemd --user
msch 61723 0.0 0.4 95452 4996 ? S 16:35 0:00 sshd: msch@pts/0
msch 61724 0.2 0.4 23636 4924 pts/0 Ss 16:35 0:00 -bash
root 62015 1.0 0.4 23740 4892 pts/0 S 16:36 0:00 -bash
root 1 0.0 0.4 57128 4440 ? Ss Mär29 14:30 /lib/systemd/systemd --system --deserialize 19
root 62014 0.0 0.3 51964 3836 pts/0 S 16:36 0:00 sudo -i
root 62040 0.0 0.3 41164 3584 pts/0 R+ 16:37 0:00 ps aux --sort=-rss
root 228 0.1 0.2 136620 2884 ? Ss Mär29 31:20 /usr/bin/vmtoolsd
root 224 0.0 0.2 55556 2560 ? Ss Mär29 13:48 /lib/systemd/systemd-journald
root 411 0.0 0.2 46520 2408 ? Ss Mär29 6:40 /lib/systemd/systemd-logind
message+ 419 0.0 0.1 45200 1332 ? Ss Mär29 6:39 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
msch 61717 0.0 0.1 82652 1268 ? S 16:35 0:00 (sd-pam)
_chrony 531 0.0 0.1 29980 1184 ? S Mär29 0:52 /usr/sbin/chronyd
root@rad-wgv-srv01:~# uname -a
Linux rad-wgv-srv01 4.9.0-8-amd64 #1 SMP Debian 4.9.144-3 (2019-02-02) x86_64 GNU/Linux
root@rad-wgv-srv01:~#
------------------------------------------------------------------------
(any other commands I should repeat on the new system?)
Thanks
Martin
--
Martin Schwarz * Karlsruhe, Germany * http://kuroi.de/
Reply to: