From patchwork Tue Aug 17 22:40:05 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jiri Zupka X-Patchwork-Id: 120021 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o7HMeVo9032140 for ; Tue, 17 Aug 2010 22:40:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751507Ab0HQWkR (ORCPT ); Tue, 17 Aug 2010 18:40:17 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24729 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750752Ab0HQWkQ (ORCPT ); Tue, 17 Aug 2010 18:40:16 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7HMeFIx020010 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 17 Aug 2010 18:40:15 -0400 Received: from localhost.localdomain (intel-s3ea2-03.rhts.eng.bos.redhat.com [10.16.65.162]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7HMeEkJ028614; Tue, 17 Aug 2010 18:40:14 -0400 From: jzupka To: jzupka@redhat.com Cc: ldoktor@redhat.com, kvm@vger.kernel.org, autotest@test.kernel.org, akong@redhat.com Subject: [PATCH] BUG: Turnoff khugepaged before start tests Date: Tue, 17 Aug 2010 18:40:05 -0400 Message-Id: <1282084805-1485-1-git-send-email-jzupka@redhat.com> In-Reply-To: References: X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 17 Aug 2010 22:40:52 +0000 (UTC) diff --git a/client/tests/kvm/tests/ksm_overcommit.py b/client/tests/kvm/tests/ksm_overcommit.py index 2b49a65..b8bee42 100644 --- a/client/tests/kvm/tests/ksm_overcommit.py +++ b/client/tests/kvm/tests/ksm_overcommit.py @@ -367,11 +367,16 @@ def run_ksm_overcommit(test, params, env): # Main test code logging.info("Starting phase 0: Initialization") - new_ksm = False + new_ksm = False if (os.path.exists("/sys/kernel/mm/ksm/run")): utils.run("echo 50 > /sys/kernel/mm/ksm/sleep_millisecs") utils.run("echo 5000 > /sys/kernel/mm/ksm/pages_to_scan") utils.run("echo 1 > /sys/kernel/mm/ksm/run") + + if (os.path.exists("/sys/kernel/mm/transparent_hugepage/enabled")): + utils.run("echo 'never' > /sys/kernel/mm/transparent_hugepage/enabled ") + if (os.path.exists("/sys/kernel/mm/redhat_transparent_hugepage/enabled")): + utils.run("echo 'never' > /sys/kernel/mm/redhat_transparent_hugepage/enabled ") new_ksm = True else: try: