Skip to content

Commit 13425bb

Browse files
committed
doc(simulation): use minted
1 parent 201fd8b commit 13425bb

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,4 @@ _build
2626
/simulation/docs/*/*.eps
2727
/simulation/docs/scenario*/sim-data.json
2828
/simulation/docs/*/sim-data.json
29+
/simulation/docs/_minted-sim-realism/

simulation/docs/.latexmkrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Enable --shell-escape
2+
$pdflatex = "pdflatex --shell-escape %O %S";

simulation/docs/sim-realism.tex

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
\documentclass[11pt,a4paper]{article}
44

5+
\usepackage[margin=2.5cm]{geometry}
56
\usepackage[dvipsnames]{xcolor}
67
\usepackage{todonotes}
78
\usepackage{regexpatch}
@@ -24,6 +25,7 @@
2425
}
2526
\usepackage{subcaption}
2627
\usepackage{listings}
28+
\usepackage{minted}
2729
%%\newcommand{\debug}[1]{}
2830
\newcommand{\debug}[1]{#1}
2931
\newcommand{\scenarioVsIdealFigure}[2]{
@@ -149,9 +151,12 @@ \section{Summary}
149151
\section{Scenario \ref{sc:most-idealized}}
150152
\label{scenario1}
151153
The least realistic scenario. Config:
152-
\lstinputlisting[firstline=7]{scenario1/config.yaml}
153-
\todo{remove config once scenario explained}
154-
154+
\begin{minted}{yaml}
155+
relay-strategy: "request-from-all"
156+
tcp-congestion-control: false
157+
multiplex-mini-protocols: false
158+
treat-blocks-as-full: true
159+
\end{minted}
155160
In Figure~\ref{fig:scenario1} we compute ideal times two ways:
156161
\begin{itemize}
157162
\item \textbf{ideal} -- Uses $3$ latencies for every communication.
@@ -262,11 +267,11 @@ \section{Scenario \ref{sc:tcp}}
262267
\scenarioVsIdealFigure{scenario4-100-cpu}{sc:tcp-100-cpu}
263268

264269
From other simulations we noticed there is a sweet spot of traffic for diffusion to do best, which makes sense with regard to keeping the congestion window open without overwhelming other resources. In particular from Fig.~\ref{fig:scenario4-best-IB-rate} we see IBs do slightly better with these parameters:
265-
\begin{lstlisting}
270+
\begin{minted}{yaml}
266271
ib-body-avg-size-bytes: 163840
267272
leios-stage-length-slots: 60
268273
ib-generation-probability: 10
269-
\end{lstlisting}
274+
\end{minted}
270275
and a topology where link bandwidth is set to $1024000$ bps, half of previous scenarios.
271276
\scenarioVsIdealFigure{scenario4-best-IB-rate}{sc:tcp-opt}
272277

0 commit comments

Comments
 (0)