[CentOS] Effectiveness of CentOS vm.swappiness

Mon Jun 8 13:02:39 UTC 2015
Jonathan Billings <billings at negate.org>

On Fri, Jun 05, 2015 at 08:40:27AM -0700, Greg Lindahl wrote:
> Linux does not treat various kinds of memory pages differently. If you
> want a daemon to be fully in core, call mlockall(). Here's one way to
> do that without changing the daemon's source:

Another way to do this is to put the services into a named CGroup, and
set memory.swappiness=1 for that cgroup.


Not necessarily as effective as mlock() but you might want to set some
of the other cgroup features as well.

Jonathan Billings <billings at negate.org>