Skip to content

Commit 772a5a5

Browse files
committed
Adds notebook for dask
fixes #3
1 parent 4865b77 commit 772a5a5

File tree

17 files changed

+338
-67
lines changed

17 files changed

+338
-67
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ build.log
33
*.retry
44
*.sw?
55
.ropeproject/
6-
experiments/dask/ansible.log
6+
ansible.log
77
out/main.pdf
8+
.ipynb_checkpoints/

build

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ docker run \
66
-v `pwd`/vendor/ieee.csl:/root/ieee.csl \
77
-v `pwd`/vendor/zotero.bib:/root/citations.bib \
88
-v `pwd`/main.md:/root/main.md \
9+
-v `pwd`/experiments:/root/experiments \
910
-v `pwd`/figures:/root/figures \
1011
-v `pwd`/out:/root/out \
1112
ivotron/pandoc:1.13.2 \

experiments/common/start_gassy.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
1-
- name: stop gassyfs
2-
include: stop_gassy.yml
3-
41
- name: ensure gassy options are given
52
assert:
63
that:
74
- "gassyfs is defined"
5+
- "gassyfs.enabled is defined"
86
- "gassyfs.mount_options is defined"
97

8+
- name: stop gassyfs
9+
include: stop_gassy.yml
10+
when: "{{ gassyfs.enabled | bool }}"
11+
1012
- name: share root mount
1113
command: mount --make-shared /
14+
when: "{{ gassyfs.enabled | bool }}"
1215

1316
- name: delete mount point
1417
shell: rm -r `pwd`/mount
1518
ignore_errors: true
19+
when: "{{ gassyfs.enabled | bool }}"
1620

1721
- name: start gassyfs container
1822
shell: >
@@ -22,6 +26,7 @@
2226
-v /dev:/dev \
2327
-v `pwd`/mount:/mount:shared \
2428
ivotron/gassyfs /mount -o "{{ gassyfs.mount_options | join(',') }}"
29+
when: "{{ gassyfs.enabled | bool }}"
2530

2631
- name: ensure gassyfs is mounted
2732
shell: >
@@ -31,3 +36,4 @@
3136
alpine sh -c "mount" | grep gassy | wc -l
3237
register: mount_out
3338
failed_when: mount_out.stdout == '0'
39+
when: "{{ gassyfs.enabled | bool }}"

experiments/common/start_tmpfs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
- name: stop tmpfs
22
include: stop_tmpfs.yml
3+
when: "{{ tmpfs.enabled | bool }}"
34

45
- name: start tmpfs container
56
shell: >
@@ -10,3 +11,4 @@
1011
-v `pwd`/mount_tmpfs:/mount:shared \
1112
alpine sh -c \
1213
"mount -t tmpfs -o {{ tmpfs.mount_options | join(',') }} tmpfs /mount"
14+
when: "{{ tmpfs.enabled | bool }}"

experiments/common/stop_gassy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
- name: stop gassyfs container
22
command: docker stop gassyfs-master
33
ignore_errors: true
4+
when: "{{ gassyfs.enabled | bool }}"
45
- name: remove gassyfs container
56
command: docker rm -f gassyfs-master
67
ignore_errors: true
7-
8+
when: "{{ gassyfs.enabled | bool }}"

experiments/common/stop_tmpfs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
- name: stop tmpfs container
22
command: docker stop tmpfs-master
33
ignore_errors: true
4+
when: "{{ tmpfs.enabled | bool }}"
45
- name: remove tmpfs container
56
command: docker rm -f tmpfs-master
67
ignore_errors: true
8+
when: "{{ tmpfs.enabled | bool }}"

experiments/dask/bench.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
register: docker_output
1919

2020
- name: write results to output
21-
shell: echo "{{ item.id }}, exec, local, {{docker_output.delta}}" >> results.csv
21+
shell: echo "{{ item.id }},exec,local,{{docker_output.delta}}" >> results.csv
2222
when: "{{ item.run_in_local_fs | bool }}"
2323

2424
# gassyfs
@@ -36,7 +36,7 @@
3636
register: docker_output
3737

3838
- name: write results to output
39-
shell: echo "{{ item.id }}, copy, gassyfs, {{docker_output.delta}}" >> results.csv
39+
shell: echo "{{ item.id }},copy,gassyfs,{{docker_output.delta}}" >> results.csv
4040
when:
4141
- "{{ item.run_in_gassyfs | bool }}"
4242
- "{{ item.copy_folder | bool }}"
@@ -51,7 +51,7 @@
5151
when: "{{ item.run_in_gassyfs | bool }}"
5252

5353
- name: write results to output
54-
shell: echo "{{ item.id }}, exec, gassyfs, {{docker_output.delta}}" >> results.csv
54+
shell: echo "{{ item.id }},exec,gassyfs,{{docker_output.delta}}" >> results.csv
5555
when: "{{ item.run_in_gassyfs | bool }}"
5656

5757
- name: delete files
@@ -77,7 +77,7 @@
7777
register: docker_output
7878

7979
- name: write results to output
80-
shell: echo "{{ item.id }}, copy, tmpfs, {{docker_output.delta}}" >> results.csv
80+
shell: echo "{{ item.id }},copy,tmpfs,{{docker_output.delta}}" >> results.csv
8181
when:
8282
- "{{ item.run_in_tmpfs | bool }}"
8383
- "{{ item.copy_folder | bool }}"
@@ -92,7 +92,7 @@
9292
when: "{{ item.run_in_tmpfs | bool }}"
9393

9494
- name: write results to output
95-
shell: echo "{{ item.id }}, exec, tmpfs, {{docker_output.delta}}" >> results.csv
95+
shell: echo "{{ item.id }},exec,tmpfs,{{docker_output.delta}}" >> results.csv
9696
when: "{{ item.run_in_tmpfs | bool }}"
9797

9898
- name: delete files

experiments/dask/dask.png

75.2 KB
Loading

experiments/dask/playbook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,11 @@
2424
- name: start gassy
2525
include: ../common/start_gassy.yml
2626

27-
- name: start gassy
27+
- name: start tmpfs
2828
include: ../common/start_tmpfs.yml
2929

3030
- name: create csv with headers
31-
shell: echo "workload, op, fs, time" > results.csv
31+
shell: echo "workload,op,fs,time" > results.csv
3232

3333
- name: run benchmarks
3434
include: bench.yml

experiments/dask/results.csv

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
workload,op,fs,time
2+
xarray_metar_1,exec,local,0:01:04.051740
3+
xarray_metar_1,copy,tmpfs,0:00:03.570868
4+
xarray_metar_1,exec,tmpfs,0:00:05.609725
5+
xarray_metar_2,exec,local,0:01:05.868933
6+
xarray_metar_2,exec,tmpfs,0:00:05.819508
7+
xarray_metar_3,exec,local,0:01:44.908815
8+
xarray_metar_3,exec,tmpfs,0:00:45.670286
9+
xarray_metar_4,exec,local,0:02:26.545478
10+
xarray_metar_4,exec,tmpfs,0:01:25.311635
11+
xarray_metar_1,copy,gassyfs,0:00:48.969857
12+
xarray_metar_1,exec,gassyfs,0:00:11.298157
13+
xarray_metar_2,exec,gassyfs,0:00:12.513605
14+
xarray_metar_3,exec,gassyfs,0:00:52.773712
15+
xarray_metar_4,exec,gassyfs,0:01:32.563396

0 commit comments

Comments
 (0)