Cache Memory By Aung Oo. Cache Memory Cache Hard drive Cache Printer Cache CD-Rom Cache Browser Cache.

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

MEMORY popo.
Computer Maintenance Unit Subtitle: Cache Concepts Excerpted from Copyright © Texas Education Agency, 2011.
Practical Caches COMP25212 cache 3. Learning Objectives To understand: –Additional Control Bits in Cache Lines –Cache Line Size Tradeoffs –Separate I&D.
Cache Heng Sovannarith
Cache Memory Locality of reference: It is observed that when a program refers to memory, the access to memory for data as well as code are confined to.
Computer Hardware Processing and Internal Memory.
Chapter 4 Computer Memory
IT Systems Memory EN230-1 Justin Champion C208 –
Objectives Overview Discovering Computers 2014: Chapter 6 See Page 248
1 CSE SUNY New Paltz Chapter Seven Exploiting Memory Hierarchy.
Semester One 2001/2002 Sheffield Hallam University1 The Motherboard Major circuit board in PC Holds CPU where calculations and instructions on data are.
1 Microprocessor speeds Measure of system clock speed –How many electronic pulses the clock produces per second (clock frequency) –Usually expressed in.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
Prepared by Careene McCallum-Rodney Hardware specification of a computer system.
Systems I Locality and Caching
Cache Memory By Sean Hunter.
How a Computer Processes Data Hardware. Major Components Involved: Central Processing Unit Types of Memory Motherboards Auxiliary Storage Devices.
Computer Architecture Part III-A: Memory. A Quote on Memory “With 1 MB RAM, we had a memory capacity which will NEVER be fully utilized” - Bill Gates.
Computer Architecture CST 250 INTEL PENTIUM PROCESSOR Prepared by:Omar Hirzallah.
WHAT IS A COMPUTER??? An electronic device that accepts: n Input n Processes the input n Stores the results of the processing n provides Output Computers.
COMP 1017: Digital Technologies Session 7: Motherboards.
Chapter 6 Inside Computers and Mobile Devices Discovering Computers Technology in a World of Computers, Mobile Devices, and the Internet.
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 location.
Basic Microcomputer Design. Inside the CPU Registers – storage locations Control Unit (CU) – coordinates the sequencing of steps involved in executing.
Faculty of Information Technology Department of Computer Science Computer Organization and Assembly Language Chapter 4 Cache Memory.
Computer Processing of Data
Random access memory.
Types of Computers Mainframe/Server Two Dual-Core Intel ® Xeon ® Processors 5140 Multi user access Large amount of RAM ( 48GB) and Backing Storage Desktop.
Objectives Overview Describe the various computer and mobile device cases and the contents they protect Describe multi-core processors, the components.
Computers organization & Assembly Language Chapter 0 INTRODUCTION TO COMPUTING Basic Concepts.
EECS 318 CAD Computer Aided Design LECTURE 10: Improving Memory Access: Direct and Spatial caches Instructor: Francis G. Wolff Case.
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.
© Banff and Buchan College 2007 DH2T 34 Computer Architecture 1 LO2 Lesson One Memory.
IT253: Computer Organization
A Detailed Discussion of SRAM Niels Asmussen Maggie Hamill William Hunt.
OCR GCSE Computing © Hodder Education 2013 Slide 1 OCR GCSE Computing Chapter 2: Memory.
Computer Architecture Lecture 3 Cache Memory. Characteristics Location Capacity Unit of transfer Access method Performance Physical type Physical characteristics.
What is cache memory?. Cache Cache is faster type of memory than is found in main memory. In other words, it takes less time to access something in cache.
Cache Memory By Tom Austin. What is cache memory? A cache is a collection of duplicate data, where the original data is expensive to fetch or compute.
COMP 1321 Digital Infrastructure
Memory Hierarchy. Hierarchy List Registers L1 Cache L2 Cache Main memory Disk cache Disk Optical Tape.
CS 1308 Computer Literacy and the Internet. Objectives In this chapter, you will learn about:  The components of a computer system  Putting all the.
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.
Multilevel Caches Microprocessors are getting faster and including a small high speed cache on the same chip.
Memory Hierarchy: Terminology Hit: data appears in some block in the upper level (example: Block X)  Hit Rate : the fraction of memory access found in.
1 Chapter 2 Central Processing Unit. 2 CPU The "brain" of the computer system is called the central processing unit. Everything that a computer does is.
Additional Cache Notes Dan Nguyen Spring Lee.
COMP SYSTEM ARCHITECTURE PRACTICAL CACHES Sergio Davies Feb/Mar 2014COMP25212 – Lecture 3.
The Memory Hierarchy (Lectures #17 - #20) ECE 445 – Computer Organization The slides included herein were taken from the materials accompanying Computer.
Adapted from Computer Organization and Design, Patterson & Hennessy, UCB ECE232: Hardware Organization and Design Part 14: Memory Hierarchy Chapter 5 (4.
1 How will execution time grow with SIZE? int array[SIZE]; int sum = 0; for (int i = 0 ; i < ; ++ i) { for (int j = 0 ; j < SIZE ; ++ j) { sum +=
Chapter 11 System Performance Enhancement. Basic Operation of a Computer l Program is loaded into memory l Instruction is fetched from memory l Operands.
Advanced Diploma - Unit One 1 Computer Components Week 1 System Unit Components.
Memory Management memory hierarchy programs exhibit locality of reference - non-uniform reference patterns temporal locality - a program that references.
Computer Architecture Lecture 25 Fasih ur Rehman.
CPU Central Processing Unit
Unit 2 Technology Systems
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 location.
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 location.
How will execution time grow with SIZE?
Assembly Language for Intel-Based Computers, 5th Edition
CS-301 Introduction to Computing Lecture 17
William Stallings Computer Organization and Architecture 7th Edition
Module IV Memory Organization.
Introduction to Computing
Types of Computers Mainframe/Server
Introduction To Computing BBA & MBA
Presentation transcript:

Cache Memory By Aung Oo

Cache Memory Cache Hard drive Cache Printer Cache CD-Rom Cache Browser Cache

What is Cache in general? A cache is meant to improve access times and enhance the overall performance of your computer. e.g. browser cache stores the most recent websites you've visited. If the site hasn't changed, it can load it quicker from your hard drive than it can over slow internet connection.

Cache Memory Cache RAM is extremely fast--it is capable of delivering data at the speed of the CPU. The CPU is faster than the rest of the system and needs a place to store information that can be accessed fast.

Cache Memory Cont. The cache memory minimizes the number of outgoing transactions from the CPU. Having that cache memory read in and write to main memory in "spare" time, the processor can operate at full speed much of the time.

Cache Level When we talk about the level of cache we're referring to it's connecting circuits or electronic pathways (bus) and physical proximity to the CPU.

Internal Cache (Level I or L1) L1 cache is a small amount of SRAM that is placed inside the actual CPU (internally) allows a buffer for the rest of the system to keep up with it. It runs at the same speed as the processor.

External Cache (Level II or L2) Typically L2 Cache is separate (or external) from the CPU. It's often socketed on the motherboard in DIP chips or in COAST slots. L2 cache acts more for information heading out of the CPU rather than in it. It runs at the speed of the motherboard or FSB.

External Cache? To shorten the bus length and increase the speed to L2 cache, modern computers have the L2 cache inside the CPU chip or CPU cartridge It's still separate from the CPU core and connected by a bridge or what is termed the “backside bus”. It runs at half the processor speed.

External Cache (Level III or L3) L3 cache attached to the motherboard. With a bus speed the same as the (FSB) system bus. Found mostly in Intel Xeon Workstation and also in Pentium 4 EE (Extreme Edition).

Why is Cache memory expensive? The cache is made up of extremely fast silicon memory, and is called SRAM (Static RAM) which runs as fast as CPU. It takes up a lot more space. You wouldn't have enough room on your motherboard for even 16MB of SRAM (and the cost would make home computer unaffordable for most people.)

Types Of Cache Asynchronous SRAM The RAM is called asynchronous because the processor has provide a address for each cache access then in turn has to wait. (This is a older type cache and is found on 386 and 486 machines.) Synchronous Burst SRAM It allows for the RAM to work in step with the system clock. It also free ups the problems with the CPU. In other words less waiting. Pipeline Burst SRAM This type is much like the Synchronous and is far cheaper. Found on current Pentium systems.

How does Cache Memory works? The details of how cache memory works vary depending on the different cache controllers and processors. The most recently accessed information or instructions can help the controller to guess at what RAM locations may be accessed next and these are stored in the cache.

Write Hit When the CPU needs its next instruction or piece of data, it looks in the cache. If the info is there, it's called a “cache hit” or “write hit” and is retrieved at a faster speed than it would be from system memory. Write-through policy – both cache and memory updated Write-back policy – cache is updated and memory updated after a new block is loaded into cache

Write Miss If next intrustion isn't in the cache, then it's called a “cache miss” or “write miss” and the information is retrieved from system memory (slower DRAM). Write-allocate policy– updated block of memory is selected into cache. Write-no-allocate policy– only update memory, cache is not updated

Hit Ratio The hit ratio–hits divided by the sum of hits and misses–is a measure of cache performance. A well-designed cache can have a hit ratio close to 1. The number of cache hits, far outnumber the misses and this speeds up system performance dramatically.

References 1.htm mory_cache.htm /CS017.htm /CS035.htm “Assembly Language and Computer Architecture Using C++ and Java” by Anthony J. Dos Reis, section 14.8