From 063497e1c39be585914dc2e69445313632530de6 Mon Sep 17 00:00:00 2001 From: leochanj105 Date: Fri, 23 Oct 2020 22:51:44 -0400 Subject: wip --- all_pairs/bin/anagram | Bin 184928 -> 184928 bytes all_pairs/bin/audiobeam | Bin 128912 -> 128912 bytes all_pairs/bin/g723_enc | Bin 101664 -> 101664 bytes all_pairs/bin/huff_dec | Bin 95960 -> 95960 bytes run_case_study.py | 21 +++++++++------------ 5 files changed, 9 insertions(+), 12 deletions(-) diff --git a/all_pairs/bin/anagram b/all_pairs/bin/anagram index 4d3b54e..9675148 100755 Binary files a/all_pairs/bin/anagram and b/all_pairs/bin/anagram differ diff --git a/all_pairs/bin/audiobeam b/all_pairs/bin/audiobeam index 5d00fa1..5f77531 100755 Binary files a/all_pairs/bin/audiobeam and b/all_pairs/bin/audiobeam differ diff --git a/all_pairs/bin/g723_enc b/all_pairs/bin/g723_enc index 7ab3acb..35879d1 100755 Binary files a/all_pairs/bin/g723_enc and b/all_pairs/bin/g723_enc differ diff --git a/all_pairs/bin/huff_dec b/all_pairs/bin/huff_dec index b638a87..4b8b27c 100755 Binary files a/all_pairs/bin/huff_dec and b/all_pairs/bin/huff_dec differ diff --git a/run_case_study.py b/run_case_study.py index d2a3922..9d07198 100644 --- a/run_case_study.py +++ b/run_case_study.py @@ -3,13 +3,10 @@ import sys import re import csv import subprocess -<<<<<<< HEAD def run(command): print(command) - os.system(command) + #os.system(command) -======= ->>>>>>> rtas20-wip def main(): pathName = sys.argv[1] tacle_pairs_path = "./all_pairs" @@ -95,7 +92,7 @@ def main(): i = 0 for task in levelAB: i+=1 - if(i>4): + if(i>1): break; task1 = int(task[2]) task2 = int(task[5]) @@ -123,9 +120,9 @@ def main(): binary = "./baseline/bin/" + name1 + arg else: binary = dis_inputs[name1] + " | ./dis/" + name1 + arg - proc = subprocess.open([binary + " &"], shell = True) + #proc = subprocess.open([binary + " &"], shell = True) print(binary + " &" ) - pid = proc.pid + pid = 0#proc.pid run("sudo echo " + pid + " > sudo /sys/fs/resctrl/level-ab-core-" + core + "/tasks") else: @@ -139,16 +136,16 @@ def main(): else: binary1 = dis_inputs[name1] + " | ./dis/" + name1 + "_all" + arg1 binary2 = dis_inputs[name2] + " | ./dis/" + name2 + "_all" + arg2 - proc1 = subprocess.Popen(["sudo numactl --membind=0 " + binary1 + " &"], shell = True) - proc2 = subprocess.Popen(["sudo numactl --membind=1 " + binary2 + " &"], shell = True) + #proc1 = subprocess.Popen(["sudo numactl --membind=0 " + binary1 + " &"], shell = True) + #proc2 = subprocess.Popen(["sudo numactl --membind=1 " + binary2 + " &"], shell = True) print("sudo numactl --membind=0 " + binary1 + " &") print("sudo numactl --membind=1 " + binary2 + " &") - pid1 = proc1.pid - pid2 = proc2.pid + pid1 = 0#proc1.pid + pid2 = 0#proc2.pid run("sudo echo " + str(pid1) + " > sudo /sys/fs/resctrl/level-ab-core-" + core + "/tasks") run("sudo echo " + str(pid2) + " > sudo /sys/fs/resctrl/level-ab-core-" + core + "/tasks") - #exit(1) + exit(1) for task in levelC: i+=1 -- cgit v1.2.2