[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH] ts-debian-hvm-install: fix local migration test



On Thu, Apr 17, 2014 at 03:21:55PM +0100, Ian Campbell wrote:
> On Thu, 2014-04-17 at 15:19 +0100, Wei Liu wrote:
> > Make sure there's enough free RAM for local migration test.
> > 
> > Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
> > ---
> >  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
> 
> Due to memory holes under 4G I reckon a 4.0G would be sufficient to
> catch the thing you are trying to catch.
> 
> Ian.
> 

Yes indeed.

---8<---
From 224cb2cb917791036cc38e19683d11818540e106 Mon Sep 17 00:00:00 2001
From: Wei Liu <wei.liu2@xxxxxxxxxx>
Date: Thu, 17 Apr 2014 14:59:06 +0100
Subject: [PATCH] ts-debian-hvm-install: fix local migration test

Make sure there's enough free RAM for local migration test.

Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx>
---
 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..069d4b6 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 >8G free memory, create a guest with 4G 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 = 4096;
+if ($host_freemem_mb > $ram_lots * 2 + $ram_minslop) {
     $ram_mb = $ram_lots;
 } else {
     $ram_mb = 768;
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.