Urbackup server (urbackupsrv) eats swap!

Hi all. I have an urbackup server (v2.4.10 runs on ubuntu 18.04 x 64 + btrfs storage) there is no problem with it but urbackupsrv process eats my swap.

root@backup:~# free -m
total used free shared buff/cache available
Mem: 5944 1274 967 2 3702 4377

there is many free RAM but swap is full.

root@backup:~# for file in /proc/*/status ; do awk ‘/VmSwap|Name/{printf $2 " " $3}END{ print “”}’ $file; done | sort -k 2 -n -r | less
urbackupsrv 959812 kB

I think this is an abnormal situation.

See the last discussion here: High memory utilization

Some issues might already be fixed in 2.5.x (specifically with lmdb, see https://github.com/uroni/urbackup_backend/commits/dev/urbackupserver/lmdb ).

The ZSTD compression also uses a lot of memory for idle connections, it would be interesting to see if that is what causes your problem (you’d see that in a heaptrack trace). Nowadays heaptrack can be installed via apt install heaptrack.

1 Like

You swap size is to small (1G) you need almost same what is a memory (6G).