From: Wei Liu Subject: [PATCH] ts-debian-hvm-install: fix local migration test Date: Thu, 17 Apr 2014 15:19:45 +0100 Message-ID: <1397744386-32476-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: Wei Liu , ian.jackson@eu.citrix.com, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Make sure there's enough free RAM for local migration test. Signed-off-by: Wei Liu --- ts-debian-hvm-install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index 1bca1f7..86fd7be 100755 --- a/ts-debian-hvm-install +++ b/ts-debian-hvm-install @@ -167,12 +167,12 @@ sub prep () { }); } -# If host has >5G free memory, create a guest with 5G memory to catch +# If host has >9G free memory, create a guest with 4.5G memory to catch # any error that triggers cross 4G boundary my $host_freemem_mb = host_get_free_memory($ho, $toolstack); my $ram_minslop = 100; -my $ram_lots = 5000; -if ($host_freemem_mb > $ram_lots + $ram_minslop) { +my $ram_lots = 4500; +if ($host_freemem_mb > $ram_lots * 2 + $ram_minslop) { $ram_mb = $ram_lots; } else { $ram_mb = 768; -- 1.7.10.4