Chapter 5 Flashcards

1
Q

Principle of locality

A

Temporal Locality and Spatial Locality

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Temporal Locality

A

Items accessed recently are likely to be accessed again soon

  • instructions in loop
  • induction variable
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Spatial Locality

A

Items near those accessed recently are likely to be accessed soon

  • sequential instruction access
  • array data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Taking Advantage of Locality

A
  • memory hierarchy
  • store on disk
  • copy recently accessed(and nearby) items from disk to smaller DRAM memory
    • Main Memory
  • copy more recently accessed(and nearby) items from the DRAM to smaller SRAM memory
    • Cache memory attached to the CPU
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Block(aka line)

A

unit of copying

-may be multiple words

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Memory hierarchy

A

a structure that uses multiple levels of memories; as the distance from the processor increases, the size of the memories and the access time both increase.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

hit rate

A

the fraction of memory accesses found in a level of the memory hierarchy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

miss rate

A

Th e fraction
of memory accesses not
found in a level of the
memory hierarchy

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

hit time

A
Th e time
required to access a level
of the memory hierarchy,
including the time needed
to determine whether the
access is a hit or a miss
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

miss penalty

A
The time
required to fetch a block
into a level of the memory
hierarchy from the lower
level, including the time
to access the block,
transmit it from one level
to the other, insert it in
the level that experienced
the miss, and then pass
the block to the requestor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

track

A

One of thousands
of concentric circles that
makes up the surface of a
magnetic disk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

sector

A
One of the
segments that make up a
track on a magnetic disk;
a sector is the smallest
amount of information
that is read or written on
a disk
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

seek

A

Th e process of
positioning a read/write
head over the proper
track on a disk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

rotational latency

A
Th e time required for
the desired sector of a
disk to rotate under the
read/write head; usually
assumed to be half the
rotation time
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

direct-mapped cache

A
A cache structure in
which each memory
location is mapped to
exactly one location in the
cache
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

tag

A
A field in a table used
for a memory hierarchy
that contains the address
information required
to identify whether the
associated block in the
hierarchy corresponds to
a requested word
17
Q

valid bit

A
A field in
the tables of a memory
hierarchy that indicates
that the associated block
in the hierarchy contains
valid data
18
Q

cache miss

A
A request for
data from the cache that
cannot be filled because
the data is not present in
the cache
19
Q

write-through

A
A scheme in which writes
always update both the
cache and the next lower
level of the memory
hierarchy, ensuring that
data is always consistent
between the two
20
Q

write buffer

A

A queue
that holds data while
the data is waiting to be
written to memory

21
Q

write-back

A
A scheme
that handles writes by
updating values only to
the block in the cache,
then writing the modifi ed
block to the lower level
of the hierarchy when the
block is replaced
22
Q

split cache

A
A scheme
in which a level of the
memory hierarchy
is composed of two
independent caches that
operate in parallel with
each other, with one
handling instructions and
one handling data
23
Q

fully associative cache

A

A cache structure
in which a block can be
placed in any location in
the cache

24
Q

set-associative cache

A

A cache that has a fixed
number of locations (at
least two) where each
block can be placed