Re: Effectiveness of CentOS vm.swappiness

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux