diff options
23 files changed, 42 insertions, 47 deletions
| @@ -19,7 +19,8 @@ dag_path := SD-VBS/dag_binaries | |||
| 19 | single_suffix := _qcif_single | 19 | single_suffix := _qcif_single |
| 20 | pair_suffix := _qcif_pair | 20 | pair_suffix := _qcif_pair |
| 21 | dag-case-study: | 21 | dag-case-study: |
| 22 | sed -i "s/LITMUS 0/LITMUS 1/g" extra.h | 22 | sudo sed -i "s/LITMUS 0/LITMUS 1/g" extra.h |
| 23 | sudo mkdir -p SD-VBS/dag_binaries | ||
| 23 | $(MAKE) -C SD-VBS/benchmarks compile | 24 | $(MAKE) -C SD-VBS/benchmarks compile |
| 24 | @for v in $(benches) ; do \ | 25 | @for v in $(benches) ; do \ |
| 25 | # echo "$(dag_path)/$$v""$(single_suffix)"; \ | 26 | # echo "$(dag_path)/$$v""$(single_suffix)"; \ |
diff --git a/SD-VBS/dag_binaries/disparity_qcif_pair b/SD-VBS/dag_binaries/disparity_qcif_pair index 85641f7..dcc8b2a 100755 --- a/SD-VBS/dag_binaries/disparity_qcif_pair +++ b/SD-VBS/dag_binaries/disparity_qcif_pair | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/disparity_qcif_single b/SD-VBS/dag_binaries/disparity_qcif_single index 84037c5..160f584 100755 --- a/SD-VBS/dag_binaries/disparity_qcif_single +++ b/SD-VBS/dag_binaries/disparity_qcif_single | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/localization_qcif_pair b/SD-VBS/dag_binaries/localization_qcif_pair index 695375c..228b061 100755 --- a/SD-VBS/dag_binaries/localization_qcif_pair +++ b/SD-VBS/dag_binaries/localization_qcif_pair | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/localization_qcif_single b/SD-VBS/dag_binaries/localization_qcif_single index 7755bbe..d4d7653 100755 --- a/SD-VBS/dag_binaries/localization_qcif_single +++ b/SD-VBS/dag_binaries/localization_qcif_single | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/mser_qcif_pair b/SD-VBS/dag_binaries/mser_qcif_pair index cbb5562..3357767 100755 --- a/SD-VBS/dag_binaries/mser_qcif_pair +++ b/SD-VBS/dag_binaries/mser_qcif_pair | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/mser_qcif_single b/SD-VBS/dag_binaries/mser_qcif_single index 96e2338..df762fc 100755 --- a/SD-VBS/dag_binaries/mser_qcif_single +++ b/SD-VBS/dag_binaries/mser_qcif_single | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/multi_ncut_qcif_pair b/SD-VBS/dag_binaries/multi_ncut_qcif_pair index eb10fa7..f690a19 100755 --- a/SD-VBS/dag_binaries/multi_ncut_qcif_pair +++ b/SD-VBS/dag_binaries/multi_ncut_qcif_pair | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/multi_ncut_qcif_single b/SD-VBS/dag_binaries/multi_ncut_qcif_single index b7188c8..7c601e2 100755 --- a/SD-VBS/dag_binaries/multi_ncut_qcif_single +++ b/SD-VBS/dag_binaries/multi_ncut_qcif_single | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/sift_qcif_pair b/SD-VBS/dag_binaries/sift_qcif_pair index fac7559..7a1328b 100755 --- a/SD-VBS/dag_binaries/sift_qcif_pair +++ b/SD-VBS/dag_binaries/sift_qcif_pair | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/sift_qcif_single b/SD-VBS/dag_binaries/sift_qcif_single index 9f4d486..c9014b2 100755 --- a/SD-VBS/dag_binaries/sift_qcif_single +++ b/SD-VBS/dag_binaries/sift_qcif_single | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/stitch_qcif_pair b/SD-VBS/dag_binaries/stitch_qcif_pair index e16e2b7..b5a94e7 100755 --- a/SD-VBS/dag_binaries/stitch_qcif_pair +++ b/SD-VBS/dag_binaries/stitch_qcif_pair | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/stitch_qcif_single b/SD-VBS/dag_binaries/stitch_qcif_single index cf88cb1..3c98818 100755 --- a/SD-VBS/dag_binaries/stitch_qcif_single +++ b/SD-VBS/dag_binaries/stitch_qcif_single | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/svm_qcif_pair b/SD-VBS/dag_binaries/svm_qcif_pair index 2443f6b..9a6a651 100755 --- a/SD-VBS/dag_binaries/svm_qcif_pair +++ b/SD-VBS/dag_binaries/svm_qcif_pair | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/svm_qcif_single b/SD-VBS/dag_binaries/svm_qcif_single index 24246a1..c8c46d2 100755 --- a/SD-VBS/dag_binaries/svm_qcif_single +++ b/SD-VBS/dag_binaries/svm_qcif_single | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/texture_synthesis_qcif_pair b/SD-VBS/dag_binaries/texture_synthesis_qcif_pair index 5703d2e..caa5d7c 100755 --- a/SD-VBS/dag_binaries/texture_synthesis_qcif_pair +++ b/SD-VBS/dag_binaries/texture_synthesis_qcif_pair | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/texture_synthesis_qcif_single b/SD-VBS/dag_binaries/texture_synthesis_qcif_single index 1ed3ee7..534b0d3 100755 --- a/SD-VBS/dag_binaries/texture_synthesis_qcif_single +++ b/SD-VBS/dag_binaries/texture_synthesis_qcif_single | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/tracking_qcif_pair b/SD-VBS/dag_binaries/tracking_qcif_pair index 4132b01..833324c 100755 --- a/SD-VBS/dag_binaries/tracking_qcif_pair +++ b/SD-VBS/dag_binaries/tracking_qcif_pair | |||
| Binary files differ | |||
diff --git a/SD-VBS/dag_binaries/tracking_qcif_single b/SD-VBS/dag_binaries/tracking_qcif_single index cbb0c10..621bd10 100755 --- a/SD-VBS/dag_binaries/tracking_qcif_single +++ b/SD-VBS/dag_binaries/tracking_qcif_single | |||
| Binary files differ | |||
diff --git a/dag_example b/dag_example index f52ff5c..233528f 100644 --- a/dag_example +++ b/dag_example | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | 1, mser_qcif, mser001, 5, 0, 1, 1, 100, 1, 7, sift_qcif, sift001 | 1 | 1, mser_qcif, mser001, 5, 0, 1, 1, 100, 1, 0, sift_qcif, sift001 |
| 2 | 0, mser_qcif, mser002, 3, 1, 2, 1, 10, 1, 13 | 2 | 0, mser_qcif, mser002, 3, 1, 2, 1, 10, 1, 0 |
| 3 | 1, svm_qcif, svm001, 6, 0, 3, 1, 50, 1, 11, localization_qcif, localization001 | 3 | 1, svm_qcif, svm001, 6, 0, 3, 1, 50, 1, 0, localization_qcif, localization001 |
| 4 | 0, tracking_qcif, tracking001, 3, 2, 4, 1, 9, 1, 37 \ No newline at end of file | 4 | 0, tracking_qcif, tracking001, 3, 2, 4, 1, 9, 1, 0 |
diff --git a/deadline_misses b/deadline_misses index b9d3aa1..a6fe6a8 100644 --- a/deadline_misses +++ b/deadline_misses | |||
| @@ -1,23 +1,13 @@ | |||
| 1 | (tracking001/497952:2) HAZARDOUS: Level-B tardy 2594240 ns, relative tardiness 0.288249 | 1 | (tracking001/2814:2) HAZARDOUS: Level-B tardy 1763167 ns, relative tardiness 0.195907 |
| 2 | (tracking001/497952:3) HAZARDOUS: Level-B tardy 1489684 ns, relative tardiness 0.165520 | 2 | (tracking001/2814:3) HAZARDOUS: Level-B tardy 403976 ns, relative tardiness 0.044886 |
| 3 | (tracking001/497952:4) HAZARDOUS: Level-B tardy 341547 ns, relative tardiness 0.037950 | 3 | (svm001/2797:2) HAZARDOUS: Level-B tardy 102712074 ns, relative tardiness 2.054241 |
| 4 | (svm001/497937:2) HAZARDOUS: Level-B tardy 92756505 ns, relative tardiness 1.855130 | 4 | (svm001/2797:3) HAZARDOUS: Level-B tardy 139940064 ns, relative tardiness 2.798801 |
| 5 | (mser001/497910:2) HAZARDOUS: Level-B tardy 47794140 ns, relative tardiness 0.477941 | 5 | (localization001/2800:3) HAZARDOUS: Level-B tardy 178370600 ns, relative tardiness 3.567412 |
| 6 | (svm001/497937:3) HAZARDOUS: Level-B tardy 109956550 ns, relative tardiness 2.199131 | 6 | (svm001/2797:4) HAZARDOUS: Level-B tardy 196180824 ns, relative tardiness 3.923616 |
| 7 | (localization001/497941:3) HAZARDOUS: Level-B tardy 111499419 ns, relative tardiness 2.229988 | 7 | (localization001/2800:4) HAZARDOUS: Level-B tardy 232648236 ns, relative tardiness 4.652965 |
| 8 | (svm001/497937:4) HAZARDOUS: Level-B tardy 127490228 ns, relative tardiness 2.549805 | 8 | (svm001/2797:5) HAZARDOUS: Level-B tardy 250110392 ns, relative tardiness 5.002208 |
| 9 | (localization001/497941:4) HAZARDOUS: Level-B tardy 129233193 ns, relative tardiness 2.584664 | 9 | (localization001/2800:5) HAZARDOUS: Level-B tardy 286745163 ns, relative tardiness 5.734903 |
| 10 | (mser001/497910:3) HAZARDOUS: Level-B tardy 90713709 ns, relative tardiness 0.907137 | 10 | (svm001/2797:6) HAZARDOUS: Level-B tardy 304772054 ns, relative tardiness 6.095441 |
| 11 | (sift001/497913:3) HAZARDOUS: Level-B tardy 123545859 ns, relative tardiness 1.235459 | 11 | (localization001/2800:6) HAZARDOUS: Level-B tardy 341417704 ns, relative tardiness 6.828354 |
| 12 | (svm001/497937:5) HAZARDOUS: Level-B tardy 166669051 ns, relative tardiness 3.333381 | 12 | (localization001/2800:7) HAZARDOUS: Level-B tardy 351348831 ns, relative tardiness 7.026977 |
| 13 | (localization001/497941:5) HAZARDOUS: Level-B tardy 167447784 ns, relative tardiness 3.348956 | 13 | (svm001/2797:7) HAZARDOUS: Level-B tardy 351960956 ns, relative tardiness 7.039219 |
| 14 | (localization001/497941:6) HAZARDOUS: Level-B tardy 165639831 ns, relative tardiness 3.312797 | ||
| 15 | (svm001/497937:6) HAZARDOUS: Level-B tardy 168822509 ns, relative tardiness 3.376450 | ||
| 16 | (mser001/497910:4) HAZARDOUS: Level-B tardy 128636187 ns, relative tardiness 1.286362 | ||
| 17 | (sift001/497913:4) HAZARDOUS: Level-B tardy 154725906 ns, relative tardiness 1.547259 | ||
| 18 | (svm001/497937:7) HAZARDOUS: Level-B tardy 188427477 ns, relative tardiness 3.768550 | ||
| 19 | (localization001/497941:7) HAZARDOUS: Level-B tardy 189059124 ns, relative tardiness 3.781182 | ||
| 20 | (mser001/497910:5) HAZARDOUS: Level-B tardy 137590008 ns, relative tardiness 1.375900 | ||
| 21 | (sift001/497913:5) HAZARDOUS: Level-B tardy 174780618 ns, relative tardiness 1.747806 | ||
| 22 | (mser001/497910:6) HAZARDOUS: Level-B tardy 82683605 ns, relative tardiness 0.826836 | ||
| 23 | (sift001/497913:6) HAZARDOUS: Level-B tardy 128132417 ns, relative tardiness 1.281324 | ||
| @@ -222,8 +222,8 @@ static void _rt_load_params_itrl(int argc, char **argv) { | |||
| 222 | rt_param.period = _rt_period; | 222 | rt_param.period = _rt_period; |
| 223 | rt_param.relative_deadline = 0; | 223 | rt_param.relative_deadline = 0; |
| 224 | rt_param.phase = _rt_phase; | 224 | rt_param.phase = _rt_phase; |
| 225 | // rt_param.priority = LITMUS_LOWEST_PRIORITY; | 225 | rt_param.priority = LITMUS_LOWEST_PRIORITY; |
| 226 | rt_param.priority = ns2ms(_rt_phase); | 226 | // rt_param.priority = ns2ms(_rt_phase); |
| 227 | rt_param.cls = _rt_crit; | 227 | rt_param.cls = _rt_crit; |
| 228 | rt_param.budget_policy = NO_ENFORCEMENT; | 228 | rt_param.budget_policy = NO_ENFORCEMENT; |
| 229 | rt_param.cpu = _rt_core; | 229 | rt_param.cpu = _rt_core; |
diff --git a/run_case_study_dag.py b/run_case_study_dag.py index f098e9e..d9a0563 100755 --- a/run_case_study_dag.py +++ b/run_case_study_dag.py | |||
| @@ -78,6 +78,7 @@ def main(pathName): | |||
| 78 | 78 | ||
| 79 | task_launches = [] | 79 | task_launches = [] |
| 80 | max_core = 0 | 80 | max_core = 0 |
| 81 | all_cores = set() | ||
| 81 | # Load task specifications | 82 | # Load task specifications |
| 82 | with open(pathName, "r") as file: | 83 | with open(pathName, "r") as file: |
| 83 | for line in file: | 84 | for line in file: |
| @@ -86,6 +87,7 @@ def main(pathName): | |||
| 86 | core_num = int(parameters[CORE_NUM]) % 16 | 87 | core_num = int(parameters[CORE_NUM]) % 16 |
| 87 | if max_core < core_num: | 88 | if max_core < core_num: |
| 88 | max_core = core_num | 89 | max_core = core_num |
| 90 | all_cores.add(core_num) | ||
| 89 | # if parameters[0] == '1': | 91 | # if parameters[0] == '1': |
| 90 | # other_core_num = int(parameters[OTHER_CORE_NUM]) % 16 | 92 | # other_core_num = int(parameters[OTHER_CORE_NUM]) % 16 |
| 91 | # if other_core_num > max_core: | 93 | # if other_core_num > max_core: |
| @@ -97,20 +99,22 @@ def main(pathName): | |||
| 97 | ### Allocate Cache Ways ### | 99 | ### Allocate Cache Ways ### |
| 98 | run('mount -t resctrl resctrl /sys/fs/resctrl') | 100 | run('mount -t resctrl resctrl /sys/fs/resctrl') |
| 99 | # run('echo "L3:0=0000,1=0000,2=0000,3=0000" > /sys/fs/resctrl/schemata') | 101 | # run('echo "L3:0=0000,1=0000,2=0000,3=0000" > /sys/fs/resctrl/schemata') |
| 100 | # for core in range(16): | 102 | for core in range(16): |
| 101 | # run("mkdir -p /sys/fs/resctrl/core-{}".format(core)) | 103 | if core not in all_cores: |
| 102 | # ccx = core // 4 | 104 | continue |
| 103 | # in_ccx = core % 4 | 105 | run("mkdir -p /sys/fs/resctrl/core-{}".format(core)) |
| 104 | # mask = "0000" | 106 | ccx = core // 4 |
| 105 | # mask = mask[:in_ccx] +'f'+ mask[in_ccx+1:] | 107 | in_ccx = core % 4 |
| 106 | # if ccx == 0: | 108 | mask = "0000" |
| 107 | # run('echo "L3:0=' + mask + ';1=0000;2=0000;3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) | 109 | mask = mask[:in_ccx] +'f'+ mask[in_ccx+1:] |
| 108 | # if ccx == 1: | 110 | if ccx == 0: |
| 109 | # run('echo "L3:0=0000;1=' + mask + ';2=0000;3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) | 111 | run('echo "L3:0=' + mask + ';1=0000;2=0000;3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) |
| 110 | # if ccx == 2: | 112 | if ccx == 1: |
| 111 | # run('echo "L3:0=0000;1=0000;2='+ mask +';3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) | 113 | run('echo "L3:0=0000;1=' + mask + ';2=0000;3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) |
| 112 | # if ccx == 3: | 114 | if ccx == 2: |
| 113 | # run('echo "L3:0=0000;1=0000;2=0000;3=' + mask + '" > /sys/fs/resctrl/core-{}/schemata'.format(core)) | 115 | run('echo "L3:0=0000;1=0000;2='+ mask +';3=0000" > /sys/fs/resctrl/core-{}/schemata'.format(core)) |
| 116 | if ccx == 3: | ||
| 117 | run('echo "L3:0=0000;1=0000;2=0000;3=' + mask + '" > /sys/fs/resctrl/core-{}/schemata'.format(core)) | ||
| 114 | 118 | ||
| 115 | # return 1 | 119 | # return 1 |
| 116 | run("rm -rf /dev/shm/*") | ||
