diff mbox

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

Message ID 4A7839C3.9060900@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Lukáš Doktor Aug. 4, 2009, 1:38 p.m. UTC
This adds an explanation of the "64" constant in vmsm equation.

Comments

Lucas Meneghel Rodrigues Aug. 4, 2009, 3:15 p.m. UTC | #1
2009/8/4 Lukáš Doktor <ldoktor@redhat.com>:
> This adds an explanation of the "64" constant in vmsm equation.

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

Patch

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)