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

[Xen-devel] [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..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


_______________________________________________
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®.