Re: Swappiness in Buster
Martin Reissner wrote:
> Yeah, only talking about server and mostly database applications. I
> usually set it to 1, but even tried 0 which disabled swap completely on
> Stretch but on Buster it didn't make a difference at all, the setting
> seems to be ignored while using default swappiness (60?) since Buster.
>
> Following output is from a mariadb server that didn't swap at all
> running Stretch.
>
> root@server:~# cat /proc/sys/vm/swappiness
> 1
> root@server:~# free -tm
> total used free shared buff/cache available
> Mem: 48284 9763 707 59 37814 38147
> Swap: 11443 5020 6423
> Total: 59728 14783 7131
May be look deeper in documentation - I recall asking few years ago and was
answered that now it would cache whatever it can and will free on demand.
swap is done only if memory is really insufficient.
I don't recall when or where I asked read this
Reply to: