From patchwork Tue Aug 4 13:38:11 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?THVrw6HFoSBEb2t0b3I=?= X-Patchwork-Id: 39111 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n74Dcqxk018536 for ; Tue, 4 Aug 2009 13:38:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932172AbZHDNiR (ORCPT ); Tue, 4 Aug 2009 09:38:17 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755564AbZHDNiR (ORCPT ); Tue, 4 Aug 2009 09:38:17 -0400 Received: from mx2.redhat.com ([66.187.237.31]:35006 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755563AbZHDNiQ (ORCPT ); Tue, 4 Aug 2009 09:38:16 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n74DcDc1024866; Tue, 4 Aug 2009 09:38:13 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n74DcCFJ001741; Tue, 4 Aug 2009 09:38:12 -0400 Received: from [10.34.33.254] (dhcp-lab-254.englab.brq.redhat.com [10.34.33.254]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n74DcBYx006058; Tue, 4 Aug 2009 09:38:11 -0400 Message-ID: <4A7839C3.9060900@redhat.com> Date: Tue, 04 Aug 2009 15:38:11 +0200 From: =?ISO-8859-2?Q?Luk=E1=B9_Doktor?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: KVM list , Ryan Harper Subject: [KVM-AUTOTEST PATCH] FIX add a comment to hugepage variant X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org 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)