High memory usage

Hello.

I noticed almost all memory on my router is used:

$show system memory 
Total: 7969
Free:  939
Used:  7030

But I don’t understand which processes use memory:

$cat /proc/meminfo 
MemTotal:        8160784 kB
MemFree:          638228 kB
MemAvailable:     591492 kB
Buffers:           56852 kB
Cached:           267404 kB
SwapCached:            0 kB
Active:          1547624 kB
Inactive:         198900 kB
Active(anon):    1437708 kB
Inactive(anon):   147716 kB
Active(file):     109916 kB
Inactive(file):    51184 kB
Unevictable:        6392 kB
Mlocked:            6392 kB
SwapTotal:             0 kB
SwapFree:              0 kB
Dirty:                 4 kB
Writeback:             0 kB
AnonPages:       1428668 kB
Mapped:            29684 kB
Shmem:            159748 kB
Slab:             207024 kB
SReclaimable:      17308 kB
SUnreclaim:       189716 kB
KernelStack:        2400 kB
PageTables:         6404 kB
NFS_Unstable:          0 kB
Bounce:                0 kB
WritebackTmp:          0 kB
CommitLimit:     4080392 kB
Committed_AS:    1741880 kB
VmallocTotal:   34359738367 kB
VmallocUsed:           0 kB
VmallocChunk:          0 kB
Percpu:             2432 kB
HardwareCorrupted:     0 kB
AnonHugePages:   1257472 kB
ShmemHugePages:        0 kB
ShmemPmdMapped:        0 kB
HugePages_Total:       0
HugePages_Free:        0
HugePages_Rsvd:        0
HugePages_Surp:        0
Hugepagesize:       2048 kB
Hugetlb:               0 kB
DirectMap4k:      227600 kB
DirectMap2M:     8159232 kB

$ps -eo rss,command --sort -rss
  RSS COMMAND
711208 /usr/lib/frr/bgpd -d --daemon -A 127.0.0.1 -M snmp -M rpki
482336 /usr/lib/frr/zebra -d -s 90000000 --daemon -A 127.0.0.1 -M snmp -n
191592 /usr/sbin/snmpd -LSed -u snmp -g snmp -p /run/snmpd.pid
23052 /usr/bin/python3 -u /usr/libexec/vyos/services/vyos-hostsd
12180 /usr/sbin/dhcpd -q -4 -lf /config/dhcpd.leases -cf /etc/dhcp/dhcpd.conf -pf /var/run/dhcpd.pid
 9424 /usr/lib/frr/ospfd -d --daemon -A 127.0.0.1 -M snmp
 7548 /usr/lib/frr/ripd -d --daemon -A 127.0.0.1 -M snmp
 7472 /usr/lib/frr/ospf6d -d --daemon -A ::1 -M snmp
 7100 -vbash
 6400 /usr/bin/atop -a -w /var/log/atop/atop_20191121 600
 6040 sshd: vyos [priv]
 5996 sshd: vyos [priv]
 5448 /usr/sbin/sshd -D
 5164 /lib/systemd/systemd-journald
 5148 /sbin/init
 4844 sshd: vyos@pts/0 
 4680 /usr/sbin/haveged --Foreground --verbose=1 --write=1024
 4428 /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 105:112
 4096 /usr/sbin/rsyslogd -n
 3748 /usr/lib/frr/ripngd -d --daemon -A ::1
 3736 sshd: vyos       
 3620 /usr/lib/frr/watchfrr -d zebra bgpd ripd ripngd ospfd ospf6d staticd
 3400 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
 3364 /lib/systemd/systemd-udevd
 3212 /usr/lib/frr/staticd -d --daemon -A 127.0.0.1
 2832 /usr/sbin/cron -f
 2556 /lib/systemd/systemd-logind
 2292 /sbin/agetty --keep-baud 9600 ttyS0 vt102
 2268 ps -eo rss,command --sort -rss
 2080 /sbin/agetty --noclear tty1 linux
 1752 /usr/sbin/acpid
 1744 /usr/sbin/atd -f
 1152 /sbin/netplugd -P -p /var/run/vyos-netplug.pid
    0 [kthreadd]
    0 [rcu_gp]
    ...

I’d appreciate any ideas.

Which VyOS version are you using?
What the NICs in your system?

Which VyOS version are you using?

Self-built 1.2.3 (Build Commit ID: 24f1a74bc88f3a)

What the NICs in your system?

Ethernet controller: Intel Corporation 82599ES 10-Gigabit SFI/SFP+ Network Connection (rev 01)

Seems this is known issue, ixgbe modules version 5.5.5 is leaked. Bit more you can read Kernel Memory Leak on VyOS
It already fixed in crux tree, you need rebuild ISO or build ixgbe modules version 5.6.3.

Thanks for the help. I’ll build a new Crux image and try it out.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.