[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 2/2] ts-debian-hvm-install: fix guest memory size
Change the default memory size to 768MB, which is taken from ts-redhat-install. It should be a safe size to make this test case run on every host. If the host has more than 5G free memory, change guest memory size to 5G to catch any error that triggers by crossing 4G boundary. Signed-off-by: Wei Liu <wei.liu2@xxxxxxxxxx> --- ts-debian-hvm-install | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/ts-debian-hvm-install b/ts-debian-hvm-install index 1b58108..6de916a 100755 --- a/ts-debian-hvm-install +++ b/ts-debian-hvm-install @@ -32,7 +32,7 @@ $gn ||= 'ovmf'; our $ho= selecthost($whhost); -our $ram_mb= 6000; +our $ram_mb= 768; our $disk_mb= 10000; our $guesthost= "$gn.guest.osstest"; @@ -166,6 +166,14 @@ sub prep () { }); } +# If host has >5G free memory, create a guest with 5G memory to catch any error +# that triggers cross 4G boundary +our $host_freemem_mb = host_get_free_memory($ho, $toolstack); +if ($host_freemem_mb > 5000) { + $ram_mb = 5000; + logm("Host has $host_freemem_mb MB free memory, setting guest memory size to $ram_mb MB"); +} + if (!$stage) { prep(); guest_create($gho,$toolstack); -- 1.7.10.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |