Notebook done for figure 8

This commit is contained in:
Claudio Maggioni 2021-04-17 12:50:40 +02:00
parent 41371bc748
commit 98fc7053ce
4 changed files with 542 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -99,7 +99,7 @@ def increment_reserv_bucket(bucket, taskid, value):
idx = 40 if value >= 1 else (int(value * 40) + 1)
if taskid not in bucket:
bucket[taskid] = [0] * (len(ceils) + 1)
bucket[taskid] = [0] * 41
bucket[taskid][idx] += 1
def bucket_sum_per_termination(bucket, last_term_by_id):
@ -119,7 +119,6 @@ def for_each_joined(x):
ts = sorted(ts, key=lambda x: x.time)
last_req_by_id = {} # map taskid -> last known req [cpu, ram] (data removed when task terminates)
reserv_ceils = [0]
cpu_reservs_by_id = {}
ram_reservs_by_id = {}

510
figure_8/figure_8.ipynb Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.