Skip to content

Commit 72c144f

Browse files
committed
plots: more ground work
1 parent a9844fc commit 72c144f

File tree

9 files changed

+430
-44
lines changed

9 files changed

+430
-44
lines changed

tasks/makespan/elastic.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Re-run the following instructions with the following values:
1010

1111
```bash
1212
NUM_VMS=8,16,24,32
13-
NUM_TASKS=25,50,75,100
13+
NUM_TASKS=50,100,150,200
1414
```
1515

1616
## Deploy the cluster
@@ -75,7 +75,7 @@ During an experiment, you may monitor the state of the cluster (in a separete
7575
shell) by using:
7676

7777
```bash
78-
faasmctl monitor.planner --policy spot
78+
faasmctl monitor.planner
7979
```
8080

8181
Once you are done, you may delete the cluster:

tasks/makespan/plot.py

+34-6
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,22 @@ def spot(ctx):
249249
num_tasks=num_tasks,
250250
)
251251

252-
save_plot(fig, MAKESPAN_PLOTS_DIR, "spot")
252+
# Manually craft the legend
253+
baselines = ["slurm", "batch", "granny-elastic"]
254+
legend_entries = [
255+
Patch(
256+
color=get_color_for_baseline("mpi-spot", baseline),
257+
label=get_label_for_baseline("mpi-spot", baseline)
258+
) for baseline in baselines
259+
]
260+
fig.legend(
261+
handles=legend_entries,
262+
loc="upper center",
263+
ncols=len(baselines),
264+
bbox_to_anchor=(0.52, 1.07)
265+
)
266+
267+
save_plot(fig, MAKESPAN_PLOTS_DIR, "makespan_spot")
253268

254269

