From a3a946703ba93e7d937680897ed89eb99c52acef 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 --- lxc_template.go | 1 + 1 file changed, 1 insertion(+) diff --git a/lxc_template.go b/lxc_template.go index 931095c99..47f2058dc 100755 --- a/lxc_template.go +++ b/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}} `