Docsity

Balanced Cache: A Technique to Improve Direct-Mapped Cache Performance, Slides of Computer Architecture and Organization

Partial preview of the text

Download Balanced Cache: A Technique to Improve Direct-Mapped Cache Performance and more Slides Computer Architecture and Organization in PDF only on Docsity!

BALANCED CACHE

Outline

Introduction

Motivation

The B-Cache Organization

Experimental Methodology and Results

Programmable Decoder Design

Analysis

Related Work

Conclusion

Introduction

PROCESSOR

LEVEL 2 MAIN MEMORY

LEVEL 1

Level one cache normally resides on a processor’s critical path, fast access to level one cache is an important issue for improved processor performance.

Introduction

There are two cache organization models that

have been developed:

 Direct-Mapped Cache:  Set-Associative Cache:

Introduction

  1. Set Associative Cache:

Introduction

Direct-M apped Cache

faster access time consumes less power per access

consumes less area easy to implement simple to design higher miss rate

Set-Associative Cache longer access time consumes more power per access consumes more area reduces conflict misses has a replacement policy

Introduction

Balanced Cache (B-Cache):

A mechanism to provide the benefit of cache

block replacement while maintaining the

constant access time of a direct-mapped cache

Introduction

  1. The decoder length of a traditional direct- mapped cache is increased by three bits:  accesses to heavily used sets can be reduced to 1/8th of the original design.  only 1/8th of the memory address space has a mapping to the cache sets.
  2. A replacement policy is added.
  3. A programmable decoder is used.

Motivation - Example

8-bit adress

same as in 2-way cache

X : invalid PD entry Docsity.com

B-Cache Organization -

Terminology

Memory address mapping factor (MF):

B-Cache associativity (BAS):

PI : index length of PD

NPI : index length of NPD

OI : index length of original direct-mapped cache

MF = 2 (PI+NPI)/2OI^ , where MF≥

BAS = 2 OI^ /2NPI^ , where BAS≥

B-Cache Organization–

Replacement Policy

Random Policy:

Simple to design and needs very few extra hardware.

Least Recently Used(LRU):

May achieve a better hit rate but will have more area overhead than the random policy.

Experimental Methodology and

Results

 Miss rate is used as the primary metric to measure the BCache effectiveness, and MP and BAS parameters are determined.

 Results are compared with baseline level one cache(a direct-mapped 16kB cache with a line size of 32 bytes for instruction and data caches)

 4-issue out-of-order processor simulator is used to collect the miss rate. 26 SPEC2K benchmarks are run using the SimpleScalar tool set.

Experimental Methodology and

set-associative cachesResults 16 entry victim bufferB-Caches with dif. MFs

The miss rate reduction of the B-Cache is as good as a 4-way cache for the data cache. For the instruction cache, on average, the miss rate reduction is 5% better than a 4-way cache.

Programmable Decoder Design

  • Latency,
  • Storage,
  • Power Costs