@@ -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: