Skip to contentSkip to conversation

FIX add a comment to hugepage variant

PATCH Applied Lukáš Doktor 2 participants 2 messages Aug 4, 2009 KVM

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 FIX add a comment to hugepage variant

This adds an explanation of the "64" constant in vmsm equation.

client/tests/kvm/scripts/hugepage.py +1 -0
index dc36da4..3828533 100644
@@ -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)