Lecture#15. Cache Function The data that is stored within a cache might be values that have been computed earlier or duplicates of original values that.

Slides:



Advertisements
Similar presentations
C SINGH, JUNE 7-8, 2010IWW 2010, ISATANBUL, TURKEY Advanced Computers Architecture, UNIT 2 Advanced Computers Architecture UNIT 2 CACHE MEOMORY Lecture7.
Advertisements

Cosc 3P92 Week 9 Lecture slides
Miss Penalty Reduction Techniques (Sec. 5.4) Multilevel Caches: A second level cache (L2) is added between the original Level-1 cache and main memory.
CMSC 611: Advanced Computer Architecture Cache Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted from.
Practical Caches COMP25212 cache 3. Learning Objectives To understand: –Additional Control Bits in Cache Lines –Cache Line Size Tradeoffs –Separate I&D.
Chapter 6 Computer Architecture
Spring 2003CSE P5481 Introduction Why memory subsystem design is important CPU speeds increase 55% per year DRAM speeds increase 3% per year rate of increase.
Characteristics of Computer Memory
Memory Organization.
Characteristics Location Capacity Unit of transfer Access method Performance Physical type Physical characteristics Organisation.
1 COMP 206: Computer Architecture and Implementation Montek Singh Wed, Nov 9, 2005 Topic: Caches (contd.)
MODULE 5: Introduction to Memory system
Cache memory Direct Cache Memory Associate Cache Memory Set Associative Cache Memory.
COMPUTER MEMORY Modern computers use semiconductor memory It is made up of thousands of circuits (paths) for electrical currents on a single silicon chip.
Characteristics of Computer Memory
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
Systems I Locality and Caching
CH05 Internal Memory Computer Memory System Overview Semiconductor Main Memory Cache Memory Pentium II and PowerPC Cache Organizations Advanced DRAM Organization.
C.S. Choy95 COMPUTER ORGANIZATION Logic Design Skill to design digital components JAVA Language Skill to program a computer Computer Organization Skill.
Computing Hardware Starter.
© Janice Regan, CMPT 300, May CMPT 300 Introduction to Operating Systems Operating Systems Overview: Using Hardware.
CSNB123 coMPUTER oRGANIZATION
1 Overview 2 Cache entry structure 3 mapping function 4 Cache hierarchy in a modern processor 5 Advantages and Disadvantages of Larger Caches 6 Implementation.
Computer Processing of Data
Memory  Main memory consists of a number of storage locations, each of which is identified by a unique address  The ability of the CPU to identify each.
1 CSC 101 Introduction to Computing Lecture 11 Dr. Iftikhar Azim Niaz 1.
Computer Architecture Lecture 3 Cache Memory. Characteristics Location Capacity Unit of transfer Access method Performance Physical type Physical characteristics.
Operating Systems Lecture No. 2. Basic Elements  At a top level, a computer consists of a processor, memory and I/ O Components.  These components are.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: CPU.
+ CS 325: CS Hardware and Software Organization and Architecture Memory Organization.
2007 Sept. 14SYSC 2001* - Fall SYSC2001-Ch4.ppt1 Chapter 4 Cache Memory 4.1 Memory system 4.2 Cache principles 4.3 Cache design 4.4 Examples.
CSE 241 Computer Engineering (1) هندسة الحاسبات (1) Lecture #3 Ch. 6 Memory System Design Dr. Tamer Samy Gaafar Dept. of Computer & Systems Engineering.
Memory and Storage. Computer Memory Processor registers – Temporary storage locations within the CPU – Examples Instruction register – holds the instruction.
MEMORY ORGANIZATION - Memory hierarchy - Main memory - Auxiliary memory - Cache memory.
Memory Hierarchy. Hierarchy List Registers L1 Cache L2 Cache Main memory Disk cache Disk Optical Tape.
© GCSE Computing Computing Hardware Starter. Creating a spreadsheet to demonstrate the size of memory. 1 byte = 1 character or about 1 pixel of information.
Introduction: Memory Management 2 Ideally programmers want memory that is large fast non volatile Memory hierarchy small amount of fast, expensive memory.
Multilevel Caches Microprocessors are getting faster and including a small high speed cache on the same chip.
Chapter 8: System Memory Dr Mohamed Menacer Taibah University
Am I RAM Or am I ROM?.
Jeffrey Ellak CS 147. Topics What is memory hierarchy? What are the different types of memory? What is in charge of accessing memory?
1 Computer Architecture. 2 Basic Elements Processor Main Memory –volatile –referred to as real memory or primary memory I/O modules –secondary memory.
Chapter 11 System Performance Enhancement. Basic Operation of a Computer l Program is loaded into memory l Instruction is fetched from memory l Operands.
Lecture # 10 Processors Microcomputer Processors.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Cache Memory.
Characteristics Location Capacity Unit of transfer Access method Performance Physical type Physical characteristics Organisation.
Software Design and Development Computer Architecture Computing Science.
Cache Memory.
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
CS-301 Introduction to Computing Lecture 17
Memory Holding area for data, instructions, and information
Cache memory Direct Cache Memory Associate Cache Memory
Module IV Memory Organization.
EE 445S Real-Time Digital Signal Processing Lab Spring 2014
Introduction to Computing
Chapter 6 Memory System Design
Cache Memory.
Memory Organization.
TLB Performance Seung Ki Lee.
Jazan University, Jazan KSA
Presentation transcript:

