Tweaks for Ubuntu memory swap

  1. Intro
  2. Howto (tl;dr)
  3. Related stuff


Since upgrading my server to Ubuntu 14.04 I’m having issues with memory swap to disk all the time while at least 50% of the RAM is used for cache. After digging through many incorrect and risky comments on the interwebs and a few good pages (here and here) I found the settings below to be working really good.


Howto (tl;dr)

Note: I’m not responsible when this turns into something bad for you. Before applying them to your system, always research configurations until they make sense to you. Never simply copy/paste and hope for the best!

1. First add these lines to /etc/sysctl.conf


2. Then tell the running system to apply them: sudo sysctl -p

And you’re good to go.

Leave a Reply

Your email address will not be published. Required fields are marked *