| 1 | ## Define the configuration variables.
|
|---|
| 2 |
|
|---|
| 3 | Build = build
|
|---|
| 4 | Figures = img
|
|---|
| 5 |
|
|---|
| 6 | LaTMac = ../../../LaTeXmacros
|
|---|
| 7 | BibRep = ../../../bibliography
|
|---|
| 8 |
|
|---|
| 9 | Macros = ${LaTMac}
|
|---|
| 10 | TeXLIB = .:${Macros}:${Build}:${BibRep}:
|
|---|
| 11 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build}
|
|---|
| 12 | BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex
|
|---|
| 13 | DeTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && detex -r
|
|---|
| 14 |
|
|---|
| 15 | MAKEFLAGS = --no-print-directory # --silent
|
|---|
| 16 | VPATH = ${Build} ${Figures}
|
|---|
| 17 |
|
|---|
| 18 | ## Define the text source files.
|
|---|
| 19 | TEXTS = ${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 |
|
|---|
| 32 | FIGURES = 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 |
|
|---|
| 97 | PICTURES = ${addsuffix .pstex, ${FIGURES} }
|
|---|
| 98 |
|
|---|
| 99 | PROGRAMS = ${addsuffix .tex, \
|
|---|
| 100 | }
|
|---|
| 101 |
|
|---|
| 102 | GRAPHS = ${addsuffix .tex, \
|
|---|
| 103 | }
|
|---|
| 104 |
|
|---|
| 105 | ## Define the documents that need to be made.
|
|---|
| 106 | all: thesis.pdf
|
|---|
| 107 | build/thesis.dvi: ${TEXTS} ${PICTURES} thesis.tex glossary.tex local.bib ${LaTMac}/common.tex ${LaTMac}/common.sty ${BibRep}/pl.bib
|
|---|
| 108 |
|
|---|
| 109 | DOCUMENT = thesis.pdf
|
|---|
| 110 | BASE = ${basename ${DOCUMENT}}
|
|---|
| 111 |
|
|---|
| 112 | # Directives #
|
|---|
| 113 |
|
|---|
| 114 | .NOTPARALLEL: # cannot make in parallel
|
|---|
| 115 |
|
|---|
| 116 | .PHONY : all clean # not file names
|
|---|
| 117 |
|
|---|
| 118 | all : ${DOCUMENT}
|
|---|
| 119 |
|
|---|
| 120 | clean :
|
|---|
| 121 | @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
|
|---|
| 122 |
|
|---|
| 123 | # File Dependencies #
|
|---|
| 124 |
|
|---|
| 125 | %.pdf : build/%.ps | ${Build}
|
|---|
| 126 | ps2pdf $<
|
|---|
| 127 |
|
|---|
| 128 | build/%.ps : build/%.dvi | ${Build}
|
|---|
| 129 | dvips $< -o $@
|
|---|
| 130 |
|
|---|
| 131 | build/%.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 |
|
|---|
| 171 | build/fairness.svg : fig/fairness.py | ${Build}
|
|---|
| 172 | python3 $< $@
|
|---|
| 173 |
|
|---|
| 174 | cycle_jax_ops_FLAGS = --MaxY=500000000
|
|---|
| 175 | cycle_low_jax_ops_FLAGS = --MaxY=500000000
|
|---|
| 176 | cycle_jax_ns_FLAGS = --MaxY=4000
|
|---|
| 177 | cycle_low_jax_ns_FLAGS = --MaxY=4000
|
|---|
| 178 |
|
|---|
| 179 | cycle_nasus_ops_FLAGS = --MaxY=1250000000
|
|---|
| 180 | cycle_low_nasus_ops_FLAGS = --MaxY=1250000000
|
|---|
| 181 | cycle_nasus_ns_FLAGS = --MaxY=1500
|
|---|
| 182 | cycle_low_nasus_ns_FLAGS = --MaxY=1500
|
|---|
| 183 |
|
|---|
| 184 | yield_jax_ops_FLAGS = --MaxY=1000000000
|
|---|
| 185 | yield_low_jax_ops_FLAGS = --MaxY=1000000000
|
|---|
| 186 | yield_jax_ns_FLAGS = --MaxY=4000
|
|---|
| 187 | yield_low_jax_ns_FLAGS = --MaxY=4000
|
|---|
| 188 |
|
|---|
| 189 | yield_nasus_ops_FLAGS = --MaxY=1500000000
|
|---|
| 190 | yield_low_nasus_ops_FLAGS = --MaxY=1500000000
|
|---|
| 191 | yield_nasus_ns_FLAGS = --MaxY=1500
|
|---|
| 192 | yield_low_nasus_ns_FLAGS = --MaxY=1500
|
|---|
| 193 |
|
|---|
| 194 | churn_jax_ops_FLAGS = --MaxY=50000000
|
|---|
| 195 | churn_low_jax_ops_FLAGS = --MaxY=50000000
|
|---|
| 196 | churn_jax_ns_FLAGS = --MaxY=10000
|
|---|
| 197 | churn_low_jax_ns_FLAGS = --MaxY=10000
|
|---|
| 198 |
|
|---|
| 199 | churn_nasus_ops_FLAGS = --MaxY=75000000
|
|---|
| 200 | churn_low_nasus_ops_FLAGS = --MaxY=75000000
|
|---|
| 201 | churn_nasus_ns_FLAGS = --MaxY=5000
|
|---|
| 202 | churn_low_nasus_ns_FLAGS = --MaxY=5000
|
|---|
| 203 |
|
|---|
| 204 | locality_share_jax_ops_FLAGS = --MaxY=40000000
|
|---|
| 205 | locality_noshare_jax_ops_FLAGS = --MaxY=40000000
|
|---|
| 206 | locality_share_jax_ns_FLAGS = --MaxY=10000
|
|---|
| 207 | locality_noshare_jax_ns_FLAGS = --MaxY=10000
|
|---|
| 208 |
|
|---|
| 209 | locality_share_nasus_ops_FLAGS = --MaxY=60000000
|
|---|
| 210 | locality_noshare_nasus_ops_FLAGS = --MaxY=60000000
|
|---|
| 211 | locality_share_nasus_ns_FLAGS = --MaxY=10000
|
|---|
| 212 | locality_noshare_nasus_ns_FLAGS = --MaxY=10000
|
|---|
| 213 |
|
|---|
| 214 | build/result.%.ns.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build}
|
|---|
| 215 | ../../../../benchmark/plot.py -f $< -o $@ -y "ns per ops/procs" $($(subst .,_,$*)_ns_FLAGS)
|
|---|
| 216 |
|
|---|
| 217 | build/result.%.ops.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build}
|
|---|
| 218 | ../../../../benchmark/plot.py -f $< -o $@ -y "Ops per second" $($(subst .,_,$*)_ops_FLAGS)
|
|---|
| 219 |
|
|---|
| 220 | build/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 |
|
|---|
| 223 | build/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 |
|
|---|
| 226 | build/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 |
|
|---|
| 229 | build/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 |
|
|---|
| 232 | build/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 |
|
|---|
| 235 | build/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 |
|
|---|
| 238 | build/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 |
|
|---|
| 241 | build/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 |
|
|---|
| 244 | build/swbsrv.% : data/swbsrv.%.nginx data/swbsrv.%.cfa Makefile ../../../../benchmark/process-trun.py | ${Build}
|
|---|
| 245 | ../../../../benchmark/process-trun.py --out $@ $^
|
|---|
| 246 |
|
|---|
| 247 | build/result.swbsrv.%.svg : build/swbsrv.% Makefile ../../../../benchmark/plot.py | ${Build}
|
|---|
| 248 | ../../../../benchmark/plot.py -f $< -o $@ -y "Data Rate" -x "Request Rate"
|
|---|
| 249 |
|
|---|
| 250 | build/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: #
|
|---|