From 5e2ccfae0532ddd89bcc04bf14aad451e9c79785 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Tue, 26 Oct 2021 00:10:51 -0400 Subject: add power mangement to run_case_study_dag.py --- run_case_study_dag.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/run_case_study_dag.py b/run_case_study_dag.py index e2c4607..0599bec 100755 --- a/run_case_study_dag.py +++ b/run_case_study_dag.py @@ -56,6 +56,8 @@ def ID2PID(lookupID): return None def main(pathName): + + with open("./pids.txt", "w") as f: f.write("") @@ -87,6 +89,9 @@ def main(pathName): core_count = max_core+1 # print(parameters) + # Turn off power management + run('sudo echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor') + ### Allocate Cache Ways ### run('mount -t resctrl resctrl /sys/fs/resctrl') # run('sudo echo "L3:0=0000;1=0000;2=0000;3=ffff" | sudo tee /sys/fs/resctrl/schemata') -- cgit v1.2.2