The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/2219

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) ===
1MB is not very big, let's make that bigger.

Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>
From 5ed849c455e9eb757956c00f79802dcc28f512d7 Mon Sep 17 00:00:00 2001
From: Tycho Andersen <tycho.ander...@canonical.com>
Date: Tue, 19 Jul 2016 20:58:00 +0000
Subject: [PATCH] migrate: bump ghost limit

1MB is not very big, let's make that bigger.

Signed-off-by: Tycho Andersen <tycho.ander...@canonical.com>
---
 lxd/container_lxc.go | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/lxd/container_lxc.go b/lxd/container_lxc.go
index 5d1503b..1f9a09b 100644
--- a/lxd/container_lxc.go
+++ b/lxd/container_lxc.go
@@ -2799,12 +2799,21 @@ func (c *containerLXC) Migrate(cmd uint, stateDir 
string, function string, stop
                        script = filepath.Join(stateDir, "action.sh")
                }
 
+               // TODO: make this configurable? Ultimately I think we don't
+               // want to do that; what we really want to do is have "modes"
+               // of criu operation where one is "make this succeed" and the
+               // other is "make this fast". Anyway, for now, let's choose a
+               // really big size so it almost always succeeds, even if it is
+               // slow.
+               ghostLimit := uint64(256 * 1024 * 1024)
+
                opts := lxc.MigrateOptions{
                        Stop:            stop,
                        Directory:       stateDir,
                        Verbose:         true,
                        PreservesInodes: preservesInodes,
                        ActionScript:    script,
+                       GhostLimit:      ghostLimit,
                }
 
                migrateErr = c.c.Migrate(cmd, opts)
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to