From: Wei Liu Subject: Re: [PATCH] ts-debian-hvm-install: fix local migration test Date: Thu, 17 Apr 2014 15:27:41 +0100 Message-ID: <20140417142740.GP3635@zion.uk.xensource.com> References: <1397744386-32476-1-git-send-email-wei.liu2@citrix.com> <1397744515.24638.304.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1397744515.24638.304.camel@kazak.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: ian.jackson@eu.citrix.com, Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org 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 > > --- > > 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 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 --- 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