| 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 |
|
|---|
| 14 | MAKEFLAGS = --no-print-directory # --silent
|
|---|
| 15 | VPATH = ${Build} ${Figures}
|
|---|
| 16 |
|
|---|
| 17 | ## Define the text source files.
|
|---|
| 18 | TEXTS = ${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 |
|
|---|
| 30 | FIGURES = 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 |
|
|---|
| 91 | PICTURES = ${addsuffix .pstex, ${FIGURES} }
|
|---|
| 92 |
|
|---|
| 93 | PROGRAMS = ${addsuffix .tex, \
|
|---|
| 94 | }
|
|---|
| 95 |
|
|---|
| 96 | GRAPHS = ${addsuffix .tex, \
|
|---|
| 97 | }
|
|---|
| 98 |
|
|---|
| 99 | ## Define the documents that need to be made.
|
|---|
| 100 | all: thesis.pdf
|
|---|
| 101 | build/thesis.dvi: ${TEXTS} ${PICTURES} thesis.tex glossary.tex local.bib ${LaTMac}/common.tex ${LaTMac}/common.sty ${BibRep}/pl.bib
|
|---|
| 102 |
|
|---|
| 103 | DOCUMENT = thesis.pdf
|
|---|
| 104 | BASE = ${basename ${DOCUMENT}}
|
|---|
| 105 |
|
|---|
| 106 | # Directives #
|
|---|
| 107 |
|
|---|
| 108 | .NOTPARALLEL: # cannot make in parallel
|
|---|
| 109 |
|
|---|
| 110 | .PHONY : all clean # not file names
|
|---|
| 111 |
|
|---|
| 112 | all : ${DOCUMENT}
|
|---|
| 113 |
|
|---|
| 114 | clean :
|
|---|
| 115 | @rm -frv ${DOCUMENT} ${BASE}.ps ${Build}
|
|---|
| 116 |
|
|---|
| 117 | # File Dependencies #
|
|---|
| 118 |
|
|---|
| 119 | %.pdf : build/%.ps | ${Build}
|
|---|
| 120 | ps2pdf $<
|
|---|
| 121 |
|
|---|
| 122 | build/%.ps : build/%.dvi | ${Build}
|
|---|
| 123 | dvips $< -o $@
|
|---|
| 124 |
|
|---|
| 125 | build/%.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 |
|
|---|
| 162 | build/fairness.svg : fig/fairness.py | ${Build}
|
|---|
| 163 | python3 $< $@
|
|---|
| 164 |
|
|---|
| 165 | cycle_jax_ops_FLAGS = --MaxY=500000000
|
|---|
| 166 | cycle_low_jax_ops_FLAGS = --MaxY=500000000
|
|---|
| 167 | cycle_jax_ns_FLAGS = --MaxY=4000
|
|---|
| 168 | cycle_low_jax_ns_FLAGS = --MaxY=4000
|
|---|
| 169 |
|
|---|
| 170 | cycle_nasus_ops_FLAGS = --MaxY=1250000000
|
|---|
| 171 | cycle_low_nasus_ops_FLAGS = --MaxY=1250000000
|
|---|
| 172 | cycle_nasus_ns_FLAGS = --MaxY=1500
|
|---|
| 173 | cycle_low_nasus_ns_FLAGS = --MaxY=1500
|
|---|
| 174 |
|
|---|
| 175 | yield_jax_ops_FLAGS = --MaxY=1000000000
|
|---|
| 176 | yield_low_jax_ops_FLAGS = --MaxY=1000000000
|
|---|
| 177 | yield_jax_ns_FLAGS = --MaxY=1500
|
|---|
| 178 | yield_low_jax_ns_FLAGS = --MaxY=1500
|
|---|
| 179 |
|
|---|
| 180 | yield_nasus_ops_FLAGS = --MaxY=1500000000
|
|---|
| 181 | yield_low_nasus_ops_FLAGS = --MaxY=1500000000
|
|---|
| 182 | yield_nasus_ns_FLAGS = --MaxY=100000
|
|---|
| 183 | yield_low_nasus_ns_FLAGS = --MaxY=100000
|
|---|
| 184 |
|
|---|
| 185 | churn_jax_ops_FLAGS = --MaxY=50000000
|
|---|
| 186 | churn_low_jax_ops_FLAGS = --MaxY=50000000
|
|---|
| 187 | churn_jax_ns_FLAGS = --MaxY=20000
|
|---|
| 188 | churn_low_jax_ns_FLAGS = --MaxY=20000
|
|---|
| 189 |
|
|---|
| 190 | churn_nasus_ops_FLAGS = --MaxY=75000000
|
|---|
| 191 | churn_low_nasus_ops_FLAGS = --MaxY=75000000
|
|---|
| 192 | churn_nasus_ns_FLAGS = --MaxY=20000
|
|---|
| 193 | churn_low_nasus_ns_FLAGS = --MaxY=20000
|
|---|
| 194 |
|
|---|
| 195 | build/result.%.ns.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build}
|
|---|
| 196 | ../../../../benchmark/plot.py -f $< -o $@ -y "ns per ops/procs" $($(subst .,_,$*)_ns_FLAGS)
|
|---|
| 197 |
|
|---|
| 198 | build/result.%.ops.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build}
|
|---|
| 199 | ../../../../benchmark/plot.py -f $< -o $@ -y "Ops per second" $($(subst .,_,$*)_ops_FLAGS)
|
|---|
| 200 |
|
|---|
| 201 | build/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 |
|
|---|
| 204 | build/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 |
|
|---|
| 207 | build/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 |
|
|---|
| 210 | build/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 |
|
|---|
| 213 | build/swbsrv.% : data/swbsrv.%.nginx data/swbsrv.%.cfa Makefile ../../../../benchmark/process-trun.py | ${Build}
|
|---|
| 214 | ../../../../benchmark/process-trun.py --out $@ $^
|
|---|
| 215 |
|
|---|
| 216 | build/result.swbsrv.%.svg : build/swbsrv.% Makefile ../../../../benchmark/plot.py | ${Build}
|
|---|
| 217 | ../../../../benchmark/plot.py -f $< -o $@ -y "Data Rate" -x "Request Rate"
|
|---|
| 218 |
|
|---|
| 219 | build/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: #
|
|---|