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. https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Resource_Management_Guide/sec-memory.html Not necessarily as effective as mlock() but you might want to set some of the other cgroup features as well. -- Jonathan Billings <billings@xxxxxxxxxx> _______________________________________________ CentOS mailing list CentOS@xxxxxxxxxx http://lists.centos.org/mailman/listinfo/centos