Skip to contentSkip to conversation

ts-debian-hvm-install: fix local migration test

PATCH In review Wei Liu 2 participants 3 messages Apr 17, 2014

lore
Share & tools
lore

Wei Liu

author
#0 lore raw

PATCH 1/1 ts-debian-hvm-install: fix local migration test

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

---
 ts-debian-hvm-install |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
ts-debian-hvm-install +3 -3
index 1bca1f7..86fd7be 100755
@@ -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;
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 12 lines · Wei Liu

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

---
 ts-debian-hvm-install |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
ts-debian-hvm-install +0 -0
index 1bca1f7..86fd7be 100755

ts-debian-hvm-install sub prep () { · line 170

Quoted 5 lines
ts-debian-hvm-install +1 -1
@@ -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.

Quoted 10 lines
ts-debian-hvm-install +2 -2
 # 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;
author
#2 lore raw
Quoted 16 lines · Ian Campbell
Quoted 15 lines · Wei Liu

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

---
 ts-debian-hvm-install |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
ts-debian-hvm-install +0 -0
index 1bca1f7..86fd7be 100755
@@ -167,12 +167,12 @@ sub prep () {
     });
 }
 
Quoted 8 lines

ts-debian-hvm-install sub prep () { · line 170

Quoted 2 lines
ts-debian-hvm-install +1 -1
-# 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<---

Quoted 1 line

From 224cb2cb917791036cc38e19683d11818540e106 Mon Sep 17 00:00:00 2001

From: Wei Liu <[email protected]>
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.

---
 ts-debian-hvm-install |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
ts-debian-hvm-install +3 -3
index 1bca1f7..069d4b6 100755
@@ -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;
Signature · 1 line
1.7.10.4