source: doc/theses/thierry_delisle_PhD/thesis/Makefile @ ab2b352

ADTast-experimental
Last change on this file since ab2b352 was a44514e, checked in by Thierry Delisle <tdelisle@…>, 2 years ago

A whole bunch of small changes:
trying to setup a version that I can pass through a spell checker.
Fixing a whole bunch of grammar errors

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