From 4fa07b4e3ab2132c22e67d02f37e819ba7046600 Mon Sep 17 00:00:00 2001 From: Sam Alba Date: Mon, 11 Mar 2013 14:28:11 -0700 Subject: [PATCH] Set the memory soft limit to the same value than the hard limit Upstream-commit: a3a946703ba93e7d937680897ed89eb99c52acef Component: engine --- components/engine/lxc_template.go | 1 + 1 file changed, 1 insertion(+) diff --git a/components/engine/lxc_template.go b/components/engine/lxc_template.go index 931095c99d..47f2058dc4 100755 --- a/components/engine/lxc_template.go +++ b/components/engine/lxc_template.go @@ -87,6 +87,7 @@ lxc.cap.drop = audit_control audit_write mac_admin mac_override mknod net_raw se # limits {{if .Config.Ram}} lxc.cgroup.memory.limit_in_bytes = {{.Config.Ram}} +lxc.cgroup.memory.soft_limit_in_bytes = {{.Config.Ram}} {{end}} `