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

ADT ast-experimental
Last change on this file since a84f643 was a44514e, checked in by Thierry Delisle <tdelisle@…>, 3 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
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
[a44514e]13DeTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && detex -r
[86c1f1c3]14
[b20465a]15MAKEFLAGS = --no-print-directory # --silent
[86c1f1c3]16VPATH = ${Build} ${Figures}
17
18## Define the text source files.
19TEXTS = ${addprefix text/, ${addsuffix .tex, \
20 front \
21 intro \
[b9537e6]22 existing \
[86c1f1c3]23 runtime \
24 core \
25 practice \
26 io \
[36a05d7]27 eval_micro \
28 eval_macro \
[5378f33]29 conclusion \
[86c1f1c3]30}}
31
[8f09242]32FIGURES = base \
[6db62fa]33 base_avg \
[2a859b5]34 base_ts2 \
[13888c0e]35 cache-share \
36 cache-noshare \
[86c1f1c3]37 empty \
[c04a19e]38 emptybit \
39 emptytls \
40 emptytree \
[1f201238]41 executionStates \
[c04a19e]42 fairness \
[622a358]43 idle \
44 idle1 \
45 idle2 \
46 idle_state \
[c292244]47 io_uring \
[5ce9bea]48 pivot_ring \
[1f201238]49 MQMS \
50 MQMSG \
[b9537e6]51 system \
[36a05d7]52 cycle \
[6db62fa]53 result.cycle.jax.ops \
[8f09242]54 result.cycle.nasus.ops \
[622a358]55 result.yield.jax.ops \
[8f09242]56 result.yield.nasus.ops \
[622a358]57 result.churn.jax.ops \
[e5e2334]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 \
[622a358]63 result.cycle.jax.ns \
[8f09242]64 result.cycle.nasus.ns \
[622a358]65 result.yield.jax.ns \
[8f09242]66 result.yield.nasus.ns \
[622a358]67 result.churn.jax.ns \
[e5e2334]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 \
[622a358]73 result.cycle.low.jax.ops \
[8f09242]74 result.cycle.low.nasus.ops \
[622a358]75 result.yield.low.jax.ops \
[8f09242]76 result.yield.low.nasus.ops \
[622a358]77 result.churn.low.jax.ops \
[e5e2334]78 result.churn.low.nasus.ops \
[622a358]79 result.cycle.low.jax.ns \
[8f09242]80 result.cycle.low.nasus.ns \
[622a358]81 result.yield.low.jax.ns \
[8f09242]82 result.yield.low.nasus.ns \
[622a358]83 result.churn.low.jax.ns \
[e5e2334]84 result.churn.low.nasus.ns \
[622a358]85 result.memcd.rate.qps \
86 result.memcd.rate.99th \
[08e7590d]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 \
[8f09242]93 result.swbsrv.25gb \
[e5e2334]94 result.swbsrv.25gb.err \
[8f09242]95 SQMS
96
97PICTURES = ${addsuffix .pstex, ${FIGURES} }
[86c1f1c3]98
99PROGRAMS = ${addsuffix .tex, \
100}
101
102GRAPHS = ${addsuffix .tex, \
103}
104
105## Define the documents that need to be made.
106all: thesis.pdf
[8f09242]107build/thesis.dvi: ${TEXTS} ${PICTURES} thesis.tex glossary.tex local.bib ${LaTMac}/common.tex ${LaTMac}/common.sty ${BibRep}/pl.bib
[86c1f1c3]108
109DOCUMENT = thesis.pdf
110BASE = ${basename ${DOCUMENT}}
111
112# Directives #
113
[b20465a]114.NOTPARALLEL: # cannot make in parallel
115
[86c1f1c3]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}
[bace538]132 # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
133 if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
[86c1f1c3]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 $@}
[bace538]142 # Make index from *.aux entries and input index at end of document
143 -makeindex ${basename $@}.idx
[86c1f1c3]144 # Run again to finish citations
145 ${LaTeX} $<
146
[a44514e]147%.tty: build/%.dvi
148 dvi2tty -w132 $< > $@
149
[86c1f1c3]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
[c04a19e]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
[b20465a]171build/fairness.svg : fig/fairness.py | ${Build}
172 python3 $< $@
[5ce9bea]173
[8f09242]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
[6db62fa]178
[8f09242]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
[08e7590d]186yield_jax_ns_FLAGS = --MaxY=4000
187yield_low_jax_ns_FLAGS = --MaxY=4000
[622a358]188
[e5e2334]189yield_nasus_ops_FLAGS = --MaxY=1500000000
190yield_low_nasus_ops_FLAGS = --MaxY=1500000000
[08e7590d]191yield_nasus_ns_FLAGS = --MaxY=1500
192yield_low_nasus_ns_FLAGS = --MaxY=1500
[e5e2334]193
194churn_jax_ops_FLAGS = --MaxY=50000000
195churn_low_jax_ops_FLAGS = --MaxY=50000000
[507d48d]196churn_jax_ns_FLAGS = --MaxY=10000
197churn_low_jax_ns_FLAGS = --MaxY=10000
[e5e2334]198
199churn_nasus_ops_FLAGS = --MaxY=75000000
200churn_low_nasus_ops_FLAGS = --MaxY=75000000
[507d48d]201churn_nasus_ns_FLAGS = --MaxY=5000
202churn_low_nasus_ns_FLAGS = --MaxY=5000
[e5e2334]203
[c702d21]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
[8f09242]214build/result.%.ns.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build}
[622a358]215 ../../../../benchmark/plot.py -f $< -o $@ -y "ns per ops/procs" $($(subst .,_,$*)_ns_FLAGS)
216
[8f09242]217build/result.%.ops.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build}
[622a358]218 ../../../../benchmark/plot.py -f $< -o $@ -y "Ops per second" $($(subst .,_,$*)_ops_FLAGS)
219
[8f09242]220build/result.memcd.rate.qps.svg : data/memcd.rate Makefile ../../../../benchmark/plot.py | ${Build}
[08e7590d]221 ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS" --MaxY=750000
[622a358]222
[8f09242]223build/result.memcd.rate.99th.svg : data/memcd.rate Makefile ../../../../benchmark/plot.py | ${Build}
[622a358]224 ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS"
[6db62fa]225
[5378f33]226build/result.memcd.forall.qps.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build}
[08e7590d]227 ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS" --filter forall --MaxY=700000
228
[5378f33]229build/result.memcd.forall.lat.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build}
[08e7590d]230 ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS" --filter forall --MaxY=1
231
[5378f33]232build/result.memcd.vanilla.qps.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build}
[08e7590d]233 ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS" --filter vanilla --MaxY=700000
234
[5378f33]235build/result.memcd.vanilla.lat.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build}
[08e7590d]236 ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS" --filter vanilla --MaxY=1
237
[5378f33]238build/result.memcd.fibre.qps.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build}
[08e7590d]239 ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS" --filter fibre --MaxY=700000
240
[5378f33]241build/result.memcd.fibre.lat.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build}
[08e7590d]242 ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS" --filter fibre --MaxY=1
243
[8f09242]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
[e5e2334]250build/result.swbsrv.%.err.svg : build/swbsrv.% Makefile ../../../../benchmark/plot.py | ${Build}
251 ../../../../benchmark/plot.py -f $< -o $@ -y "Errors" -x "Request Rate"
252
[86c1f1c3]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.