The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2385
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 74782d8944734125f44038ef811f8bc302d42b3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Thu, 15 Sep 2016 17:52:27 -0400 Subject: [PATCH] Clarify unsquashfs limit logic MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/images.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lxd/images.go b/lxd/images.go index 70b33e6..66ea2ba 100644 --- a/lxd/images.go +++ b/lxd/images.go @@ -100,6 +100,8 @@ func unpack(file string, path string) error { command = "unsquashfs" args = append(args, "-f", "-d", path, "-n") + // Limit unsquashfs chunk size to 10% of memory and up to 256MB (default) + // When running on a low memory system, also disable multi-processing mem, err := deviceTotalMemory() mem = mem / 1024 / 1024 / 10 if err == nil && mem < 256 {
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel