This is an old revision of the document!


Tuning

Swap behavior

  • Set swappiness to 10 in /etc/sysctl.conf or /etc/sysctl.d/99-webserver-tuning.conf:
    vm.swappiness=10
  • Save the file, then:
    sudo sysctl --system
    cat /proc/sys/vm/swappiness