[CentOS] selinux commands fail on low memory box

Thu Oct 15 12:57:54 UTC 2015
Jonathan Billings <billings at negate.org>

On Thu, Oct 15, 2015 at 12:30:22AM -0400, Tim Dunphy wrote:
> > How about adding some swap into system?
> Not a bad idea, Eero! That worked.

You might want to consider permanent swap, particularly for such
low-memory systems.  For a simple web server, you'd probably benefit
from having the rest of the OS swapped out and dedicate more memory to
the httpds and disk caches.  If you're concerned about your web server
processes using swap, you can adjust the vm.swappiness parameter for
the httpd systemd unit's cgroup setting.

-- 
Jonathan Billings <billings at negate.org>