single lxc container uses all host's memory

ned

Renowned Member
Jan 26, 2015
113
2
83
I have a small lxc container with 1GB of RAM but a large disk partition which is 800GB of images which are synced with rsync. While the rsync is syncing data over network the container RAM usage is max 10%. The problem is that the host's memory usage is increasing over time and finally gets to 90%.

There is only one container running on the host with rsync running inside. There is only 1GB of cached memory on hosts that is shown with free -gh command.

When I reboot the lxc container the used memory on host starts dropping and os freed in matter of seconds.

The CT is an unprivileged container.

Any idea how to fix this?

Code:
# pveversion
pve-manager/4.4-13/7ea56165 (running kernel: 4.4.49-1-pve)
 
It is ok, this is the cache.

see
all the other thread in the forum if you are interested on memory usage.
 
free -gh shows only 1GB of cache and 10GB of used memory. How can this be cache?