Sie sind auf Seite 1von 1

MEMORY-HIERARCHY DESIGN

1- This chapter describes the many ideas invented to overcome the processor –
memory performance gap. To put these abstract ideas into practice, throughout the
chapter we show examples from the four levels of the memory hierarchy in a computer
using the Alpha 21264 microprocessor. Toward the end of the chapter we evaluate the
impact of these levels of performance using the SPEC 95 benchmark programs.

2- Since fast memory is expensive, a memory hierarchy is organized into several


levels- each smaller, faster, and more expensive per byte than the next lower level.
The goal is to provide a memory system with cost almost as low as the cheapest level
of memory and speed almost as fast as the fastest level.The levels of the hierarchy
usually subset one another. All data in one level is also found in the level below, and all
data in that lower level is found in the one below it, and so on until we reach the bottom
of the hierarchy.

3- The importance of the memory hierarchy has increased with advances in


performance of processors. For example, in 1980 microprocessors were often
designed without caches, while in 2001 many come with two levels of caches on the
chip. As noted in Chapter 1, microprocessor performance improved 55% per year since
1987, and 35% per year until 1986. Figure 5.2 plots CPU performance projections
against the historical performance improvement in time to access main memory.
Clearly, there is a processor memory performance gap that computer architects must
try to close.

4- The 21264 is a microprocessor designed for desktop and servers. Even these two
related classes of computers have different concerns in a memory hierarchy. Desktop
computers are primarily running one application at a time on top of an operating system
for a single user, whereas server computers may typically have hundreds of users
potentially running potentially dozens of applications simultaneously. These
characteristics result in more context switches, which effectively increases compulsory
miss rates. Thus, desktop computers are concerned more with average latency from
the memory hierarchy whereas server computers are also concerned about memory
bandwidth.

5- Note that each level maps addresses from a slower, larger memory to a smaller but
faster memory higher in the hierarchy. As part of address mapping, the memory
hierarchy is given the responsibility of address checking; hence protection schemes for
scrutinizing addresses are also part of the memory hierarchy.

6- Computer pioneers correctly predicted that programmers would want unlimited


amounts of fast memory. An economical solution to that desire is a memory hierarchy,
which takes advantage of locality and cost / performance of memory technologies. The
principle of locality says that most programmes do not access all code or data
uniformly (see section 1.6, page 38). This principle, plus the guideline that smaller
hardware is faster, led to hierarchies based on memories of different speeds and sizes.
Figure 5.1 shows a multilevel memory hierarchy, including typical sizes and speeds of
access.

Das könnte Ihnen auch gefallen