Mathematical model for psd – Intel ARCHITECTURE IA-32 User Manual

Page 548

Advertising
background image

IA-32 Intel® Architecture Optimization

E-2

N

inst

is the number of instructions in the scope of one loop
iteration.

Consider the following example of a heuristic equation assuming that
parameters have the values as indicated:

where 60 corresponds to

Nlookup

, 25 to

Nxfer

, and 1.5 to

CPI

.

The values of the parameters in the equation can be derived from the
documentation for memory components and chipsets as well as from
vendor datasheets.

Mathematical Model for PSD

The parameters used in the mathematics discussed are as follows:

psd

prefetch scheduling distance (measured in number of
iterations)

il

iteration latency

T

c

computation latency per iteration with prefetch caches

T

l

memory leadoff latency including cache miss latency,
chip set latency, bus arbitration, etc.

CAUTION.

The values in this example are for

illustration only and do not represent the actual values
for these parameters. The example is provided as a
“starting point approximation” of calculating the
prefetch scheduling distance using the above formula.
Experimenting with the instruction around the
“starting point approximation” may be required to
achieve the best possible performance

.

psd

60

25

N

pref

N

st

+

(

)

+

1.5 N

inst

-----------------------------------------------------

=

Advertising