diff options
-rw-r--r-- | SD-VBS/benchmarks/stitch/src/c/script_stitch.c | 12 | ||||
-rwxr-xr-x | all_pairs/bin/anagram | bin | 0 -> 184928 bytes | |||
-rwxr-xr-x | all_pairs/bin/audiobeam | bin | 0 -> 128912 bytes | |||
-rwxr-xr-x | all_pairs/bin/g723_enc | bin | 0 -> 101664 bytes | |||
-rwxr-xr-x | all_pairs/bin/huff_dec | bin | 0 -> 95960 bytes | |||
-rwxr-xr-x | baseline/bin/anagram | bin | 0 -> 179680 bytes | |||
-rwxr-xr-x | baseline/bin/audiobeam | bin | 0 -> 123664 bytes | |||
-rwxr-xr-x | baseline/bin/g723_enc | bin | 0 -> 100504 bytes | |||
-rwxr-xr-x | baseline/bin/huff_dec | bin | 0 -> 94792 bytes | |||
-rw-r--r-- | dis/sudo | 180 | ||||
-rw-r--r-- | extra.h | 2 | ||||
-rw-r--r-- | run_case_study.py | 52 | ||||
-rw-r--r-- | sudo | 1 |
13 files changed, 222 insertions, 25 deletions
diff --git a/SD-VBS/benchmarks/stitch/src/c/script_stitch.c b/SD-VBS/benchmarks/stitch/src/c/script_stitch.c index 9310048..472e231 100644 --- a/SD-VBS/benchmarks/stitch/src/c/script_stitch.c +++ b/SD-VBS/benchmarks/stitch/src/c/script_stitch.c | |||
@@ -23,12 +23,6 @@ int main(int argc, char* argv[]) | |||
23 | cols = Icur->width; | 23 | cols = Icur->width; |
24 | 24 | ||
25 | for_each_job { | 25 | for_each_job { |
26 | iFreeHandle(Icur); | ||
27 | fFreeHandle(v); | ||
28 | fFreeHandle(interestPnts); | ||
29 | fFreeHandle(int1); | ||
30 | fFreeHandle(int2); | ||
31 | fFreeHandle(Fcur); | ||
32 | v = harris(Icur); | 26 | v = harris(Icur); |
33 | interestPnts = getANMS(v, 24); | 27 | interestPnts = getANMS(v, 24); |
34 | int1 = fMallocHandle(interestPnts->height, 1); | 28 | int1 = fMallocHandle(interestPnts->height, 1); |
@@ -40,6 +34,12 @@ int main(int argc, char* argv[]) | |||
40 | } | 34 | } |
41 | 35 | ||
42 | Fcur = extractFeatures(Icur, int1, int2); | 36 | Fcur = extractFeatures(Icur, int1, int2); |
37 | iFreeHandle(Icur); | ||
38 | fFreeHandle(v); | ||
39 | fFreeHandle(interestPnts); | ||
40 | fFreeHandle(int1); | ||
41 | fFreeHandle(int2); | ||
42 | fFreeHandle(Fcur); | ||
43 | } | 43 | } |
44 | 44 | ||
45 | #ifdef CHECK | 45 | #ifdef CHECK |
diff --git a/all_pairs/bin/anagram b/all_pairs/bin/anagram new file mode 100755 index 0000000..4d3b54e --- /dev/null +++ b/all_pairs/bin/anagram | |||
Binary files differ | |||
diff --git a/all_pairs/bin/audiobeam b/all_pairs/bin/audiobeam new file mode 100755 index 0000000..5d00fa1 --- /dev/null +++ b/all_pairs/bin/audiobeam | |||
Binary files differ | |||
diff --git a/all_pairs/bin/g723_enc b/all_pairs/bin/g723_enc new file mode 100755 index 0000000..7ab3acb --- /dev/null +++ b/all_pairs/bin/g723_enc | |||
Binary files differ | |||
diff --git a/all_pairs/bin/huff_dec b/all_pairs/bin/huff_dec new file mode 100755 index 0000000..b638a87 --- /dev/null +++ b/all_pairs/bin/huff_dec | |||
Binary files differ | |||
diff --git a/baseline/bin/anagram b/baseline/bin/anagram new file mode 100755 index 0000000..be58ec0 --- /dev/null +++ b/baseline/bin/anagram | |||
Binary files differ | |||
diff --git a/baseline/bin/audiobeam b/baseline/bin/audiobeam new file mode 100755 index 0000000..cf776b4 --- /dev/null +++ b/baseline/bin/audiobeam | |||
Binary files differ | |||
diff --git a/baseline/bin/g723_enc b/baseline/bin/g723_enc new file mode 100755 index 0000000..7289895 --- /dev/null +++ b/baseline/bin/g723_enc | |||
Binary files differ | |||
diff --git a/baseline/bin/huff_dec b/baseline/bin/huff_dec new file mode 100755 index 0000000..07d4d32 --- /dev/null +++ b/baseline/bin/huff_dec | |||
Binary files differ | |||
diff --git a/dis/sudo b/dis/sudo new file mode 100644 index 0000000..134ad48 --- /dev/null +++ b/dis/sudo | |||
@@ -0,0 +1,180 @@ | |||
1 | 2097152 -1 35 80 | ||
2 | |||
3 | 1 1 22 1 c2 1 2d 0 | ||
4 | 1 1 22 1 c2 1 2d 0 | ||
5 | 1 1 22 1 c2 1 2d 0 | ||
6 | 1 1 22 1 c2 1 2d 0 | ||
7 | 1 1 22 1 c2 1 2d 0 | ||
8 | 1 1 22 1 c2 1 2d 0 | ||
9 | 1 1 22 1 c2 1 2d 0 | ||
10 | 1 1 22 1 c2 1 2d 0 | ||
11 | 1 1 22 1 c2 1 2d 0 | ||
12 | 1 1 22 1 c2 1 2d 0 | ||
13 | |||
14 | 1 1 22 1 c2 1 2d 0 | ||
15 | 1 1 22 1 c2 1 2d 0 | ||
16 | 1 1 22 1 c2 1 2d 0 | ||
17 | 1 1 22 1 c2 1 2d 0 | ||
18 | 1 1 22 1 c2 1 2d 0 | ||
19 | 1 1 22 1 c2 1 2d 0 | ||
20 | 1 1 22 1 c2 1 2d 0 | ||
21 | 1 1 22 1 c2 1 2d 0 | ||
22 | 1 1 22 1 c2 1 2d 0 | ||
23 | 1 1 22 1 c2 1 2d 0 | ||
24 | |||
25 | 1 1 22 1 c2 1 2d 0 | ||
26 | 1 1 22 1 c2 1 2d 0 | ||
27 | 1 1 22 1 c2 1 2d 0 | ||
28 | 1 1 22 1 c2 1 2d 0 | ||
29 | 1 1 22 1 c2 1 2d 0 | ||
30 | 1 1 22 1 c2 1 2d 0 | ||
31 | 1 1 22 1 c2 1 2d 0 | ||
32 | 1 1 22 1 c2 1 2d 0 | ||
33 | 1 1 22 1 c2 1 2d 0 | ||
34 | 1 1 22 1 c2 1 2d 0 | ||
35 | |||
36 | 1 1 22 1 c2 1 2d 0 | ||
37 | 1 1 22 1 c2 1 2d 0 | ||
38 | 1 1 22 1 c2 1 2d 0 | ||
39 | 1 1 22 1 c2 1 2d 0 | ||
40 | 1 1 22 1 c2 1 2d 0 | ||
41 | 1 1 22 1 c2 1 2d 0 | ||
42 | 1 1 22 1 c2 1 2d 0 | ||
43 | 1 1 22 1 c2 1 2d 0 | ||
44 | 1 1 22 1 c2 1 2d 0 | ||
45 | 1 1 22 1 c2 1 2d 0 | ||
46 | |||
47 | |||
48 | 1 1 22 1 c2 1 2d 0 | ||
49 | 1 1 22 1 c2 1 2d 0 | ||
50 | 1 1 22 1 c2 1 2d 0 | ||
51 | 1 1 22 1 c2 1 2d 0 | ||
52 | 1 1 22 1 c2 1 2d 0 | ||
53 | 1 1 22 1 c2 1 2d 0 | ||
54 | 1 1 22 1 c2 1 2d 0 | ||
55 | 1 1 22 1 c2 1 2d 0 | ||
56 | 1 1 22 1 c2 1 2d 0 | ||
57 | 1 1 22 1 c2 1 2d 0 | ||
58 | |||
59 | 1 1 22 1 c2 1 2d 0 | ||
60 | 1 1 22 1 c2 1 2d 0 | ||
61 | 1 1 22 1 c2 1 2d 0 | ||
62 | 1 1 22 1 c2 1 2d 0 | ||
63 | 1 1 22 1 c2 1 2d 0 | ||
64 | 1 1 22 1 c2 1 2d 0 | ||
65 | 1 1 22 1 c2 1 2d 0 | ||
66 | 1 1 22 1 c2 1 2d 0 | ||
67 | 1 1 22 1 c2 1 2d 0 | ||
68 | 1 1 22 1 c2 1 2d 0 | ||
69 | |||
70 | 1 1 22 1 c2 1 2d 0 | ||
71 | 1 1 22 1 c2 1 2d 0 | ||
72 | 1 1 22 1 c2 1 2d 0 | ||
73 | 1 1 22 1 c2 1 2d 0 | ||
74 | 1 1 22 1 c2 1 2d 0 | ||
75 | 1 1 22 1 c2 1 2d 0 | ||
76 | 1 1 22 1 c2 1 2d 0 | ||
77 | 1 1 22 1 c2 1 2d 0 | ||
78 | 1 1 22 1 c2 1 2d 0 | ||
79 | 1 1 22 1 c2 1 2d 0 | ||
80 | |||
81 | 1 1 22 1 c2 1 2d 0 | ||
82 | 1 1 22 1 c2 1 2d 0 | ||
83 | 1 1 22 1 c2 1 2d 0 | ||
84 | 1 1 22 1 c2 1 2d 0 | ||
85 | 1 1 22 1 c2 1 2d 0 | ||
86 | 1 1 22 1 c2 1 2d 0 | ||
87 | 1 1 22 1 c2 1 2d 0 | ||
88 | 1 1 22 1 c2 1 2d 0 | ||
89 | 1 1 22 1 c2 1 2d 0 | ||
90 | 1 1 22 1 c2 1 2d 0 | ||
91 | |||
92 | 1 1 22 1 c2 1 2d 0 | ||
93 | 1 1 22 1 c2 1 2d 0 | ||
94 | 1 1 22 1 c2 1 2d 0 | ||
95 | 1 1 22 1 c2 1 2d 0 | ||
96 | 1 1 22 1 c2 1 2d 0 | ||
97 | 1 1 22 1 c2 1 2d 0 | ||
98 | 1 1 22 1 c2 1 2d 0 | ||
99 | 1 1 22 1 c2 1 2d 0 | ||
100 | 1 1 22 1 c2 1 2d 0 | ||
101 | 1 1 22 1 c2 1 2d 0 | ||
102 | |||
103 | 1 1 22 1 c2 1 2d 0 | ||
104 | 1 1 22 1 c2 1 2d 0 | ||
105 | 1 1 22 1 c2 1 2d 0 | ||
106 | 1 1 22 1 c2 1 2d 0 | ||
107 | 1 1 22 1 c2 1 2d 0 | ||
108 | 1 1 22 1 c2 1 2d 0 | ||
109 | 1 1 22 1 c2 1 2d 0 | ||
110 | 1 1 22 1 c2 1 2d 0 | ||
111 | 1 1 22 1 c2 1 2d 0 | ||
112 | 1 1 22 1 c2 1 2d 0 | ||
113 | |||
114 | 1 1 22 1 c2 1 2d 0 | ||
115 | 1 1 22 1 c2 1 2d 0 | ||
116 | 1 1 22 1 c2 1 2d 0 | ||
117 | 1 1 22 1 c2 1 2d 0 | ||
118 | 1 1 22 1 c2 1 2d 0 | ||
119 | 1 1 22 1 c2 1 2d 0 | ||
120 | 1 1 22 1 c2 1 2d 0 | ||
121 | 1 1 22 1 c2 1 2d 0 | ||
122 | 1 1 22 1 c2 1 2d 0 | ||
123 | 1 1 22 1 c2 1 2d 0 | ||
124 | |||
125 | 1 1 22 1 c2 1 2d 0 | ||
126 | 1 1 22 1 c2 1 2d 0 | ||
127 | 1 1 22 1 c2 1 2d 0 | ||
128 | 1 1 22 1 c2 1 2d 0 | ||
129 | 1 1 22 1 c2 1 2d 0 | ||
130 | 1 1 22 1 c2 1 2d 0 | ||
131 | 1 1 22 1 c2 1 2d 0 | ||
132 | 1 1 22 1 c2 1 2d 0 | ||
133 | 1 1 22 1 c2 1 2d 0 | ||
134 | 1 1 22 1 c2 1 2d 0 | ||
135 | |||
136 | 1 1 22 1 c2 1 2d 0 | ||
137 | 1 1 22 1 c2 1 2d 0 | ||
138 | 1 1 22 1 c2 1 2d 0 | ||
139 | 1 1 22 1 c2 1 2d 0 | ||
140 | 1 1 22 1 c2 1 2d 0 | ||
141 | 1 1 22 1 c2 1 2d 0 | ||
142 | 1 1 22 1 c2 1 2d 0 | ||
143 | 1 1 22 1 c2 1 2d 0 | ||
144 | 1 1 22 1 c2 1 2d 0 | ||
145 | 1 1 22 1 c2 1 2d 0 | ||
146 | |||
147 | 1 1 22 1 c2 1 2d 0 | ||
148 | 1 1 22 1 c2 1 2d 0 | ||
149 | 1 1 22 1 c2 1 2d 0 | ||
150 | 1 1 22 1 c2 1 2d 0 | ||
151 | 1 1 22 1 c2 1 2d 0 | ||
152 | 1 1 22 1 c2 1 2d 0 | ||
153 | 1 1 22 1 c2 1 2d 0 | ||
154 | 1 1 22 1 c2 1 2d 0 | ||
155 | 1 1 22 1 c2 1 2d 0 | ||
156 | 1 1 22 1 c2 1 2d 0 | ||
157 | |||
158 | 1 1 22 1 c2 1 2d 0 | ||
159 | 1 1 22 1 c2 1 2d 0 | ||
160 | 1 1 22 1 c2 1 2d 0 | ||
161 | 1 1 22 1 c2 1 2d 0 | ||
162 | 1 1 22 1 c2 1 2d 0 | ||
163 | 1 1 22 1 c2 1 2d 0 | ||
164 | 1 1 22 1 c2 1 2d 0 | ||
165 | 1 1 22 1 c2 1 2d 0 | ||
166 | 1 1 22 1 c2 1 2d 0 | ||
167 | 1 1 22 1 c2 1 2d 0 | ||
168 | |||
169 | 1 1 22 1 c2 1 2d 0 | ||
170 | 1 1 22 1 c2 1 2d 0 | ||
171 | 1 1 22 1 c2 1 2d 0 | ||
172 | 1 1 22 1 c2 1 2d 0 | ||
173 | 1 1 22 1 c2 1 2d 0 | ||
174 | 1 1 22 1 c2 1 2d 0 | ||
175 | 1 1 22 1 c2 1 2d 0 | ||
176 | 1 1 22 1 c2 1 2d 0 | ||
177 | 1 1 22 1 c2 1 2d 0 | ||
178 | 1 1 22 1 c2 1 2d 0 | ||
179 | |||
180 | |||
@@ -120,7 +120,7 @@ static void _rt_load_params_itrl(int argc, char **argv) { | |||
120 | _rt_will_output = atoi(argv[7]); | 120 | _rt_will_output = atoi(argv[7]); |
121 | char *pairId; | 121 | char *pairId; |
122 | int end; | 122 | int end; |
123 | if (argc > 8) { | 123 | if (argc > 7) { |
124 | pairId = argv[8]; | 124 | pairId = argv[8]; |
125 | end = 9; | 125 | end = 9; |
126 | } else { | 126 | } else { |
diff --git a/run_case_study.py b/run_case_study.py index f5a4f61..d2a3922 100644 --- a/run_case_study.py +++ b/run_case_study.py | |||
@@ -3,6 +3,13 @@ import sys | |||
3 | import re | 3 | import re |
4 | import csv | 4 | import csv |
5 | import subprocess | 5 | import subprocess |
6 | <<<<<<< HEAD | ||
7 | def run(command): | ||
8 | print(command) | ||
9 | os.system(command) | ||
10 | |||
11 | ======= | ||
12 | >>>>>>> rtas20-wip | ||
6 | def main(): | 13 | def main(): |
7 | pathName = sys.argv[1] | 14 | pathName = sys.argv[1] |
8 | tacle_pairs_path = "./all_pairs" | 15 | tacle_pairs_path = "./all_pairs" |
@@ -48,7 +55,7 @@ def main(): | |||
48 | ccx = "1" | 55 | ccx = "1" |
49 | else: | 56 | else: |
50 | ccx = "0" | 57 | ccx = "0" |
51 | continue | 58 | continue |
52 | if(row[0] != "task id" and row[0] != ""): | 59 | if(row[0] != "task id" and row[0] != ""): |
53 | row.append(ccx) | 60 | row.append(ccx) |
54 | if(threaded): | 61 | if(threaded): |
@@ -56,7 +63,9 @@ def main(): | |||
56 | else: | 63 | else: |
57 | row.append("s") | 64 | row.append("s") |
58 | levelC.append(row) | 65 | levelC.append(row) |
59 | #os.system('echo "L3:0=L3:0=0000,1=0000,2=0000,3=0000" > /sys/fs/resctrl/schemata') | 66 | line += 1 |
67 | #os.system('mount -t resctrl resctrl /sys/fs/resctrl') | ||
68 | run('sudo echo "L3:0=0000,1=0000,2=0000,3=0000" > sudo /sys/fs/resctrl/schemata') | ||
60 | 69 | ||
61 | with open(pathName+"/l3alloc.csv", "r") as csv_file: | 70 | with open(pathName+"/l3alloc.csv", "r") as csv_file: |
62 | csv_reader = csv.reader(csv_file, delimiter = ',') | 71 | csv_reader = csv.reader(csv_file, delimiter = ',') |
@@ -69,17 +78,19 @@ def main(): | |||
69 | way_C = int(row[3]) | 78 | way_C = int(row[3]) |
70 | # Level C allocation | 79 | # Level C allocation |
71 | if(core == 1): | 80 | if(core == 1): |
72 | os.system("mkdir /sys/fs/resctrl/level-c-ccx-0") | 81 | run("mkdir -p /sys/fs/resctrl/level-c-ccx-0") |
73 | os.system('echo "L3:0=' + ("%0.4x" % (int("1"*way_C, 2))) + ',1=0000,2=0000,3=0000" > /sys/fs/resctrl/level-c-ccx-0/schemata') | 82 | run('sudo echo "L3:0=' + ("%0.4x" % (int("1"*way_C, 2))) + ',1=0000,2=0000,3=0000" > sudo /sys/fs/resctrl/level-c-ccx-0/schemata') |
74 | 83 | ||
75 | if(core == 4): | 84 | if(core == 4): |
76 | os.system("mkdir /sys/fs/resctrl/level-c-ccx-1") | 85 | run("mkdir -p /sys/fs/resctrl/level-c-ccx-1") |
77 | os.system('echo "L3:0=0000, 1=' + ("%0.4x" % (int("1"*way_C, 2))) + ',2=0000,3=0000" > /sys/fs/resctrl/level-c-ccx-1/schemata') | 86 | run('sudo echo "L3:0=0000, 1=' + ("%0.4x" % (int("1"*way_C, 2))) + ',2=0000,3=0000" > sudo /sys/fs/resctrl/level-c-ccx-1/schemata') |
78 | os.system('mkdir /sys/fs/resctrl/level-ab-core-' + core) | 87 | run('mkdir -p /sys/fs/resctrl/level-ab-core-' + str(core)) |
79 | if(core < 4): | 88 | if(core < 4): |
80 | os.system('echo "L3:0=' + ("%0.4x" % (int("1"*way_C + "0"*(16-way_AB), 2))) + ',1=0000,2=0000,3=0000" > /sys/fs/resctrl/level-ab-core-' + core + '/schemata') | 89 | run('sudo echo "L3:0=' + ("%0.4x" % (int("1"*way_AB + "0"*(16-way_AB), 2))) + ',1=0000,2=0000,3=0000" > sudo /sys/fs/resctrl/level-ab-core-' + str(core) + '/schemata') |
81 | else: | 90 | else: |
82 | os.system('echo "L3:0=0000,1=' + ("%0.4x" % (int("1"*way_C + "0"*(16-way_AB), 2))) + ',2=0000,3=0000" > /sys/fs/resctrl/level-ab-core-' + core + '/schemata') | 91 | run('sudo echo "L3:0=0000,1=' + ("%0.4x" % (int("1"*way_AB + "0"*(16-way_AB), 2))) + ',2=0000,3=0000" > sudo /sys/fs/resctrl/level-ab-core-' + str(core) + '/schemata') |
92 | line += 1 | ||
93 | run("sudo rm -rf /dev/shm/*") | ||
83 | pairID = 0 | 94 | pairID = 0 |
84 | i = 0 | 95 | i = 0 |
85 | for task in levelAB: | 96 | for task in levelAB: |
@@ -113,13 +124,14 @@ def main(): | |||
113 | else: | 124 | else: |
114 | binary = dis_inputs[name1] + " | ./dis/" + name1 + arg | 125 | binary = dis_inputs[name1] + " | ./dis/" + name1 + arg |
115 | proc = subprocess.open([binary + " &"], shell = True) | 126 | proc = subprocess.open([binary + " &"], shell = True) |
127 | print(binary + " &" ) | ||
116 | pid = proc.pid | 128 | pid = proc.pid |
117 | os.system("echo " + pid + " > /sys/fs/resctrl/level-ab-core-" + core + "/tasks") | 129 | run("sudo echo " + pid + " > sudo /sys/fs/resctrl/level-ab-core-" + core + "/tasks") |
118 | 130 | ||
119 | else: | 131 | else: |
120 | pairID += 1 | 132 | pairID += 1 |
121 | arg1 = " NULL -1 " + core + " 0 NULL NULL 0 " + str(pairID) + " " + period1 + " " + criticality | 133 | arg1 = " NULL -1 " + core + " 0 NULL NULL 0 " + str(pairID) + " " + period1 + " " + criticality |
122 | arg2 = " NULL -1 " + str(int(core)+16) + " 0 NULL NULL 0 " + str(pairID) + " " + period1 + " " + criticality | 134 | arg2 = " NULL -1 " + str(int(core)+16) + " 0 NULL NULL 0 " + str(pairID) + " " + period2 + " " + criticality |
123 | 135 | ||
124 | if(suite1 == "TACLe"): | 136 | if(suite1 == "TACLe"): |
125 | binary1 = "./all_pairs/bin/" + name1 + arg1 | 137 | binary1 = "./all_pairs/bin/" + name1 + arg1 |
@@ -127,18 +139,20 @@ def main(): | |||
127 | else: | 139 | else: |
128 | binary1 = dis_inputs[name1] + " | ./dis/" + name1 + "_all" + arg1 | 140 | binary1 = dis_inputs[name1] + " | ./dis/" + name1 + "_all" + arg1 |
129 | binary2 = dis_inputs[name2] + " | ./dis/" + name2 + "_all" + arg2 | 141 | binary2 = dis_inputs[name2] + " | ./dis/" + name2 + "_all" + arg2 |
130 | proc1 = subprocess.Popen(["numactl --membind=0 " + binary1 + " &"], shell = True) | 142 | proc1 = subprocess.Popen(["sudo numactl --membind=0 " + binary1 + " &"], shell = True) |
131 | proc2 = subprocess.Popen(["numactl --membind=1 " + binary2 + " &"], shell = True) | 143 | proc2 = subprocess.Popen(["sudo numactl --membind=1 " + binary2 + " &"], shell = True) |
144 | print("sudo numactl --membind=0 " + binary1 + " &") | ||
145 | print("sudo numactl --membind=1 " + binary2 + " &") | ||
132 | pid1 = proc1.pid | 146 | pid1 = proc1.pid |
133 | pid2 = proc2.pid | 147 | pid2 = proc2.pid |
134 | 148 | ||
135 | os.system("echo " + str(pid1) + " > /sys/fs/resctrl/level-ab-core-" + core + "/tasks") | 149 | run("sudo echo " + str(pid1) + " > sudo /sys/fs/resctrl/level-ab-core-" + core + "/tasks") |
136 | os.system("echo " + str(pid2) + " > /sys/fs/resctrl/level-ab-core-" + core + "/tasks") | 150 | run("sudo echo " + str(pid2) + " > sudo /sys/fs/resctrl/level-ab-core-" + core + "/tasks") |
137 | 151 | #exit(1) | |
138 | 152 | ||
139 | for task in levelC: | 153 | for task in levelC: |
140 | i+=1 | 154 | i+=1 |
141 | if(i>6): | 155 | if(i>8): |
142 | break | 156 | break |
143 | tid = int(task[0]) | 157 | tid = int(task[0]) |
144 | name = all_tasks[tid][2] | 158 | name = all_tasks[tid][2] |
@@ -159,9 +173,11 @@ def main(): | |||
159 | binary = "./baseline/bin/" + name1 + arg | 173 | binary = "./baseline/bin/" + name1 + arg |
160 | else: | 174 | else: |
161 | binary = dis_inputs[name1] + " | ./dis/" + name1 + "_all" + arg | 175 | binary = dis_inputs[name1] + " | ./dis/" + name1 + "_all" + arg |
176 | |||
177 | print(binary + " &") | ||
162 | proc = subprocess.Popen([binary + " &"], shell = True) | 178 | proc = subprocess.Popen([binary + " &"], shell = True) |
163 | pid = proc.pid | 179 | pid = proc.pid |
164 | os.system("echo " + str(pid) + " > /sys/fs/resctrl/level-ab-ccx-" + ccx + "/tasks") | 180 | run("sudo echo " + str(pid) + " > sudo /sys/fs/resctrl/level-ab-ccx-" + ccx + "/tasks") |
165 | #os.system("/playpen/mc2/liblitmus/release_ts") | 181 | #os.system("/playpen/mc2/liblitmus/release_ts") |
166 | #os.system("ls") | 182 | #os.system("ls") |
167 | if __name__ == "__main__": | 183 | if __name__ == "__main__": |
@@ -0,0 +1 @@ | |||
101404 /sys/fs/resctrl/level-ab-ccx-1/tasks | |||