forked from rucsgss/thesis
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfsa-microbenchmarks-interlayout-plots.tex
executable file
·67 lines (65 loc) · 2.27 KB
/
fsa-microbenchmarks-interlayout-plots.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
\newcommand{\addinterlayoutplot}[2]
%{
% \addplot[color=blue, mark=*, only marks, mark size=0.25] table [x=request, y=block] {../data/camera_ready_layout/#1/aged_rlt#2.csv};
%}
\begin{figure}[t]
{ \centering
~\ref{layout-inter-legend}~\\
\begin{subfigure}{\columnwidth}
\centering
\tikzsetnextfilename{layout-inter_ext4}
\begin{tikzpicture}[yscale=0.825, xscale=0.825, trim axis left, trim axis right]
\begin{axis}[
width=1.21\columnwidth,
%xlabel={block requested},
ylabel style={align=center},
ylabel={(a) \ext\quad relative lba},
xmin=0,
xmax=2000,
ymin=8000,
ymax=9000,
restrict x to domain=0:2000,
restrict y to domain=8000:9000,
xtick={0,400,800,1200,1600,2000},
legend columns=2,
legend cell align=left,
legend pos=north west,
legend to name=layout-inter-legend,
transpose legend,
%height=5in,
]
\addplot[color=blue, mark=*, only marks, mark size=1.5] table [x=request, y=block] {fsa-data/camera_ready_layout/ext4/aged_rlt0.csv};
\addlegendentry{~In-order copy (round 0)}
\addplot[color=red, mark=*, only marks, mark size=1.5] table [x=request, y=block] {fsa-data/camera_ready_layout/ext4/aged_rlt100.csv};
\addlegendentry{~Random-order copy (round 100)}
\end{axis}
\end{tikzpicture}
%\caption{ext4}
\end{subfigure}\\
\begin{subfigure}{\columnwidth}
\centering
\tikzsetnextfilename{layout-inter_btrfs}
\begin{tikzpicture}[yscale=0.825, xscale=0.825, trim axis left, trim axis right]
\begin{axis}[
width=1.21\columnwidth,
xlabel={block requested},
ylabel style={align=center},
ylabel={(b) \btrfs\quad relative lba},
xmin=0,
xmax=2000,
ymin=2000,
ymax=4000,
restrict x to domain=0:2000,
restrict y to domain=2000:4000,
xtick={0,400,800,1200,1600,2000},
%height=5in,
]
\addplot[color=blue, mark=*, only marks, mark size=1.5] table [x=request, y=block] {fsa-data/camera_ready_layout/btrfs/aged_rlt0.csv};
\addplot[color=red, mark=*, only marks, mark size=1.5] table [x=request, y=block] {fsa-data/camera_ready_layout/btrfs/aged_rlt100.csv};
\end{axis}
\end{tikzpicture}
%\caption{btrfs}
\end{subfigure}
}
\caption{\label{mb:inter-layout}Interfile Layout Snapshots}
\end{figure}