computer-organization/cache/TJU-2023-Computer-Organization/Proj1-2/TJU-Latex-Report/body/4.tex

88 lines
3.0 KiB
TeX
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

\section{实验分析}
\subsection{Miss Rate}
\begin{figure}[!htbp]
\centering
\begin{minipage}{0.3\linewidth}
\includegraphics[width=\linewidth]{L1Miss.png}
\caption{L1 Miss vs Size}
\end{minipage}
\hfill
\begin{minipage}{0.3\linewidth}
\includegraphics[width=\linewidth]{block.png}
\caption{L1 Miss vs Block Size}
\end{minipage}
\hfill
\begin{minipage}{0.3\linewidth}
\includegraphics[width=\linewidth]{assoc.png}
\caption{L1 Miss vs Associativity}
\end{minipage}
\end{figure}
\begin{itemize}
\item 随着 L1 缓存大小的增加L1 Miss Rate 的平均值呈现下降趋势,通常较大的缓存意味着更低的缺失率。
\item 为了实现最佳性能,块大小必须与缓存大小和关联度等其他参数相协调。一般来说,命中率会随着块大小的变化而先上升后下降。
\item L1 关联度值与 L1 Miss Rate 之间的关系受到其他参数变化的影响,因此缺失率在一定范围内波动。通常,增加关联度可以降低缺失率,但在不合适的参数配置下,这种效果会减弱,导致缺失率在增加过程中上下波动。
\end{itemize}
\subsection{AAT}
\begin{figure}[!htbp]
\centering
\begin{minipage}{0.32\linewidth}
\includegraphics[width=\linewidth]{L1.png}
\caption{AAT vs L1}
\end{minipage}
\hfill
\begin{minipage}{0.32\linewidth}
\includegraphics[width=\linewidth]{block.png}
\caption{AAT vs Block Size}
\end{minipage}
\hfill
\begin{minipage}{0.32\linewidth}
\includegraphics[width=\linewidth]{L2.png}
\caption{AAT vs L2}
\end{minipage}
\end{figure}
\begin{itemize}
\item 增加 L1 缓存大小或 L1 关联度通常能降低平均访问时间AAT。这可能是因为这些参数的增大提高了缓存的容量和关联性从而降低了缺失率并提升了命中率。
\item 类似于 L1 缓存,增大 L2 缓存大小或 L2 关联度也有助于降低 AAT。不过L2 缓存的影响可能不如 L1 缓存明显,因为 L2 缓存通常只有在 L1 缓存发生缺失时才会被访问。
\end{itemize}
\subsection{最优参数}
\begin{figure}[!htbp]
\centering
\begin{minipage}{0.32\linewidth}
\includegraphics[width=\linewidth]{R1.png}
\caption{gcc}
\end{minipage}
\hfill
\begin{minipage}{0.32\linewidth}
\includegraphics[width=\linewidth]{R2.png}
\caption{go}
\end{minipage}
\hfill
\begin{minipage}{0.32\linewidth}
\includegraphics[width=\linewidth]{R3.png}
\caption{perl}
\end{minipage}
\end{figure}
\begin{table}[!htbp]
\centering
\caption{搜索结果}\label{tab:res2}
\begin{tabular}{cccccc}
\hline
Trace & L1 & L2 & blocksize & victim size & Best AAT \\
\hline
gcc & 8192, 2 & 65536, 4 & 128 & 4096 & 0.8186 \\
go & 1024, 2 & 65536, 2 & 128 & 4096 & 0.8415 \\
perl & 8192, 2 & 65536, 2 & 64 & 4096 & 0.6714 \\
\hline
\end{tabular}
\end{table}