Skip to content
Snippets Groups Projects
Commit b786cd3a authored by Maël Madon's avatar Maël Madon
Browse files

rerun expe0 and expe1 and started a diary of observations

parent a26115c9
Branches
Tags
1 merge request!1Extension europar2022
......@@ -87,7 +87,7 @@ def run_expe(expe_num, user_category, window_size, clean_log, nb_cores=16):
def start_instance(expe_num, start_date, prepare_workload=True, clean_log=False, only_degrad_temp=False):
def start_instance(expe_num, prepare_workload=True, start_date=0, clean_log=False, only_degrad_temp=False):
# Prepare workload
if prepare_workload:
prepare_input_data(expe_num, start_date)
......@@ -97,12 +97,13 @@ def start_instance(expe_num, start_date, prepare_workload=True, clean_log=False,
# Run with Rigid behavior (the demand response window has no influence here)
run_expe(expe_num=expe_num,
user_category="replay_user_rigid",
window_size=1, clean_log=clean_log)
user_category="replay_user_rigid",
window_size=1, clean_log=clean_log)
# 4*2 = 8 expe
if only_degrad_temp:
bhvs = ["dm_user_degrad_temp"]
# bhvs = ["dm_user_degrad_temp"]
bhvs = []
else:
bhvs = ["dm_user_reconfig","dm_user_degrad_space", "dm_user_degrad_temp",
"dm_user_renounce","dm_user_delay"]
......@@ -119,11 +120,11 @@ def main():
parser = argparse.ArgumentParser(
description='One expe instance. To launch for example with `oarsub -l walltime=2 "./1_one_instance arg1 arg2 arg3"`')
parser.add_argument('expe_num', type=int, help='The expe ID')
parser.add_argument('start_date', type=int,
help='Start of the 3-day window (in seconds since the start of the original trace)')
# parser.add_argument('start_date', type=int,
# help='Start of the 3-day window (in seconds since the start of the original trace)')
args = parser.parse_args()
start_instance(args.expe_num, args.start_date)
start_instance(args.expe_num, prepare_workload=False, clean_log=True, only_degrad_temp=True)
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment