source: doc/theses/thierry_delisle_PhD/thesis/Makefile @ 558999f

ADTast-experimentalpthread-emulation
Last change on this file since 558999f was 5378f33, checked in by Thierry Delisle <tdelisle@…>, 2 years ago

Fixed typo in makefile and added crazed rambling in lieu of conclusion

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