255270
@task
@@ -265,10 +280,8 @@ def elastic(ctx):
265280
266281
Initial idea is to have four columns
267282
"""
268-
# num_vms = [8, 16, 24, 32]
269-
# num_tasks = [25, 50, 75, 100]
270-
num_vms = [4, 8]
271-
num_tasks = [10, 25]
283+
num_vms = [8, 16, 24, 32]
284+
num_tasks = [50, 100, 150, 200]
272285
num_cpus_per_vm = 8
273286

274287
# RHS: zoom in one of the bars
@@ -332,4 +345,19 @@ def elastic(ctx):
332345
timeseries_num_tasks=timeseries_num_tasks
333346
)
334347

335-
save_plot(fig, MAKESPAN_PLOTS_DIR, "elastic")
348+
# Manually craft the legend
349+
baselines = ["slurm", "batch", "granny", "granny-elastic"]
350+
legend_entries = [
351+
Patch(
352+
color=get_color_for_baseline("omp-elastic", baseline),
353+
label=get_label_for_baseline("omp-elastic", baseline)
354+
) for baseline in baselines
355+
]
356+
fig.legend(
357+
handles=legend_entries,
358+
loc="upper center",
359+
ncols=len(baselines),
360+
bbox_to_anchor=(0.52, 1.07)
361+
)
362+
363+
save_plot(fig, MAKESPAN_PLOTS_DIR, "makespan_elastic")
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,151 @@
1+
TaskId,App,Size,InterArrivalTimeSecs
2+
0,omp,6,0
3+
1,omp,1,2
4+
2,omp,3,23
5+
3,omp,1,3
6+
4,omp,5,58
7+
5,omp,5,24
8+
6,omp,3,5
9+
7,omp,6,12
10+
8,omp,6,9
11+
9,omp,2,42
12+
10,omp,6,4
13+
11,omp,1,2
14+
12,omp,3,4
15+
13,omp,4,14
16+
14,omp,4,21
17+
15,omp,6,11
18+
16,omp,4,10
19+
17,omp,6,6
20+
18,omp,2,0
21+
19,omp,7,14
22+
20,omp,6,73
23+
21,omp,5,33
24+
22,omp,6,13
25+
23,omp,1,0
26+
24,omp,1,2
27+
25,omp,3,2
28+
26,omp,6,3
29+
27,omp,7,6
30+
28,omp,2,9
31+
29,omp,1,3
32+
30,omp,6,10
33+
31,omp,6,13
34+
32,omp,7,26
35+
33,omp,4,20
36+
34,omp,4,1
37+
35,omp,1,2
38+
36,omp,6,1
39+
37,omp,3,18
40+
38,omp,2,4
41+
39,omp,3,26
42+
40,omp,1,21
43+
41,omp,2,48
44+
42,omp,5,2
45+
43,omp,7,17
46+
44,omp,4,0
47+
45,omp,7,11
48+
46,omp,4,0
49+
47,omp,5,1
50+
48,omp,5,24
51+
49,omp,3,3
52+
50,omp,3,16
53+
51,omp,5,11
54+
52,omp,3,12
55+
53,omp,3,8
56+
54,omp,5,29
57+
55,omp,4,1
58+
56,omp,7,39
59+
57,omp,7,12
60+
58,omp,7,31
61+
59,omp,1,14
62+
60,omp,7,15
63+
61,omp,3,1
64+
62,omp,3,4
65+
63,omp,1,6
66+
64,omp,5,1
67+
65,omp,3,1
68+
66,omp,3,19
69+
67,omp,1,15
70+
68,omp,3,0
71+
69,omp,5,21
72+
70,omp,2,7
73+
71,omp,3,11
74+
72,omp,5,0
75+
73,omp,1,5
76+
74,omp,1,21
77+
75,omp,7,4
78+
76,omp,2,0
79+
77,omp,3,7
80+
78,omp,1,1
81+
79,omp,2,9
82+
80,omp,3,1
83+
81,omp,6,6
84+
82,omp,6,0
85+
83,omp,2,0
86+
84,omp,7,13
87+
85,omp,6,11
88+
86,omp,5,10
89+
87,omp,6,26
90+
88,omp,7,9
91+
89,omp,1,4
92+
90,omp,6,21
93+
91,omp,4,2
94+
92,omp,2,2
95+
93,omp,1,24
96+
94,omp,5,40
97+
95,omp,1,4
98+
96,omp,2,1
99+
97,omp,5,10
100+
98,omp,6,12
101+
99,omp,3,11
102+
100,omp,4,8
103+
101,omp,3,14
104+
102,omp,6,3
105+
103,omp,6,1
106+
104,omp,5,8
107+
105,omp,7,12
108+
106,omp,4,22
109+
107,omp,6,0
110+
108,omp,7,12
111+
109,omp,4,23
112+
110,omp,2,3
113+
111,omp,7,7
114+
112,omp,1,8
115+
113,omp,7,2
116+
114,omp,4,8
117+
115,omp,4,4
118+
116,omp,3,0
119+
117,omp,6,7
120+
118,omp,7,5
121+
119,omp,5,0
122+
120,omp,2,12
123+
121,omp,7,5
124+
122,omp,4,1
125+
123,omp,5,1
126+
124,omp,3,7
127+
125,omp,7,6
128+
126,omp,7,7
129+
127,omp,1,25
130+
128,omp,3,0
131+
129,omp,1,2
132+
130,omp,3,3
133+
131,omp,6,2
134+
132,omp,6,13
135+
133,omp,4,1
136+
134,omp,1,9
137+
135,omp,2,1
138+
136,omp,4,23
139+
137,omp,4,16
140+
138,omp,6,7
141+
139,omp,1,13
142+
140,omp,3,3
143+
141,omp,6,18
144+
142,omp,2,1
145+
143,omp,1,23
146+
144,omp,2,11
147+
145,omp,5,4
148+
146,omp,4,6
149+
147,omp,2,19
150+
148,omp,4,3
151+
149,omp,2,2

0 commit comments

Comments
 (0)