[PATCH 1/2] KVM test: Make hugepage setup script print useful information

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

 



It's interesting to know what's the current large memory page
settings for the host, and how many large pages autotest
calculated for a given test that requires them. So make
the setup script to print this information.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@xxxxxxxxxx>
---
 client/tests/kvm/scripts/hugepage.py |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/client/tests/kvm/scripts/hugepage.py b/client/tests/kvm/scripts/hugepage.py
index 3828533..8a1b0f6 100755
--- a/client/tests/kvm/scripts/hugepage.py
+++ b/client/tests/kvm/scripts/hugepage.py
@@ -36,6 +36,12 @@ class HugePage:
 
         self.hugepage_size = self.get_hugepage_size()
         self.target_hugepages = self.get_target_hugepages()
+        print "Number of VMs this test will use: %d" % self.vms
+        print "Amount of memory used by each vm: %s" % self.mem
+        print ("System setting for large memory page size: %s" %
+               self.hugepage_size)
+        print ("Number of large memory pages needed for this test: %s" %
+               self.target_hugepages)
 
 
     def get_hugepage_size(self):
@@ -79,6 +85,8 @@ class HugePage:
                                     "to the target value of %d hugepages." %
                                     self.target_hugepages)
         hugepage_cfg.close()
+        print ("Successfuly set %s large memory pages on host " %
+               self.target_hugepages)
 
 
     def mount_hugepage_fs(self):
-- 
1.7.1.1

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux