diff --git a/Project1/project_1_maggioni_claudio.pdf b/Project1/project_1_maggioni_claudio.pdf index bb87295..e02a846 100644 Binary files a/Project1/project_1_maggioni_claudio.pdf and b/Project1/project_1_maggioni_claudio.pdf differ diff --git a/Project1/project_1_maggioni_claudio.tex b/Project1/project_1_maggioni_claudio.tex index 553047c..503b0b5 100644 --- a/Project1/project_1_maggioni_claudio.tex +++ b/Project1/project_1_maggioni_claudio.tex @@ -4,8 +4,8 @@ \usepackage{float} \usepackage{subcaption} \usepackage{graphicx} -\usepackage{fancyvrb} \usepackage{tikz} +\usepackage{multirow} \begin{document} @@ -39,42 +39,34 @@ L1 cache & 32 kB per core All values are reported using base 2 IEC byte units. The cluster has 2 sockets and a total of 20 cores (10 per socket). The cache topology diagram reported by -\texttt{likwid-topology -g} is the following: +\texttt{likwid-topology -g} is shown in Figure \ref{fig:topo}. -\pagebreak[4] -% https://tex.stackexchange.com/a/171818 -\begin{Verbatim}[fontsize=\tiny] -Socket 0: -+---------------------------------------------------------------------------------------------------------------+ -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| | 0 | | 1 | | 2 | | 3 | | 4 | | 5 | | 6 | | 7 | | 8 | | 9 | | -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| +-----------------------------------------------------------------------------------------------------------+ | -| | 25 MB | | -| +-----------------------------------------------------------------------------------------------------------+ | -+---------------------------------------------------------------------------------------------------------------+ -Socket 1: -+---------------------------------------------------------------------------------------------------------------+ -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| | 10 | | 11 | | 12 | | 13 | | 14 | | 15 | | 16 | | 17 | | 18 | | 19 | | -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | 32 kB | | -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | 256 kB | | -| +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ +--------+ | -| +-----------------------------------------------------------------------------------------------------------+ | -| | 25 MB | | -| +-----------------------------------------------------------------------------------------------------------+ | -+---------------------------------------------------------------------------------------------------------------+ -\end{Verbatim} +\begin{figure}[t] + \begin{center} + Socket 0:\vspace{0.3cm} + + \begin{tabular}{|l|l|l|l|l|l|l|l|l|l|} + \hline 0 & 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 \\\hline + 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 + kB & 32 kB \\\hline + 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256 + kB & 256 kB & 256 kB \\\hline + \multicolumn{10}{|c|}{25 MB} \\\hline + \end{tabular}\vspace{0.8cm}\\ + Socket 1:\vspace{0.3cm} + \begin{tabular}{|l|l|l|l|l|l|l|l|l|l|} + \hline 10 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 \\\hline + 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 kB & 32 + kB & 32 kB \\\hline + 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256 kB & 256 + kB & 256 kB & 256 kB \\\hline + \multicolumn{10}{|c|}{25 MB} \\\hline + \end{tabular} + \end{center} + \caption{Cache topology diagram as outputted by \texttt{likwid-topology -g}. + Byte sizes all in IEC units.} + \label{fig:topo} +\end{figure} \subsection{Memory Access Pattern of \texttt{membench.c}}