-
Notifications
You must be signed in to change notification settings - Fork 0
/
thesis-main.tex
461 lines (396 loc) · 14.1 KB
/
thesis-main.tex
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
% use pdf version 1.4
\pdfoptionpdfminorversion=4
\documentclass[twoside, 11pt, a4paper]{report}
% In- and Output Encoding %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[utf8]{inputenc}
\usepackage{cmap}
\usepackage[T1]{fontenc}
\usepackage{fix-cm}
% Document Metadata %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\def\Author {Anselm Busse}
\def\Title {SSD-basiertes Caching von Blockgeräten}
\def\Subject {Diplomarbeit}
\def\Keywords {SSD, HDD, Cache, Blockgerät}
% Definitions for conditional document processing %%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Define macro to set options
\usepackage{keyval}
\def\setoptions#1{\setkeys{opts}{#1}}
% Draft option
% Usage: \setoptions{draft} or \setoptions{draft=true} for draft version.
% \setoptions{draft=false} (or comment out) for final version
\newif\ifdraft\draftfalse
\makeatletter
\define@key{opts}{draft}[true]%
{\def\tempa{true}\def\tempb{#1}%
\ifx\tempa\tempb%
\drafttrue%
\else%
\draftfalse%
\fi}%
\makeatother
% Options %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% For final version comment out the following line
\setoptions{draft=false}
% Included packages %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\usepackage[a-1b]{pdfx}
\usepackage[ngerman]{babel}
\usepackage[babel,german=quotes]{csquotes}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{wasysym}
\usepackage{amsfonts}
\usepackage{xspace}
\usepackage[a4paper,twoside,centering,hmargin={3cm, 3cm},vmargin={3cm,3cm}]{geometry}
\usepackage{fancyhdr}
\usepackage{sectsty}
\usepackage{color}
\usepackage[subfigure]{tocloft}
\usepackage{subfigure}
\usepackage[hang]{caption2}
\usepackage[hang, bottom]{footmisc}
\usepackage{listings}
\usepackage{mdwlist}
\usepackage[normalem]{ulem}
\usepackage{makeidx}
\usepackage{extramarks}
\usepackage{float}
\usepackage{textcomp}
\usepackage[]{acronym}
\usepackage{array}
\usepackage{chngcntr}
\usepackage{arrayjobx}
\usepackage{trimspaces}
\usepackage{xstring}
\usepackage{graphicx}
\usepackage{tikz}
\usepackage{pgfplots, pgfplotstable}
% Use a recent version for tikz and pgf plotting
\pgfplotsset{compat=1.14}
\usepgfplotslibrary{colorbrewer}
\pgfplotsset{cycle list/Dark2}
\usepgfplotslibrary{groupplots}
\usetikzlibrary{calc}
\usetikzlibrary{patterns}
\usetikzlibrary{arrows,arrows.meta}
\usetikzlibrary{decorations.pathreplacing,calligraphy}
\usetikzlibrary{intersections}
\usetikzlibrary{positioning}
\usetikzlibrary{automata}
\usetikzlibrary{backgrounds}
\tikzset{
%Define standard arrow tip
>=stealth'
}
\makeatletter
\def\trimspace#1{\trim@spaces@in{#1}}
\makeatother
\newcommand\irregularlineh[2]{%
let \n1 = {rand*(#1)} in
+(0,0)
\foreach \a in {0.2,0.3,...,#2}{
let \n1 = {rand*(#1)} in
-- +(\a-0.1,\n1)
} -- +(#2,0)
} % #1=seed, #2=length of horizontal line
\newcommand\irregularlinev[2]{%
let \n1 = {rand*(#1)} in
+(0,0)
\foreach \a in {0.2,0.3,...,#2}{
let \n1 = {rand*(#1)} in
-- +(\n1,\a-0.1)
} -- +(0,#2)
} % #1=seed, #2=length of horizontal line
\newcommand{\includetikz}[2][1]{\scalebox{#1}{\input{#2.tikz}}}
\hypersetup{final, %links are only inserted in final mode
%pdfpagemode={UseOutlines},
pdfauthor={\Author},%
pdftitle={\Title},%
pdfsubject={\Subject},%
pdfkeywords={\Keywords},%
bookmarksopen=false,bookmarksopenlevel=0,
bookmarksnumbered=true,
hypertexnames=false,
pdfstartview={FitV},
colorlinks=false,linkcolor={black},citecolor={black},urlcolor={black},
linktoc=all,
breaklinks=true,
%pagebackref=true,
plainpages=false,
pageanchor=true,
hidelinks,
%backref=page,
}
\PassOptionsToPackage{dvipsnames}{xcolor}
\usepackage[
backend=biber,
bibencoding = utf8,
defernumbers=true,
natbib = true,
style = numeric-comp,
giveninits=true,
maxnames = 12,
minnames = 1,
maxcitenames=2,
backref = false,
backrefstyle = two,
defernumbers = true,
isbn=true,
doi=true]{biblatex}
\addbibresource{bibliography.bib}
% only print isbn or issn if doi is not present
\DeclareSourcemap{
\maps[datatype=bibtex]{
\map{
\step[fieldsource=doi,final]
\step[fieldset=isbn,null]
}
\map{
\step[fieldsource=doi,final]
\step[fieldset=issn,null]
}
}
}
\DeclareBibliographyDriver{standard}{%
\usebibmacro{bibindex}%
\usebibmacro{begentry}%
\usebibmacro{author/translator+others}%
\newunit\newblock
\usebibmacro{byeditor+others}%
\setunit{\labelnamepunct}\newblock
\usebibmacro{title}%
\newunit\newblock
\printfield{number}%
\setunit{\addspace}\newblock
\printfield[parens]{type}%
\newunit\newblock
\usebibmacro{location+date}%
\newunit\newblock
\iftoggle{bbx:url}
{\usebibmacro{url+urldate}}
{}%
\newunit\newblock
\usebibmacro{addendum+pubstate}%
\setunit{\bibpagerefpunct}\newblock
\usebibmacro{pageref}%
\newunit\newblock
\usebibmacro{related}%
\usebibmacro{finentry}
}
% Page setup via geometry package %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\geometry{a4paper,twoside,centering}
\geometry{hmargin={3cm, 3cm},vmargin={3cm,3cm}}
% Helpful macros and definitions %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Calculation of current time based on counter \time (minutes since midnight)
% Usage: \now
\newcount\myhours
\newcount\myminutes
\myhours = \time \divide \myhours by 60
\myminutes = \time \multiply \myhours by 60 \advance \myminutes by -\myhours
\divide \myhours by 60
\def\now{\ifnum\myhours<10{}0\fi\number\myhours:\ifnum\myminutes<10{}0\fi\number\myminutes}
% Pretty printing of listings
\makeatletter
\@ifpackageloaded{listings}{%
\lstset{%
keywords={Input,Output,if,then,endif,else,procedure,begin,end,for,forall,foreach,do,return,loop,program,function,case,break,switch,endswitch,endfor,endforall,repeat,until,endloop,sync,endsync,private,and,or,not,send,while},
basicstyle=\footnotesize \sffamily,%
stringstyle={\underbar},
keywordstyle=\bfseries,%
commentstyle=\rm \it \footnotesize,
morecomment=[l]{//},
escapeinside={(*}{*)},
numberstyle=\tiny,% size of line numbers
stepnumber=1,% show every 5th line number
numbers=left,% line numbers on the left
numbersep=5pt,
xleftmargin=4ex,
texcl=true,% allow TeX code in comments
columns=[l]flexible, %
firstnumber=auto,
mathescape=true,% maintain meaning of $ signs (escape to math mode) $
frame=lines,% use a line above and below the listing for separation
captionpos=b,% print the caption below the listing
aboveskip=16pt% space above the listing
}
\newcommand{\thelstlisting}{\arabic{lstlisting}}
}{}
\makeatother
% Show defined labels in draft mode
\ifdraft
\usepackage[outer,draft]{showlabels}
\renewcommand{\showlabelfont}{\scriptsize\sf}
\fi
% Adds a <line> to the Table of Contents (TOC)
% Usage: \addtotoc{<line>}
\newcommand{\addtotoc}[1]{
\ifnum0=\csname c@section\endcsname
\def\myLevel{section}
\def\myEntry{#1}
\else
\ifnum0=\csname c@subsection\endcsname
\def\myLevel{section}
\def\myEntry{\protect\numberline{}{#1}}
\else
\def\myLevel{subsection}
\def\myEntry{\protect\numberline{}{#1}}
\fi
\fi
\addcontentsline{toc}{\myLevel}{\myEntry}
}
% Prints source code identifiers such as method and class names using a
% differint font, i.e., courier
% Usage: \code{<method>}
\newcommand{\code}[1]{\texttt{#1}}
% Defines a TODO <aspect> that is only visible in draft mode
% Usage: \TODO{<aspect>} simply adds a blue todo to the text
% \TODO[<description>]{<aspect>} also adds <description> to the TOC
\ifdraft
\newcommand{\TODO}[2][@]{
{\textcolor{blue}{[TODO: #2]}}
\ifx#1@
\else
\addtotoc{\textcolor{blue}{TODO: #1}}
\fi
}
\else
\newcommand{\TODO}[2][@]{}
\fi
% Underlines <passage>s that should be checked later (visible in draft mode)
% Usage \CHECK{<passage>}
\ifdraft
\newcommand{\CHECK}[1]{\uwave{#1}}
\else
\newcommand{\CHECK}[1]{#1}
\fi
% Alternative to commenting out <paragraphs>
% Usage: \FORGET{<paragraphs>}
\ifdraft
\newcommand{\FORGET}[1]{\sout{#1}}
\else
\newcommand{\FORGET}[1]{}
\fi
\newcommand{\breakL}[1]{\begin{tabular}{l}#1\end{tabular}}
\newcommand{\breakC}[1]{\begin{tabular}{c}#1\end{tabular}}
\newcommand{\breakR}[1]{\begin{tabular}{r}#1\end{tabular}}
% Fonts %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Font definitions
\newcommand{\titleFont}{\fontfamily{cmss}\fontseries{m}\fontshape{n}\selectfont}
\newcommand{\titleFontBold}{\fontfamily{cmss}\fontseries{bx}\fontshape{n}\selectfont}
\newcommand{\titleFontSlanted}{\fontfamily{cmss}\fontseries{m}\fontshape{sl}\selectfont}
\newcommand{\textFont}{\fontfamily{cmr}\fontseries{m}\fontshape{n}\selectfont}
\newcommand{\textFontBold}{\fontfamily{cmr}\fontseries{bx}\fontshape{n}\selectfont}
\newcommand{\textFontSlanted}{\fontfamily{cmr}\fontseries{m}\fontshape{sl}\selectfont}
\newcommand{\textFontItalic}{\fontfamily{cmr}\fontseries{m}\fontshape{it}\selectfont}
% Set fonts for headlines, tables, and listings
\allsectionsfont{\titleFontBold}
\renewcommand{\cfttoctitlefont}{\titleFontBold\Huge}
\renewcommand{\cftloftitlefont}{\titleFontBold\Huge}
\renewcommand{\cftchapfont}{\titleFontBold}
\renewcommand{\cftchappagefont}{\titleFontBold}
% Page Layout %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Standard header and footer
\pagestyle{fancy}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ \MakeUppercase{#1}}{}}
\renewcommand{\sectionmark}[1]{\markright{\thesection\ \MakeUppercase{#1}}}
\renewcommand{\headrulewidth}{0pt}
\fancyhead{}
\fancyhead[RE]{\titleFont\leftmark}
\fancyhead[LO]{\titleFont\rightmark}
\fancyhead[LE,RO]{\titleFont\thepage}
\ifdraft
\fancyfoot[C]{\today, \now}
\else
\fancyfoot{}
\fi
% header and footer on other pages
\fancypagestyle{plain}{
\fancyhead{}
\renewcommand{\headrulewidth}{0pt}
\fancyfoot[CE,CO]{\titleFont\thepage}
}
\setlength{\headheight}{14pt}
% Paragraphs and footnotes
\setlength\parskip{\medskipamount}
\setlength\parindent{0pt}
\setlength\footnotemargin{0.8em}
% Document specific commands and abbreviations %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\definecolor{myRed}{RGB}{205,140,140}
\definecolor{myGreen}{RGB}{178,195,134}
\definecolor{myGray}{RGB}{230,230,230}
\definecolor{myBlue}{RGB}{118,148,189}
\definecolor{myYellow}{RGB}{237,188,75}
\definecolor{myTeal}{RGB}{118,184,184}
\definecolor{myOtherYellow}{RGB}{249,249,165}
\definecolor{myOrange}{RGB}{237,176,127}
\definecolor{javadoc}{rgb}{.247,.373,.749}
\definecolor{comment}{rgb}{.247,.498,.373}
\definecolor{keyword}{rgb}{.498,0,.333}
\definecolor{string}{rgb}{.165,0,1}
\definecolor{lightgray}{rgb}{.99,.99,.99}
% don't footnote numbers with 1 every chapter %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\counterwithout{footnote}{chapter}
%\renewcommand{\ttdefault}{lmtt}
\DeclareFontShape{OT1}{cmtt}{bx}{n}{<5><6><7><8><9><10><10.95><12><14.4><17.28><20.74><24.88>cmttb10}{}
% Hyphenations %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\hyphenation{
Cache-block
Ker-nel-mo-dul
Cache-meta-daten-struk-tur
Kon-struk-tor-rou-tine
Flash-spei-cher-me-dien
Da-ten-strom-ma-ni-pu-la-ti-onen
Cache
Booten
}
% Main Document %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\renewcommand{\thepage}{\roman{page}}
\include{preface1-titlepage} \cleardoublepage{}
\include{preface2-affirmation} \cleardoublepage{}
% Table of contents, list of figures, etc. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\phantomsection
\addcontentsline{toc}{chapter}{\contentsname}
\tableofcontents \cleardoublepage{}
\phantomsection
\addcontentsline{toc}{chapter}{\listfigurename}
\listoffigures \cleardoublepage{}
\include{preface3-abbreviations} \cleardoublepage{}
% Content %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\setcounter{page}{1}
\renewcommand{\thepage}{\arabic{page}}
\renewcommand{\chaptermark}[1]{\markboth{\thechapter\ \MakeUppercase{#1}}{}}
\include{chapter1-intro} \cleardoublepage{}
\include{chapter2-background} \cleardoublepage{}
\include{chapter3-related_work} \cleardoublepage{}
\include{chapter4-problem} \cleardoublepage{}
\include{chapter5-architecture} \cleardoublepage{}
\addtocontents{toc}{\protect\newpage}
\include{chapter6-implementation} \cleardoublepage{}
\include{chapter7-evaluation} \cleardoublepage{}
\include{chapter8-conclusion} \cleardoublepage{}
\include{chapterA-appendix} \cleardoublepage{}
% References %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\phantomsection
\addcontentsline{toc}{chapter}{Literaturverzeichnis}
\chaptermark{Literaturverzeichnis}
\sectionmark{Literaturverzeichnis}
\printbibliography \clearpage{}
\chaptermark{} \sectionmark{} \cleardoublepage{}
\include{postface1-abstract}
\end{document}