
E-1
E
Mathematics of Prefetch
Scheduling Distance
This appendix discusses how far away to insert prefetch instructions. It
presents a mathematical model allowing you to deduce a simplified
equation which you can use for determining the prefetch scheduling
distance (PSD) for your application.
For your convenience, the first section presents this simplified equation;
the second section provides the background for this equation: the
mathematical model of the calculation.
Simplified Equation
A simplified equation to compute PSD is as follows:
where
psd
is prefetch scheduling distance.
Nlookup
is the number of clocks for lookup latency. This
parameter is system-dependent. The type of memory
used and the chipset implementation affect its value.
Nxfer
is the number of clocks to transfer a cache-line. This
parameter is implementation-dependent.
N
pref
and
N
st
are the numbers of cache lines to be prefetched and
stored.
CPI
is the number of clocks per instruction. This parameter
is implementation-dependent.
psd
Nlookup
Nxfer
N
pref
N
st
+
(
)
⋅
+
CPI N
inst
⋅
-------------------------------------------------------------------------------
=
Summary of Contents for ARCHITECTURE IA-32
Page 1: ...IA 32 Intel Architecture Optimization Reference Manual Order Number 248966 013US April 2006...
Page 220: ...IA 32 Intel Architecture Optimization 3 40...
Page 434: ...IA 32 Intel Architecture Optimization 9 20...
Page 514: ...IA 32 Intel Architecture Optimization B 60...
Page 536: ...IA 32 Intel Architecture Optimization C 22...