source: doc/theses/thierry_delisle_PhD/thesis/Makefile @ 08e7590d

ADTast-experimentalpthread-emulation
Last change on this file since 08e7590d was 08e7590d, checked in by Thierry Delisle <tdelisle@…>, 3 years ago

Updated makefile and added real data for webserver and standin data for memcached

  • Property mode set to 100644
File size: 7.8 KB
Line 
1## Define the configuration variables.
2
3Build = build
4Figures = img
5
6LaTMac = ../../../LaTeXmacros
7BibRep = ../../../bibliography
8
9Macros = ${LaTMac}
10TeXLIB = .:${Macros}:${Build}:${BibRep}:
11LaTeX  = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
12BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
13
14MAKEFLAGS = --no-print-directory # --silent
15VPATH = ${Build} ${Figures}
16
17## Define the text source files.
18TEXTS = ${addprefix text/, ${addsuffix .tex, \
19        front \
20        intro \
21        existing \
22        runtime \
23        core \
24        practice \
25        io \
26        eval_micro \
27        eval_macro \
28}}
29
30FIGURES = base \
31        base_avg \
32        base_ts2 \
33        cache-share \
34        cache-noshare \
35        empty \
36        emptybit \
37        emptytls \
38        emptytree \
39        executionStates \
40        fairness \
41        idle \
42        idle1 \
43        idle2 \
44        idle_state \
45        io_uring \
46        pivot_ring \
47        MQMS \
48        MQMSG \
49        system \
50        cycle \
51        result.cycle.jax.ops \
52        result.cycle.nasus.ops \
53        result.yield.jax.ops \
54        result.yield.nasus.ops \
55        result.churn.jax.ops \
56        result.churn.nasus.ops \
57        result.locality.share.jax.ops \
58        result.locality.share.nasus.ops \
59        result.locality.noshare.jax.ops \
60        result.locality.noshare.nasus.ops \
61        result.cycle.jax.ns \
62        result.cycle.nasus.ns \
63        result.yield.jax.ns \
64        result.yield.nasus.ns \
65        result.churn.jax.ns \
66        result.churn.nasus.ns \
67        result.locality.share.jax.ns \
68        result.locality.share.nasus.ns \
69        result.locality.noshare.jax.ns \
70        result.locality.noshare.nasus.ns \
71        result.cycle.low.jax.ops \
72        result.cycle.low.nasus.ops \
73        result.yield.low.jax.ops \
74        result.yield.low.nasus.ops \
75        result.churn.low.jax.ops \
76        result.churn.low.nasus.ops \
77        result.cycle.low.jax.ns \
78        result.cycle.low.nasus.ns \
79        result.yield.low.jax.ns \
80        result.yield.low.nasus.ns \
81        result.churn.low.jax.ns \
82        result.churn.low.nasus.ns \
83        result.memcd.rate.qps \
84        result.memcd.rate.99th \
85        result.memcd.forall.qps \
86        result.memcd.forall.lat \
87        result.memcd.fibre.qps \
88        result.memcd.fibre.lat \
89        result.memcd.vanilla.qps \
90        result.memcd.vanilla.lat \
91        result.swbsrv.25gb \
92        result.swbsrv.25gb.err \
93        SQMS
94
95PICTURES = ${addsuffix .pstex, ${FIGURES} }
96
97PROGRAMS = ${addsuffix .tex, \
98}
99
100GRAPHS = ${addsuffix .tex, \
101}
102
103## Define the documents that need to be made.
104all: thesis.pdf
105build/thesis.dvi: ${TEXTS} ${PICTURES} thesis.tex glossary.tex local.bib ${LaTMac}/common.tex ${LaTMac}/common.sty ${BibRep}/pl.bib
106
107DOCUMENT = thesis.pdf
108BASE = ${basename ${DOCUMENT}}
109
110# Directives #
111
112.NOTPARALLEL:                                           # cannot make in parallel
113
114.PHONY : all clean                                      # not file names
115
116all : ${DOCUMENT}
117
118clean :
119        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
120
121# File Dependencies #
122
123%.pdf : build/%.ps | ${Build}
124        ps2pdf $<
125
126build/%.ps : build/%.dvi | ${Build}
127        dvips $< -o $@
128
129build/%.dvi : %.tex Makefile | ${Build}
130        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
131        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
132        # Must have *.aux file containing citations for bibtex
133        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} $< ; fi
134        -${BibTeX} ${basename $@}
135        # Some citations reference others so run again to resolve these citations
136        ${LaTeX} $<
137        -${BibTeX} ${basename $@}
138        # Make index from *.aux entries and input index at end of document
139        -makeglossaries -q -s ${basename $@}.ist ${basename $@}
140        # Make index from *.aux entries and input index at end of document
141        -makeindex ${basename $@}.idx
142        # Run again to finish citations
143        ${LaTeX} $<
144
145## Define the default recipes.
146
147${Build}:
148        mkdir -p ${Build}
149
150%.tex : fig/%.fig | ${Build}
151        fig2dev -L eepic $< > ${Build}/$@
152
153%.ps : fig/%.fig | ${Build}
154        fig2dev -L ps $< > ${Build}/$@
155
156%.pstex : fig/%.fig | ${Build}
157        fig2dev -L pstex $< > ${Build}/$@
158        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
159
160%.pstex : build/%.svg | ${Build}
161        inkscape -z -D --file=$< --export-eps=${Build}/$@ --export-latex
162        mv ${Build}/$@_tex ${Build}/$@_t
163        echo "sed -i 's/$@/${Build}/$@/g' ${Build}/$@_t"
164        sed -i 's/$@/${Build}\/$@/g' ${Build}/$@_t
165
166build/fairness.svg : fig/fairness.py | ${Build}
167        python3 $< $@
168
169cycle_jax_ops_FLAGS = --MaxY=500000000
170cycle_low_jax_ops_FLAGS = --MaxY=500000000
171cycle_jax_ns_FLAGS = --MaxY=4000
172cycle_low_jax_ns_FLAGS = --MaxY=4000
173
174cycle_nasus_ops_FLAGS = --MaxY=1250000000
175cycle_low_nasus_ops_FLAGS = --MaxY=1250000000
176cycle_nasus_ns_FLAGS = --MaxY=1500
177cycle_low_nasus_ns_FLAGS = --MaxY=1500
178
179yield_jax_ops_FLAGS = --MaxY=1000000000
180yield_low_jax_ops_FLAGS = --MaxY=1000000000
181yield_jax_ns_FLAGS = --MaxY=4000
182yield_low_jax_ns_FLAGS = --MaxY=4000
183
184yield_nasus_ops_FLAGS = --MaxY=1500000000
185yield_low_nasus_ops_FLAGS = --MaxY=1500000000
186yield_nasus_ns_FLAGS = --MaxY=1500
187yield_low_nasus_ns_FLAGS = --MaxY=1500
188
189churn_jax_ops_FLAGS = --MaxY=50000000
190churn_low_jax_ops_FLAGS = --MaxY=50000000
191churn_jax_ns_FLAGS = --MaxY=20000
192churn_low_jax_ns_FLAGS = --MaxY=20000
193
194churn_nasus_ops_FLAGS = --MaxY=75000000
195churn_low_nasus_ops_FLAGS = --MaxY=75000000
196churn_nasus_ns_FLAGS = --MaxY=20000
197churn_low_nasus_ns_FLAGS = --MaxY=20000
198
199build/result.%.ns.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build}
200        ../../../../benchmark/plot.py -f $< -o $@ -y "ns per ops/procs" $($(subst .,_,$*)_ns_FLAGS)
201
202build/result.%.ops.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build}
203        ../../../../benchmark/plot.py -f $< -o $@ -y "Ops per second" $($(subst .,_,$*)_ops_FLAGS)
204
205build/result.memcd.rate.qps.svg : data/memcd.rate Makefile ../../../../benchmark/plot.py | ${Build}
206        ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS" --MaxY=750000
207
208build/result.memcd.rate.99th.svg : data/memcd.rate Makefile ../../../../benchmark/plot.py | ${Build}
209        ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS"
210
211build/result.memcd.forall.qps.svg : data/memcd.updt2 Makefile ../../../../benchmark/plot.py | ${Build}
212        ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS" --filter forall --MaxY=700000
213
214build/result.memcd.forall.lat.svg : data/memcd.updt2 Makefile ../../../../benchmark/plot.py | ${Build}
215        ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS" --filter forall --MaxY=1
216
217build/result.memcd.vanilla.qps.svg : data/memcd.updt2 Makefile ../../../../benchmark/plot.py | ${Build}
218        ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS" --filter vanilla --MaxY=700000
219
220build/result.memcd.vanilla.lat.svg : data/memcd.updt2 Makefile ../../../../benchmark/plot.py | ${Build}
221        ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS" --filter vanilla --MaxY=1
222
223build/result.memcd.fibre.qps.svg : data/memcd.updt2 Makefile ../../../../benchmark/plot.py | ${Build}
224        ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS" --filter fibre --MaxY=700000
225
226build/result.memcd.fibre.lat.svg : data/memcd.updt2 Makefile ../../../../benchmark/plot.py | ${Build}
227        ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS" --filter fibre --MaxY=1
228
229build/swbsrv.% : data/swbsrv.%.nginx data/swbsrv.%.cfa Makefile ../../../../benchmark/process-trun.py | ${Build}
230        ../../../../benchmark/process-trun.py --out $@ $^
231
232build/result.swbsrv.%.svg : build/swbsrv.% Makefile ../../../../benchmark/plot.py | ${Build}
233        ../../../../benchmark/plot.py -f $< -o $@ -y "Data Rate" -x "Request Rate"
234
235build/result.swbsrv.%.err.svg : build/swbsrv.% Makefile ../../../../benchmark/plot.py | ${Build}
236        ../../../../benchmark/plot.py -f $< -o $@ -y "Errors" -x "Request Rate"
237
238## pstex with inverted colors
239%.dark.pstex : fig/%.fig Makefile | ${Build}
240        fig2dev -L pstex $< > ${Build}/$@
241        sed -i 's/\/col-1 {0 setgray} bind def/\/col-1 {1 setgray} bind def/g' ${Build}/$@
242        sed -i 's/\/col0 {0.000 0.000 0.000 srgb} bind def/\/col0 {1.000 1.000 1.000 srgb} bind def/g' ${Build}/$@
243        sed -i 's/\/col7 {1.000 1.000 1.000 srgb} bind def/\/col7 {0.000 0.000 0.000 srgb} bind def/g' ${Build}/$@
244        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
245
246# Local Variables: #
247# compile-command: "make" #
248# End: #
Note: See TracBrowser for help on using the repository browser.