## Define the configuration variables. Build = build Figures = img LaTMac = ../../../LaTeXmacros BibRep = ../../../bibliography Macros = ${LaTMac} TeXLIB = .:${Macros}:${Build}:${BibRep}: LaTeX = TEXINPUTS=${TeXLIB} && export TEXINPUTS && latex -halt-on-error -output-directory=${Build} BibTeX = BIBINPUTS=${TeXLIB} && export BIBINPUTS && bibtex MAKEFLAGS = --no-print-directory # --silent VPATH = ${Build} ${Figures} ## Define the text source files. TEXTS = ${addprefix text/, ${addsuffix .tex, \ front \ intro \ existing \ runtime \ core \ practice \ io \ eval_micro \ eval_macro \ }} FIGURES = base \ base_avg \ base_ts2 \ cache-share \ cache-noshare \ empty \ emptybit \ emptytls \ emptytree \ executionStates \ fairness \ idle \ idle1 \ idle2 \ idle_state \ io_uring \ pivot_ring \ MQMS \ MQMSG \ system \ cycle \ result.cycle.jax.ops \ result.cycle.nasus.ops \ result.yield.jax.ops \ result.yield.nasus.ops \ result.churn.jax.ops \ result.churn.nasus.ops \ result.locality.share.jax.ops \ result.locality.share.nasus.ops \ result.locality.noshare.jax.ops \ result.locality.noshare.nasus.ops \ result.cycle.jax.ns \ result.cycle.nasus.ns \ result.yield.jax.ns \ result.yield.nasus.ns \ result.churn.jax.ns \ result.churn.nasus.ns \ result.locality.share.jax.ns \ result.locality.share.nasus.ns \ result.locality.noshare.jax.ns \ result.locality.noshare.nasus.ns \ result.cycle.low.jax.ops \ result.cycle.low.nasus.ops \ result.yield.low.jax.ops \ result.yield.low.nasus.ops \ result.churn.low.jax.ops \ result.churn.low.nasus.ops \ result.cycle.low.jax.ns \ result.cycle.low.nasus.ns \ result.yield.low.jax.ns \ result.yield.low.nasus.ns \ result.churn.low.jax.ns \ result.churn.low.nasus.ns \ result.memcd.updt.qps \ result.memcd.updt.lat \ result.memcd.rate.qps \ result.memcd.rate.99th \ result.swbsrv.25gb \ result.swbsrv.25gb.err \ SQMS PICTURES = ${addsuffix .pstex, ${FIGURES} } PROGRAMS = ${addsuffix .tex, \ } GRAPHS = ${addsuffix .tex, \ } ## Define the documents that need to be made. all: thesis.pdf build/thesis.dvi: ${TEXTS} ${PICTURES} thesis.tex glossary.tex local.bib ${LaTMac}/common.tex ${LaTMac}/common.sty ${BibRep}/pl.bib DOCUMENT = thesis.pdf BASE = ${basename ${DOCUMENT}} # Directives # .NOTPARALLEL: # cannot make in parallel .PHONY : all clean # not file names all : ${DOCUMENT} clean : @rm -frv ${DOCUMENT} ${BASE}.ps ${Build} # File Dependencies # %.pdf : build/%.ps | ${Build} ps2pdf $< build/%.ps : build/%.dvi | ${Build} dvips $< -o $@ build/%.dvi : %.tex Makefile | ${Build} # Conditionally create an empty *.ind (index) file for inclusion until makeindex is run. if [ ! -r ${basename $@}.ind ] ; then touch ${basename $@}.ind ; fi # Must have *.aux file containing citations for bibtex if [ ! -r ${basename $@}.aux ] ; then ${LaTeX} $< ; fi -${BibTeX} ${basename $@} # Some citations reference others so run again to resolve these citations ${LaTeX} $< -${BibTeX} ${basename $@} # Make index from *.aux entries and input index at end of document -makeglossaries -q -s ${basename $@}.ist ${basename $@} # Make index from *.aux entries and input index at end of document -makeindex ${basename $@}.idx # Run again to finish citations ${LaTeX} $< ## Define the default recipes. ${Build}: mkdir -p ${Build} %.tex : fig/%.fig | ${Build} fig2dev -L eepic $< > ${Build}/$@ %.ps : fig/%.fig | ${Build} fig2dev -L ps $< > ${Build}/$@ %.pstex : fig/%.fig | ${Build} fig2dev -L pstex $< > ${Build}/$@ fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t %.pstex : build/%.svg | ${Build} inkscape -z -D --file=$< --export-eps=${Build}/$@ --export-latex mv ${Build}/$@_tex ${Build}/$@_t echo "sed -i 's/$@/${Build}/$@/g' ${Build}/$@_t" sed -i 's/$@/${Build}\/$@/g' ${Build}/$@_t build/fairness.svg : fig/fairness.py | ${Build} python3 $< $@ cycle_jax_ops_FLAGS = --MaxY=500000000 cycle_low_jax_ops_FLAGS = --MaxY=500000000 cycle_jax_ns_FLAGS = --MaxY=4000 cycle_low_jax_ns_FLAGS = --MaxY=4000 cycle_nasus_ops_FLAGS = --MaxY=1250000000 cycle_low_nasus_ops_FLAGS = --MaxY=1250000000 cycle_nasus_ns_FLAGS = --MaxY=1500 cycle_low_nasus_ns_FLAGS = --MaxY=1500 yield_jax_ops_FLAGS = --MaxY=1000000000 yield_low_jax_ops_FLAGS = --MaxY=1000000000 yield_jax_ns_FLAGS = --MaxY=1500 yield_low_jax_ns_FLAGS = --MaxY=1500 yield_nasus_ops_FLAGS = --MaxY=1500000000 yield_low_nasus_ops_FLAGS = --MaxY=1500000000 yield_nasus_ns_FLAGS = --MaxY=100000 yield_low_nasus_ns_FLAGS = --MaxY=100000 churn_jax_ops_FLAGS = --MaxY=50000000 churn_low_jax_ops_FLAGS = --MaxY=50000000 churn_jax_ns_FLAGS = --MaxY=20000 churn_low_jax_ns_FLAGS = --MaxY=20000 churn_nasus_ops_FLAGS = --MaxY=75000000 churn_low_nasus_ops_FLAGS = --MaxY=75000000 churn_nasus_ns_FLAGS = --MaxY=20000 churn_low_nasus_ns_FLAGS = --MaxY=20000 build/result.%.ns.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build} ../../../../benchmark/plot.py -f $< -o $@ -y "ns per ops/procs" $($(subst .,_,$*)_ns_FLAGS) build/result.%.ops.svg : data/% Makefile ../../../../benchmark/plot.py | ${Build} ../../../../benchmark/plot.py -f $< -o $@ -y "Ops per second" $($(subst .,_,$*)_ops_FLAGS) build/result.memcd.updt.qps.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build} ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Update Ratio" build/result.memcd.updt.lat.svg : data/memcd.updt Makefile ../../../../benchmark/plot.py | ${Build} ../../../../benchmark/plot.py -f $< -o $@ -y "Average Read Latency" -x "Update Ratio" build/result.memcd.rate.qps.svg : data/memcd.rate Makefile ../../../../benchmark/plot.py | ${Build} ../../../../benchmark/plot.py -f $< -o $@ -y "Actual QPS" -x "Target QPS" build/result.memcd.rate.99th.svg : data/memcd.rate Makefile ../../../../benchmark/plot.py | ${Build} ../../../../benchmark/plot.py -f $< -o $@ -y "Tail Read Latency" -x "Target QPS" build/swbsrv.% : data/swbsrv.%.nginx data/swbsrv.%.cfa Makefile ../../../../benchmark/process-trun.py | ${Build} ../../../../benchmark/process-trun.py --out $@ $^ build/result.swbsrv.%.svg : build/swbsrv.% Makefile ../../../../benchmark/plot.py | ${Build} ../../../../benchmark/plot.py -f $< -o $@ -y "Data Rate" -x "Request Rate" build/result.swbsrv.%.err.svg : build/swbsrv.% Makefile ../../../../benchmark/plot.py | ${Build} ../../../../benchmark/plot.py -f $< -o $@ -y "Errors" -x "Request Rate" ## pstex with inverted colors %.dark.pstex : fig/%.fig Makefile | ${Build} fig2dev -L pstex $< > ${Build}/$@ sed -i 's/\/col-1 {0 setgray} bind def/\/col-1 {1 setgray} bind def/g' ${Build}/$@ 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}/$@ 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}/$@ fig2dev -L pstex_t -p ${Build}/$@ $< > ${Build}/$@_t # Local Variables: # # compile-command: "make" # # End: #