we have rhel servers with version 7.6
we configured the swap and we can see the swap size from the following
free -g
total used free shared buff/cache available
Mem: 38 32 0 0 4 4
Swap: 23 0 23
we also configured the vm.swappiness as the following
sysctl -a | grep swap
vm.swappiness = 95
from my understanding , when available memory comes to few GIGA free memory as 1-5G
then swap should be triggered , and we expect to have for example 5-10G swap total memory
but this inst happens
so what we should also check on my server?
maybe some other configuration that disabled the swap ?
update when doing free
free -g
total used free shared buff/cache available
Mem: 11 8 0 0 2 2
Swap: 23 0 23
# free
total used free shared buff/cache available
Mem: 11828240 8810264 161388 24696 2856588 2555472
Swap: 24575992 5120 24570872
free
? Why do you want to force your servers to swap out? – Stephen Kitt Oct 17 '20 at 20:56free
without-g
show in such cases? – Stephen Kitt Oct 17 '20 at 21:22