Lecture#15

Cache Function The data that is stored within a cache might be values that have been computed earlier or duplicates of original values that are stored elsewhere If requested data is contained in the cache (cache hit), this request can be served by simply reading the cache, which is comparatively faster. Otherwise (cache miss), the data has to be recomputed or fetched from its original storage location, which is comparatively slower. Hence, the greater the number of requests that can be served from the cache, the faster the overall system performance becomes.

Cache Small amount of very fast memory which stores copies of the data from the most frequently used main memory locations Sits between normal main memory (RAM & ROM) and CPU May be located on CPU chip or module Used to reduce the average time to access memory. As long as most memory accesses are cached memory locations, the average access time of memory accesses will be closer to the cache access time than to the access time of main memory.

Cache Operation – Overview CPU requests contents of memory location Check cache for this data If present, get from cache (fast) If not present, read required block from main memory to cache Then deliver from cache to CPU Cache includes tags to identify which block of main memory is in each cache slot

Types of Cache Most modern desktop and server CPUs have at least three independent caches: an instruction cache to speed up executable instruction fetch, a data cache to speed up data fetch and store, and a translation look aside buffer (TLB) used to speed up virtual- to-physical address translation for both executable instructions and data.

Multi Level Cache Another issue is the fundamental tradeoff between cache access time and hit rate Larger caches have better hit rates but longer access time To address this tradeoff, many computers use multiple levels of cache, with small fast caches backed up by larger slower caches. Multi-level caches generally operate by checking the smallest level 1 (L1) cache first; if it hits, the processor proceeds at high speed. If the smaller cache misses, the next larger cache (L2) is checked, and so on, before external memory is checked. L1 holds recently used data L2 holds upcoming data L3 holds possible upcoming data

Multilevel Caches High logic density enables caches on chip Faster than bus access Frees bus for other transfers Common to use both on and off chip cache L1 on chip, L2 off chip in static RAM L2 access much faster than DRAM or ROM L2 often uses separate data path L2 may now be on chip Resulting in L3 cache Bus access or now on chip…

Multilevel Cache

L1 Cache Built directly in the processor chip. Usually has a very small capacity, ranging from 8 KB to 128 KB. The more common sizes for PCs are 32 KB or 64 KB.

L2 Cache Slightly slower than L1 cache Has a much larger capacity, ranging from 64 KB to 16 MB Current processors include Advanced Transfer Cache (ATC), a type of L2 cache built directly on the processor chip Processors that use ATC perform at much faster rates than those that do not use it PCs today have from 512 KB to 12 MB of ATC Servers and workstations have from 12 MB to 16 MB of ATC

L3 Cache L3 cache is a cache on the motherboard Separate from the processor chip. Exists only on computers that use L2 Advanced Transfer Cache. Personal computers often have up to 8 MB of L3 cache; Servers and work stations have from 8 MB to 24 MB of L3 cache.

Multi Level Cache speeds the processes of the computer because it stores frequently used instructions and data

Memory hierarchy –Design constraints How much? open ended. If the capacity is there, applications will likely be developed to use it How fast? To achieve greatest performance, the memory must be able to keep up with the processor. As the processor is executing instructions, it should not have to pause waiting for instructions or operands. How expensive? the cost of memory must be reasonable in relationship to other components

Memory Hierarchy Faster access time, greater cost per bit Greater capacity, smaller cost per bit Greater capacity, slower access time

Memory Hierarchy

Access Time