From: Lukas Doktor <ldoktor@redhat.com>
To: ldoktor@redhat.com
Cc: autotest@test.kernel.org, kvm@vger.kernel.org
Subject: [PATCH 2/4] Add VMs alive check while spliting the guest's pages
Date: Sat, 8 May 2010 18:01:09 +0100 [thread overview]
Message-ID: <1273338071-8595-3-git-send-email-ldoktor@redhat.com> (raw)
In-Reply-To: <[KVM_AUTOTEST][PATCH] KSM_overcommit: dynamic reserve calculation (2)>
Signed-off-by: Lukas Doktor <ldoktor@redhat.com>
---
client/tests/kvm/tests/ksm_overcommit.py | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/client/tests/kvm/tests/ksm_overcommit.py b/client/tests/kvm/tests/ksm_overcommit.py
index 4aa6deb..b3d6880 100644
--- a/client/tests/kvm/tests/ksm_overcommit.py
+++ b/client/tests/kvm/tests/ksm_overcommit.py
@@ -142,6 +142,12 @@ def run_ksm_overcommit(test, params, env):
session = None
vm = None
for i in range(1, vmsc):
+ # Check VMs
+ for j in range(0, vmsc):
+ if not lvms[j].is_alive:
+ e_msg = "VM %d died while executing static_random_fill in"\
+ " VM %d on allocator loop" % (j, i)
+ raise error.TestFail(e_msg)
vm = lvms[i]
session = lsessions[i]
a_cmd = "mem.static_random_fill()"
@@ -154,6 +160,10 @@ def run_ksm_overcommit(test, params, env):
logging.debug("Watching host memory while filling vm %s memory",
vm.name)
while not out.startswith("PASS") and not out.startswith("FAIL"):
+ if not vm.is_alive():
+ e_msg = "VM %d died while executing static_random_fill"\
+ " on allocator loop" % i
+ raise error.TestFail(e_msg)
free_mem = int(utils.read_from_meminfo("MemFree"))
if (ksm_swap):
free_mem = (free_mem +
--
1.6.2.5
next prev parent reply other threads:[~2010-05-08 17:01 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <[KVM_AUTOTEST][PATCH] KSM_overcommit: dynamic reserve calculation (2)>
2010-05-08 17:01 ` [KVM_AUTOTEST][PATCH] KSM_overcommit: dynamic reserve calculation (2) Lukas Doktor
2010-05-12 21:59 ` [Autotest] " Lucas Meneghel Rodrigues
2010-05-08 17:01 ` [PATCH 1/4] Increase maximum number of VNC ports Lukas Doktor
2010-05-17 20:34 ` Lucas Meneghel Rodrigues
2010-05-08 17:01 ` Lukas Doktor [this message]
2010-05-08 17:01 ` [PATCH 3/4] FIX: Incorrect session in function split_guest() Lukas Doktor
2010-05-08 17:01 ` [PATCH 4/4] guest_reserve, host_reserve and tmpfs overhead automatic calculation based on used memory Lukas Doktor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1273338071-8595-3-git-send-email-ldoktor@redhat.com \
--to=ldoktor@redhat.com \
--cc=autotest@test.kernel.org \
--cc=kvm@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).