source: doc/theses/thierry_delisle_PhD/thesis/Makefile @ 511a9368

ADTast-experimentalpthread-emulation
Last change on this file since 511a9368 was e5e2334, checked in by Thierry Delisle <tdelisle@…>, 2 years ago

Updated makefile and data plotting

  • Property mode set to 100644
File size: 6.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.updt.qps \
84        result.memcd.updt.lat \
85        result.memcd.rate.qps \
86        result.memcd.rate.99th \
87        result.swbsrv.25gb \
88        result.swbsrv.25gb.err \
89        SQMS
90
91PICTURES = ${addsuffix .pstex, ${FIGURES} }
92
93PROGRAMS = ${addsuffix .tex, \
94}
95
96GRAPHS = ${addsuffix .tex, \
97}
98
99## Define the documents that need to be made.
100all: thesis.pdf
101build/thesis.dvi: ${TEXTS} ${PICTURES} thesis.tex glossary.tex local.bib ${LaTMac}/common.tex ${LaTMac}/common.sty ${BibRep}/pl.bib
102
103DOCUMENT = thesis.pdf
104BASE = ${basename ${DOCUMENT}}
105
106# Directives #
107
108.NOTPARALLEL:                                           # cannot make in parallel
109
110.PHONY : all clean                                      # not file names
111
112all : ${DOCUMENT}
113
114clean :
115        @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
116
117# File Dependencies #
118
119%.pdf : build/%.ps | ${Build}
120        ps2pdf $<
121
122build/%.ps : build/%.dvi | ${Build}
123        dvips $< -o $@
124
125build/%.dvi : %.tex Makefile | ${Build}
126        # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run.
127        if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi
128        # Must have *.aux file containing citations for bibtex
129        if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} $< ; fi
130        -${BibTeX} ${basename $@}
131        # Some citations reference others so run again to resolve these citations
132        ${LaTeX} $<
133        -${BibTeX} ${basename $@}
134        # Make index from *.aux entries and input index at end of document
135        -makeglossaries -q -s ${basename $@}.ist ${basename $@}
136        # Make index from *.aux entries and input index at end of document
137        -makeindex ${basename $@}.idx
138        # Run again to finish citations
139        ${LaTeX} $<
140
141## Define the default recipes.
142
143${Build}:
144        mkdir -p ${Build}
145
146%.tex : fig/%.fig | ${Build}
147        fig2dev -L eepic $< > ${Build}/$@
148
149%.ps : fig/%.fig | ${Build}
150        fig2dev -L ps $< > ${Build}/$@
151
152%.pstex : fig/%.fig | ${Build}
153        fig2dev -L pstex $< > ${Build}/$@
154        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
155
156%.pstex : build/%.svg | ${Build}
157        inkscape -z -D --file=$< --export-eps=${Build}/$@ --export-latex
158        mv ${Build}/$@_tex ${Build}/$@_t
159        echo "sed -i 's/$@/${Build}/$@/g' ${Build}/$@_t"
160        sed -i 's/$@/${Build}\/$@/g' ${Build}/$@_t
161
162build/fairness.svg : fig/fairness.py | ${Build}
163        python3 $< $@
164
165cycle_jax_ops_FLAGS = --MaxY=500000000
166cycle_low_jax_ops_FLAGS = --MaxY=500000000
167cycle_jax_ns_FLAGS = --MaxY=4000
168cycle_low_jax_ns_FLAGS = --MaxY=4000
169
170cycle_nasus_ops_FLAGS = --MaxY=1250000000
171cycle_low_nasus_ops_FLAGS = --MaxY=1250000000
172cycle_nasus_ns_FLAGS = --MaxY=1500
173cycle_low_nasus_ns_FLAGS = --MaxY=1500
174
175yield_jax_ops_FLAGS = --MaxY=1000000000
176yield_low_jax_ops_FLAGS = --MaxY=1000000000
177yield_jax_ns_FLAGS = --MaxY=1500
178yield_low_jax_ns_FLAGS = --MaxY=1500
179
180yield_nasus_ops_FLAGS = --MaxY=1500000000
181yield_low_nasus_ops_FLAGS = --MaxY=1500000000
182yield_nasus_ns_FLAGS = --MaxY=100000
183yield_low_nasus_ns_FLAGS = --MaxY=100000
184
185churn_jax_ops_FLAGS = --MaxY=50000000
186churn_low_jax_ops_FLAGS = --MaxY=50000000
187churn_jax_ns_FLAGS = --MaxY=20000
188churn_low_jax_ns_FLAGS = --MaxY=20000
189
190churn_nasus_ops_FLAGS = --MaxY=75000000
191churn_low_nasus_ops_FLAGS = --MaxY=75000000
192churn_nasus_ns_FLAGS = --MaxY=20000
193churn_low_nasus_ns_FLAGS = --MaxY=20000
194
195build/result.%.ns.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build}
196        ../../../../benchmark/plot.py -f $< -o $@ -y "ns per ops/procs" $($(subst .,_,$*)_ns_FLAGS)
197
198build/result.%.ops.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build}
199        ../../../../benchmark/plot.py -f $< -o $@ -y "Ops per second" $($(subst .,_,$*)_ops_FLAGS)
200
201build/result.memcd.updt.qps.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build}
202        ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Update Ratio"
203
204build/result.memcd.updt.lat.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build}
205        ../../../../benchmark/plot.py -f $< -o $@ -y "Average Read Latency" -x "Update Ratio"
206
207build/result.memcd.rate.qps.svg : data/memcd.rate Makefile ../../../../benchmark/plot.py | ${Build}
208        ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS"
209
210build/result.memcd.rate.99th.svg : data/memcd.rate Makefile ../../../../benchmark/plot.py | ${Build}
211        ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS"
212
213build/swbsrv.% : data/swbsrv.%.nginx data/swbsrv.%.cfa Makefile ../../../../benchmark/process-trun.py | ${Build}
214        ../../../../benchmark/process-trun.py --out $@ $^
215
216build/result.swbsrv.%.svg : build/swbsrv.% Makefile ../../../../benchmark/plot.py | ${Build}
217        ../../../../benchmark/plot.py -f $< -o $@ -y "Data Rate" -x "Request Rate"
218
219build/result.swbsrv.%.err.svg : build/swbsrv.% Makefile ../../../../benchmark/plot.py | ${Build}
220        ../../../../benchmark/plot.py -f $< -o $@ -y "Errors" -x "Request Rate"
221
222## pstex with inverted colors
223%.dark.pstex : fig/%.fig Makefile | ${Build}
224        fig2dev -L pstex $< > ${Build}/$@
225        sed -i 's/\/col-1 {0 setgray} bind def/\/col-1 {1 setgray} bind def/g' ${Build}/$@
226        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}/$@
227        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}/$@
228        fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t
229
230# Local Variables: #
231# compile-command: "make" #
232# End: #
Note: See TracBrowser for help on using the repository browser.