Web lists-archives.com

Re: using swap when there is free ram




	Hi.

On Fri, Mar 01, 2019 at 02:12:06PM -0300, Bruno Schneider wrote:
> My system started using swap space even when there is available RAM:
> 
> $ free -m
>               total        used        free      shared  buff/cache   available
> Mem:           3882        1004        2303          63         573        2598
> Swap:           956         239         717
> 
> Can anyone help find the reason / prevent it?

Please post the contents of /proc/meminfo. And "sar -r ALL 1 10", for
the sake of the completeness.

To prevent it:

sysctl -w vm.swappiness=0

Reco