Browse Source

sysctl: Set swappines to 1 to decourage machines from swapping.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
Maximilian Wilhelm 5 years ago
parent
commit
3ab4af0dd4
1 changed files with 4 additions and 0 deletions
  1. 4 0
      sysctl/global.conf

+ 4 - 0
sysctl/global.conf

@@ -61,3 +61,7 @@ net.ipv4.netfilter.ip_conntrack_tcp_be_liberal = 1
 net.bridge.bridge-nf-call-iptables = 0
 net.bridge.bridge-nf-call-ip6tables = 0
 net.bridge.bridge-nf-call-arptables = 0
+
+#
+# Prevent swapping
+vm.swappiness = 1