[KVM-AUTOTEST PATCH] FIX add a comment to hugepage variant

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

 



This adds an explanation of the "64" constant in vmsm equation.
diff --git a/client/tests/kvm/scripts/hugepage.py b/client/tests/kvm/scripts/hugepage.py
index dc36da4..3828533 100644
--- a/client/tests/kvm/scripts/hugepage.py
+++ b/client/tests/kvm/scripts/hugepage.py
@@ -57,6 +57,7 @@ class HugePage:
         """
         if self.vms < self.max_vms:
             self.vms = self.max_vms
+        # memory of all VMs plus qemu overhead of 64MB per guest
         vmsm = (self.vms * self.mem) + (self.vms * 64)
         return int(vmsm * 1024 / self.hugepage_size)
 

[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