def populate_params(cls): for idx in range(len(cls.env.target.bl.bigs)): task = cls.task_prefix + str(idx) cls.params[task] = RTA.periodic(**BIG_WORKLOAD) for idx in range(len(cls.env.target.bl.littles)): task = cls.task_prefix + str(idx) cls.params[task] = RTA.periodic(**SMALL_WORKLOAD)
def populate_tasks(cls): migrator_workload = BIG_WORKLOAD.copy() migrator_workload["duration_s"] = 9 migrator_workload["delay_s"] = 1 for idx in range(cls.num_tasks): task = "early_starters" + str(idx) cls.params[task] = RTA.periodic(**BIG_WORKLOAD) cls.early_starters.append(task) # Tasks that will be idle pulled task = "migrator" + str(idx) cls.params[task] = RTA.periodic(**migrator_workload) cls.migrators.append(task)
def populate_params(cls): for i in range(cls.num_tasks): task = cls.task_prefix + str(i) cls.params[task] = RTA.periodic(**SMALL_WORKLOAD)