diff mbox

BUG: Turnoff khugepaged before start tests

Message ID 1282084805-1485-1-git-send-email-jzupka@redhat.com (mailing list archive)
State New, archived
Headers show

Commit Message

Jiri Zupka Aug. 17, 2010, 10:40 p.m. UTC
None
diff mbox

Patch

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: