From 00e4ce40b0af8e94f5b5e44945d73c6778cc9991 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Sun, 24 Oct 2021 20:47:48 -0400 Subject: 10-24 tmp --- run_case_study_dag.py | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'run_case_study_dag.py') diff --git a/run_case_study_dag.py b/run_case_study_dag.py index 0a5c5fe..516458f 100755 --- a/run_case_study_dag.py +++ b/run_case_study_dag.py @@ -87,6 +87,7 @@ def main(pathName): ### 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') run('sudo echo "L3:0=0000;1=0000;2=0000;3=000f" | sudo tee /sys/fs/resctrl/schemata') for core in range(16): if core not in all_cores: @@ -98,10 +99,11 @@ def main(pathName): mask = mask[:in_ccx] +'f'+ mask[in_ccx+1:] if ccx == 0: run('echo "L3:0=' + mask + ';1=0000;2=0000;3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) + # run('echo "L3:0=ffff;1=0000;2=0000;3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) if ccx == 1: - run('echo "L3:0=0000;1=' + mask + ';2=0000;3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) + run('echo "L3:0=0000;1=' + mask + ';2=0000;3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) if ccx == 2: - run('echo "L3:0=0000;1=0000;2='+ mask +';3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) + run('echo "L3:0=0000;1=0000;2=' + mask + ';3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) if ccx == 3: run('echo "L3:0=0000;1=0000;2=0000;3=' + mask + '" > /sys/fs/resctrl/core-{}/schemata'.format(core)) @@ -129,9 +131,11 @@ def main(pathName): return 1 # single tasks if launch[0] == '0': - binary = binary_path + binary_name + "_single" + # binary = binary_path + binary_name + "_single" + binary = binary_path + binary_name + "_single_no_litmus" # Arg format: - arg = " " + task_name + " " + num_iters +" " + core_num +" " + run_id +" " + save_result+" " + period +" " + crt_level + " "+ phase + # arg = " " + task_name + " " + num_iters +" " + core_num +" " + run_id +" " + save_result+" " + period +" " + crt_level + " "+ phase + arg = " " + task_name + " " + num_iters +" " + core_num +" " + run_id +" " + save_result+" " # print(input_cmd[binary_name] + " | numactl --interleave=all " + binary + arg) bench_tsk = subprocess.Popen(input_cmd[binary_name] + " | numactl --interleave=all " + binary + arg, shell=True, executable='/bin/bash', stderr=stderr_file) pid_str = ID2PID(binary + " " + task_name) -- cgit v1.2.2