Cache By: Thanh Nguyen.

Slides:



Advertisements
Similar presentations
Computer Skills Preparatory Year Presented by:
Advertisements

C SINGH, JUNE 7-8, 2010IWW 2010, ISATANBUL, TURKEY Advanced Computers Architecture, UNIT 2 Advanced Computers Architecture UNIT 2 CACHE MEOMORY Lecture7.
1 Parallel Scientific Computing: Algorithms and Tools Lecture #2 APMA 2821A, Spring 2008 Instructors: George Em Karniadakis Leopold Grinberg.
Computer Maintenance Unit Subtitle: Cache Concepts Excerpted from Copyright © Texas Education Agency, 2011.
The Central Processing Unit: What Goes on Inside the Computer.
Modified from notes by Saeid Nooshabadi COMP3221: Microprocessors and Embedded Systems Lecture 25: Cache - I Lecturer:
Recitation 7 Caching By yzhuang. Announcements Pick up your exam from ECE course hub ◦ Average is 43/60 ◦ Final Grade computation? See syllabus
Using one level of Cache:
Memory Hierarchy. Smaller and faster, (per byte) storage devices Larger, slower, and cheaper (per byte) storage devices.
Outline, October 2CS-3013 A-term 20091Outline, October 2CS-3013 A-term Outline for October 2 Review:– Caches and Quantification of Cache Performance.
1 Foundations of Software Design Fall 2002 Marti Hearst Lecture 4: Operating Systems.
2 pt 3 pt 4 pt 5pt 1 pt 2 pt 3 pt 4 pt 5 pt 1 pt 2pt 3 pt 4pt 5 pt 1pt 2pt 3 pt 4 pt 5 pt 1 pt 2 pt 3 pt 4pt 5 pt 1pt Category1 Computers Category2 CPU.
COMP3221 lec33-Cache-I.1 Saeid Nooshabadi COMP 3221 Microprocessors and Embedded Systems Lectures 12: Cache Memory - I
Who Wants to be a Millionaire. $2,000  What is RAM? A. Rubies And Money B. Rough Acting Mom C. Random Access Memory D. Rude And Mad.
Memory. When we receive some instruction or information we retain them in our memory. Similarly a computer stores the instructions for solving a problem,
Buying a Laptop. 3 Main Components The 3 main components to consider when buying a laptop or computer are Processor – The Bigger the Ghz the faster the.
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.
Computer Organization Hardware and Software. Computing Systems Computers have two kinds of components: Hardware, consisting of its physical devices (CPU,
Computers Central Processor Unit. Basic Computer System MAIN MEMORY ALUCNTL..... BUS CONTROLLER Processor I/O moduleInterconnections BUS Memory.
Chapter 2: CPU &Data Storage. CPU Each computer has at least one CPU Each computer has at least one CPU CPU execute instructions to carry out tasks –
User Side Factors. Download Speed Download speed from a user’s side, is how long it takes a webpage to load, once requested. The measurement for time.
Dawn Pedersen. Flick the switch… What happens when you turn a computer on?
CacheLab 10/10/2011 By Gennady Pekhimenko. Outline Memory organization Caching – Different types of locality – Cache organization Cachelab – Warnings.
Personal Computer Adapted by Dr. Semmes from Mrs. Jungman’s Hardware Presentation and Mrs. Belisle’s Class Notes.
Fill in the blanks: (1) _________ has only two possible values 0 and 1. (2) There are __________bits in a byte. (3) 1 kilobyte of memory space can store.
Measuring System Performance The speed of a computer is often referred to as THROUGHPUT. This is very difficult to measure. It can be done with Measures.
I/O (Input and Output) An I/O device acts as an interface between a computer and a user Without I/O devices, a computer is nothing but a box full of.
Hardware. Make sure you have paper and pen to hand as you will need to take notes and write down answers and thoughts that you can refer to later on.
Introduction to Computer Architecture. What is binary? We use the decimal (base 10) number system Binary is the base 2 number system Ten different numbers.
Chapter 2 part 2. Computer Processing Speeds Milliseconds - thousands of a second Microseconds - millionths of a second Nanoseconds - billionths of a.
Computer Guts and Operating Systems CSCI 101 Week Two.
Chapter 9 Memory Organization By Jack Chung. MEMORY? RAM?
Computer Hardware.
Caching Principles & Paging Performance CS-502 (EMC) Fall Caching Principles and Paging Performance CS-502, Operating Systems Fall 2009 (EMC) (Slides.
Lesson Objectives To understand the basic hardware of computers, and how they are made up To be able to compare performance of computers with price.
Chapter 1 Introduction File Structures Readings: Folk, Chapter 1.
Multilevel Caches Microprocessors are getting faster and including a small high speed cache on the same chip.
Excellence Publication Co. Ltd. Volume Volume 1.
Computer Systems. Bits Computers represent information as patterns of bits A bit (binary digit) is either 0 or 1 –binary  “two states” true and false,
Cache Memory By Aung Oo. Cache Memory Cache Hard drive Cache Printer Cache CD-Rom Cache Browser Cache.
Memory The term memory is referred to computer’s main memory, or RAM (Random Access Memory). RAM is the location where data and programs are stored (temporarily),
Additional Cache Notes Dan Nguyen Spring Lee.
What is it and why do we need it? Chris Ward CS147 10/16/2008.
Computer Architecture Lecture 25 Fasih ur Rehman.
Starter You have 2 minutes to find out: 1.What is the fastest type of computer memory? 2.Where would you normally find it?
Cache Advanced Higher.
Basic Computer Fundamentals
Memory P2 Understand hardware technologies for game platforms
A Dummies guide to computer memory
David Kauchak CS 52 – Spring 2017
Hardware specifications
How do Computers Work ?.
Computer Hardware Mr. Singh ICS2O.
Ramya Kandasamy CS 147 Section 3
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.
Computer Organization
Introduction to Computer Architecture
Local secondary storage (local disks)
Data Structures and Algorithms
Memory Hierarchy Memory: hierarchy of components of various speeds and capacities Hierarchy driven by cost and performance In early days Primary memory.
Caching Principles and Paging Performance
Memory P2 Understand hardware technologies for game platforms
Junior High Media Studies
Caching Principles and Paging Performance
2.C Memory GCSE Computing Langley Park School for Boys.
Computer Basics PE 266 Dr. Mike Butler.
ECE 463/563 Fall `18 Memory Hierarchies, Cache Memories H&P: Appendix B and Chapter 2 Prof. Eric Rotenberg Fall 2018 ECE 463/563, Microprocessor Architecture,
Memory Hierarchy Memory: hierarchy of components of various speeds and capacities Hierarchy driven by cost and performance In early days Primary memory.
Outline for October 9 Input and Output (continued)
Presentation transcript:

Cache By: Thanh Nguyen

What is cache? Cache is a high speed storage mechanism that speed up your data processing speed.

Cache - example A librarian without cache

Cache - example A librarian with some cache 5

Cache - example Even more cache.. 5

Terms Hit/ miss L1 L2

Idea Overall, the idea of cache technology is the use of a faster but smaller memory type to accelerate a slower but larger memory type

Normal caching system L1 cache – Memory accesses at full microprocessor speed (10 nanoseconds, 4 kilobytes to 16 kilobytes in size) L2 cache – Memory access of type SRAM (around 20 to 30 nanoseconds, 128 kilobytes to 512 kilobytes in size) Main memory – Memory access of type RAM (around 60 seconds, 32 megabytes to 128 megabytes in size) Hard disk – Mechanical, slow (around 12 milliseconds, 1 gigabyte to 10 gigabytes in size) Internet – Incredibly slow (between 1 second and 3 days, unlimited size)

Common question “If L1 is so fast, why not make all of the computer’s memory run at the same speed as L1 cache, so no caching would be required?”

Answer Yes, we could but the general idea is: Build something small but fast Build something large but slow Build something large but fast

Cache in everything.. Types of cache Browser cache Memory cache Disk cache Processor cache

Source http://goo.gl/JoOf14 Librarian image http://goo.gl/NKjcg3 Shopping cart image http://goo.gl/hIEUUY Backpack image http://computer.howstuffworks.com/cache.htm http://www.techterms.com/definition/cache