[86c1f1c3] | 1 | ## Define the configuration variables. |
---|
| 2 | |
---|
| 3 | Build = build |
---|
| 4 | Figures = img |
---|
[512d3dc1] | 5 | |
---|
| 6 | LaTMac = ../../../LaTeXmacros |
---|
| 7 | BibRep = ../../../bibliography |
---|
| 8 | |
---|
| 9 | Macros = ${LaTMac} |
---|
| 10 | TeXLIB = .:${Macros}:${Build}:${BibRep}: |
---|
[86c1f1c3] | 11 | LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build} |
---|
| 12 | BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex |
---|
| 13 | |
---|
[b20465a] | 14 | MAKEFLAGS = --no-print-directory # --silent |
---|
[86c1f1c3] | 15 | VPATH = ${Build} ${Figures} |
---|
| 16 | |
---|
| 17 | ## Define the text source files. |
---|
| 18 | TEXTS = ${addprefix text/, ${addsuffix .tex, \ |
---|
| 19 | front \ |
---|
| 20 | intro \ |
---|
[b9537e6] | 21 | existing \ |
---|
[86c1f1c3] | 22 | runtime \ |
---|
| 23 | core \ |
---|
| 24 | practice \ |
---|
| 25 | io \ |
---|
[36a05d7] | 26 | eval_micro \ |
---|
| 27 | eval_macro \ |
---|
[86c1f1c3] | 28 | }} |
---|
| 29 | |
---|
[8f09242] | 30 | FIGURES = base \ |
---|
[6db62fa] | 31 | base_avg \ |
---|
[2a859b5] | 32 | base_ts2 \ |
---|
[13888c0] | 33 | cache-share \ |
---|
| 34 | cache-noshare \ |
---|
[86c1f1c3] | 35 | empty \ |
---|
[c04a19e] | 36 | emptybit \ |
---|
| 37 | emptytls \ |
---|
| 38 | emptytree \ |
---|
[1f201238] | 39 | executionStates \ |
---|
[c04a19e] | 40 | fairness \ |
---|
[622a358] | 41 | idle \ |
---|
| 42 | idle1 \ |
---|
| 43 | idle2 \ |
---|
| 44 | idle_state \ |
---|
[c292244] | 45 | io_uring \ |
---|
[5ce9bea] | 46 | pivot_ring \ |
---|
[1f201238] | 47 | MQMS \ |
---|
| 48 | MQMSG \ |
---|
[b9537e6] | 49 | system \ |
---|
[36a05d7] | 50 | cycle \ |
---|
[6db62fa] | 51 | result.cycle.jax.ops \ |
---|
[8f09242] | 52 | result.cycle.nasus.ops \ |
---|
[622a358] | 53 | result.yield.jax.ops \ |
---|
[8f09242] | 54 | result.yield.nasus.ops \ |
---|
[622a358] | 55 | result.churn.jax.ops \ |
---|
| 56 | result.cycle.jax.ns \ |
---|
[8f09242] | 57 | result.cycle.nasus.ns \ |
---|
[622a358] | 58 | result.yield.jax.ns \ |
---|
[8f09242] | 59 | result.yield.nasus.ns \ |
---|
[622a358] | 60 | result.churn.jax.ns \ |
---|
| 61 | result.cycle.low.jax.ops \ |
---|
[8f09242] | 62 | result.cycle.low.nasus.ops \ |
---|
[622a358] | 63 | result.yield.low.jax.ops \ |
---|
[8f09242] | 64 | result.yield.low.nasus.ops \ |
---|
[622a358] | 65 | result.churn.low.jax.ops \ |
---|
| 66 | result.cycle.low.jax.ns \ |
---|
[8f09242] | 67 | result.cycle.low.nasus.ns \ |
---|
[622a358] | 68 | result.yield.low.jax.ns \ |
---|
[8f09242] | 69 | result.yield.low.nasus.ns \ |
---|
[622a358] | 70 | result.churn.low.jax.ns \ |
---|
| 71 | result.memcd.updt.qps \ |
---|
| 72 | result.memcd.updt.lat \ |
---|
| 73 | result.memcd.rate.qps \ |
---|
| 74 | result.memcd.rate.99th \ |
---|
[8f09242] | 75 | result.swbsrv.25gb \ |
---|
| 76 | SQMS |
---|
| 77 | |
---|
| 78 | PICTURES = ${addsuffix .pstex, ${FIGURES} } |
---|
[86c1f1c3] | 79 | |
---|
| 80 | PROGRAMS = ${addsuffix .tex, \ |
---|
| 81 | } |
---|
| 82 | |
---|
| 83 | GRAPHS = ${addsuffix .tex, \ |
---|
| 84 | } |
---|
| 85 | |
---|
| 86 | ## Define the documents that need to be made. |
---|
| 87 | all: thesis.pdf |
---|
[8f09242] | 88 | build/thesis.dvi: ${TEXTS} ${PICTURES} thesis.tex glossary.tex local.bib ${LaTMac}/common.tex ${LaTMac}/common.sty ${BibRep}/pl.bib |
---|
[86c1f1c3] | 89 | |
---|
| 90 | DOCUMENT = thesis.pdf |
---|
| 91 | BASE = ${basename ${DOCUMENT}} |
---|
| 92 | |
---|
| 93 | # Directives # |
---|
| 94 | |
---|
[b20465a] | 95 | .NOTPARALLEL: # cannot make in parallel |
---|
| 96 | |
---|
[86c1f1c3] | 97 | .PHONY : all clean # not file names |
---|
| 98 | |
---|
| 99 | all : ${DOCUMENT} |
---|
| 100 | |
---|
| 101 | clean : |
---|
| 102 | @rm -frv ${DOCUMENT} ${BASE}.ps ${Build} |
---|
| 103 | |
---|
| 104 | # File Dependencies # |
---|
| 105 | |
---|
| 106 | %.pdf : build/%.ps | ${Build} |
---|
| 107 | ps2pdf $< |
---|
| 108 | |
---|
| 109 | build/%.ps : build/%.dvi | ${Build} |
---|
| 110 | dvips $< -o $@ |
---|
| 111 | |
---|
| 112 | build/%.dvi : %.tex Makefile | ${Build} |
---|
[bace538] | 113 | # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run. |
---|
| 114 | if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi |
---|
[86c1f1c3] | 115 | # Must have *.aux file containing citations for bibtex |
---|
| 116 | if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} $< ; fi |
---|
| 117 | -${BibTeX} ${basename $@} |
---|
| 118 | # Some citations reference others so run again to resolve these citations |
---|
| 119 | ${LaTeX} $< |
---|
| 120 | -${BibTeX} ${basename $@} |
---|
| 121 | # Make index from *.aux entries and input index at end of document |
---|
| 122 | -makeglossaries -q -s ${basename $@}.ist ${basename $@} |
---|
[bace538] | 123 | # Make index from *.aux entries and input index at end of document |
---|
| 124 | -makeindex ${basename $@}.idx |
---|
[86c1f1c3] | 125 | # Run again to finish citations |
---|
| 126 | ${LaTeX} $< |
---|
| 127 | |
---|
| 128 | ## Define the default recipes. |
---|
| 129 | |
---|
| 130 | ${Build}: |
---|
| 131 | mkdir -p ${Build} |
---|
| 132 | |
---|
| 133 | %.tex : fig/%.fig | ${Build} |
---|
| 134 | fig2dev -L eepic $< > ${Build}/$@ |
---|
| 135 | |
---|
| 136 | %.ps : fig/%.fig | ${Build} |
---|
| 137 | fig2dev -L ps $< > ${Build}/$@ |
---|
| 138 | |
---|
| 139 | %.pstex : fig/%.fig | ${Build} |
---|
| 140 | fig2dev -L pstex $< > ${Build}/$@ |
---|
| 141 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t |
---|
| 142 | |
---|
[c04a19e] | 143 | %.pstex : build/%.svg | ${Build} |
---|
| 144 | inkscape -z -D --file=$< --export-eps=${Build}/$@ --export-latex |
---|
| 145 | mv ${Build}/$@_tex ${Build}/$@_t |
---|
| 146 | echo "sed -i 's/$@/${Build}/$@/g' ${Build}/$@_t" |
---|
| 147 | sed -i 's/$@/${Build}\/$@/g' ${Build}/$@_t |
---|
| 148 | |
---|
[b20465a] | 149 | build/fairness.svg : fig/fairness.py | ${Build} |
---|
| 150 | python3 $< $@ |
---|
[5ce9bea] | 151 | |
---|
[8f09242] | 152 | cycle_jax_ops_FLAGS = --MaxY=500000000 |
---|
| 153 | cycle_low_jax_ops_FLAGS = --MaxY=500000000 |
---|
| 154 | cycle_jax_ns_FLAGS = --MaxY=4000 |
---|
| 155 | cycle_low_jax_ns_FLAGS = --MaxY=4000 |
---|
[6db62fa] | 156 | |
---|
[8f09242] | 157 | cycle_nasus_ops_FLAGS = --MaxY=1250000000 |
---|
| 158 | cycle_low_nasus_ops_FLAGS = --MaxY=1250000000 |
---|
| 159 | cycle_nasus_ns_FLAGS = --MaxY=1500 |
---|
| 160 | cycle_low_nasus_ns_FLAGS = --MaxY=1500 |
---|
| 161 | |
---|
| 162 | yield_jax_ops_FLAGS = --MaxY=1000000000 |
---|
| 163 | yield_low_jax_ops_FLAGS = --MaxY=1000000000 |
---|
[622a358] | 164 | yield_jax_ns_FLAGS = --MaxY=1500 |
---|
| 165 | yield_low_jax_ns_FLAGS = --MaxY=1500 |
---|
| 166 | |
---|
[8f09242] | 167 | build/result.%.ns.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build} |
---|
[622a358] | 168 | ../../../../benchmark/plot.py -f $< -o $@ -y "ns per ops/procs" $($(subst .,_,$*)_ns_FLAGS) |
---|
| 169 | |
---|
[8f09242] | 170 | build/result.%.ops.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build} |
---|
[622a358] | 171 | ../../../../benchmark/plot.py -f $< -o $@ -y "Ops per second" $($(subst .,_,$*)_ops_FLAGS) |
---|
| 172 | |
---|
[8f09242] | 173 | build/result.memcd.updt.qps.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build} |
---|
[622a358] | 174 | ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Update Ratio" |
---|
| 175 | |
---|
[8f09242] | 176 | build/result.memcd.updt.lat.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build} |
---|
[622a358] | 177 | ../../../../benchmark/plot.py -f $< -o $@ -y "Average Read Latency" -x "Update Ratio" |
---|
| 178 | |
---|
[8f09242] | 179 | build/result.memcd.rate.qps.svg : data/memcd.rate Makefile ../../../../benchmark/plot.py | ${Build} |
---|
[622a358] | 180 | ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS" |
---|
| 181 | |
---|
[8f09242] | 182 | build/result.memcd.rate.99th.svg : data/memcd.rate Makefile ../../../../benchmark/plot.py | ${Build} |
---|
[622a358] | 183 | ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS" |
---|
[6db62fa] | 184 | |
---|
[8f09242] | 185 | build/swbsrv.% : data/swbsrv.%.nginx data/swbsrv.%.cfa Makefile ../../../../benchmark/process-trun.py | ${Build} |
---|
| 186 | ../../../../benchmark/process-trun.py --out $@ $^ |
---|
| 187 | |
---|
| 188 | build/result.swbsrv.%.svg : build/swbsrv.% Makefile ../../../../benchmark/plot.py | ${Build} |
---|
| 189 | ../../../../benchmark/plot.py -f $< -o $@ -y "Data Rate" -x "Request Rate" |
---|
| 190 | |
---|
[86c1f1c3] | 191 | ## pstex with inverted colors |
---|
| 192 | %.dark.pstex : fig/%.fig Makefile | ${Build} |
---|
| 193 | fig2dev -L pstex $< > ${Build}/$@ |
---|
| 194 | sed -i 's/\/col-1 {0 setgray} bind def/\/col-1 {1 setgray} bind def/g' ${Build}/$@ |
---|
| 195 | 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}/$@ |
---|
| 196 | 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}/$@ |
---|
| 197 | fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t |
---|
| 198 | |
---|
| 199 | # Local Variables: # |
---|
| 200 | # compile-command: "make" # |
---|
| 201 | # End: # |
---|