I noticied that the 4.4 version seems to use all the available swap space.
In my 1.x, 2.x, 3.x installations I never had this problem. I can solve it with a "swapoff -a && swapon -a", but I can't understad why this happen and how I can solve it.
The host phisycal memory is 32 GB. The total VMs memory allocated is less than 16 GB.
The server have the same config and are all standard install without ZFS, without lvm-thin and with software RAID-1 from OVH template:
# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 6.3G 345M 6.0G 6% /run
/dev/md2 923G 488G 389G 56% /
tmpfs 16G 43M 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/mapper/pve-data 906G 143G 718G 17% /var/lib/vz
/dev/fuse 30M 20K 30M 1% /etc/pve
Here the memory usage:
root@pmx4a:/etc/pve/lxc# free
total used free shared buffers cached
Mem: 32936996 32433844 503152 134844 14950204 3168440
-/+ buffers/cache: 14315200 18621796
Swap: 2095096 2031424 63672
root@pmx4a:/etc/pve/lxc# swapoff -a && swapon -a
root@pmx4a:/etc/pve/lxc# free
total used free shared buffers cached
Mem: 32936996 32710736 226260 409632 13513588 3175924
-/+ buffers/cache: 16021224 16915772
Swap: 2095096 1560 2093536
root@pmx4b:/etc/postfix# free
total used free shared buffers cached
Mem: 32937172 32685636 251536 494016 6521660 2008824 -/+ buffers/cache: 24155152 8782020
Swap: 2095096 2094996 100
root@pmx4b:/etc/postfix# swapoff -a && swapon -a
root@pmx4b:/etc/postfix# free
total used free shared buffers cached
Mem: 32937172 32685908 251264 685264 5187300 2046684 -/+ buffers/cache: 25451924 7485248
Swap: 2095096 144 2094952
He need to "swapoff -a && swapon -a" once or twice for week, while 3.4 install (24/32 GB allocated) as usually don't have this beauvoir:
root@pmx34~# free total used free shared buffers cached
Mem: 32934468 32659672 274796 0 4134192 17794100
-/+ buffers/cache: 10731380 22203088
Swap: 2095096 18692 2076404
root@pmx34:~# w
12:15:26 up 113 days, 52 min, 9 users, load average: 0.41, 0.28, 0.28
Same for all my remaining 3.x installations and in the past for the 2.x and 1.x.
Any hints?
Regards, P.
In my 1.x, 2.x, 3.x installations I never had this problem. I can solve it with a "swapoff -a && swapon -a", but I can't understad why this happen and how I can solve it.
The host phisycal memory is 32 GB. The total VMs memory allocated is less than 16 GB.
The server have the same config and are all standard install without ZFS, without lvm-thin and with software RAID-1 from OVH template:
# df -h
Filesystem Size Used Avail Use% Mounted on
udev 10M 0 10M 0% /dev
tmpfs 6.3G 345M 6.0G 6% /run
/dev/md2 923G 488G 389G 56% /
tmpfs 16G 43M 16G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/mapper/pve-data 906G 143G 718G 17% /var/lib/vz
/dev/fuse 30M 20K 30M 1% /etc/pve
Here the memory usage:
root@pmx4a:/etc/pve/lxc# free
total used free shared buffers cached
Mem: 32936996 32433844 503152 134844 14950204 3168440
-/+ buffers/cache: 14315200 18621796
Swap: 2095096 2031424 63672
root@pmx4a:/etc/pve/lxc# swapoff -a && swapon -a
root@pmx4a:/etc/pve/lxc# free
total used free shared buffers cached
Mem: 32936996 32710736 226260 409632 13513588 3175924
-/+ buffers/cache: 16021224 16915772
Swap: 2095096 1560 2093536
root@pmx4b:/etc/postfix# free
total used free shared buffers cached
Mem: 32937172 32685636 251536 494016 6521660 2008824 -/+ buffers/cache: 24155152 8782020
Swap: 2095096 2094996 100
root@pmx4b:/etc/postfix# swapoff -a && swapon -a
root@pmx4b:/etc/postfix# free
total used free shared buffers cached
Mem: 32937172 32685908 251264 685264 5187300 2046684 -/+ buffers/cache: 25451924 7485248
Swap: 2095096 144 2094952
He need to "swapoff -a && swapon -a" once or twice for week, while 3.4 install (24/32 GB allocated) as usually don't have this beauvoir:
root@pmx34~# free total used free shared buffers cached
Mem: 32934468 32659672 274796 0 4134192 17794100
-/+ buffers/cache: 10731380 22203088
Swap: 2095096 18692 2076404
root@pmx34:~# w
12:15:26 up 113 days, 52 min, 9 users, load average: 0.41, 0.28, 0.28
Same for all my remaining 3.x installations and in the past for the 2.x and 1.x.
Any hints?
Regards, P.