Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
10 views
Cache Memory
Uploaded by
findyandx
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save cache memory For Later
Download
Save
Save cache memory For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
0 ratings
0% found this document useful (0 votes)
10 views
Cache Memory
Uploaded by
findyandx
AI-enhanced title
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
Download now
Download
Save cache memory For Later
Carousel Previous
Carousel Next
Save
Save cache memory For Later
0%
0% found this document useful, undefined
0%
, undefined
Embed
Share
Print
Report
Download now
Download
You are on page 1
/ 13
Search
Fullscreen
Cache Memory Special very high-speed memory that acts as a buffer between RAM and the CPU. Used to speed up and synchronizing with high-speed CPU, An extremely fast memory type Holds frequently requested data and instructions so that they are immediately available to the CPU when needed. Technique of storing a copy of data temporarily in rapidly accessible storage media (also known as memory) local to the CPU and separate from bulk storage. a Cache MemoryCache Memory Costlier than main memory or disk memory but economical than CPU registers. Used to reduce the average time to access data from the Main memory. Smaller and faster memory ( 5 to 10 times) which stores copies of the data from frequently used main memory locations. Instructions of few localized area of the program are repeatedly executed. while remainder of program is accessed relatively less. This phenomenon is referred as Locality of ReferenceLevels of Cache Memory Level 1(L1) Cache: e@ Fastest cache and usually comes within the processor chip itself e The LI cache typically ranges in size from 8KB to 64KB and uses the high- speed SRAM (static RAM) instead of DRAM (dynamic RAM). e Referred as internal cache or primaryLevels of Cache Memory Level 2(L2) Cache: Level 3(L3) Cache: e This cache is larger but slower in @ An enhanced form of memory speed than L1 cache: present on the motherboard of the @ Stores recently accessed information computer. & also known as secondary cache, e Used to feed the L2 cache. e [2 cache comes between Ll and e Faster than the system’s main RAM and is bigger than the primary memory, but slower than L2 cache (typically 64KB to 4MB). cache. e Having more than 3 MB of storage nitPlacement of Cache Memory in processorMapping Function Processor issues a Read request. a block of words is transferred from the main memory to the cache. one word at a time. Subsequent references to the data in this block of words are found in the cache. At any given time, only some blocks in the main memory are held in the cache. Which blocks in the main memory are in the cache is determined by a “mapping function”.Mapping Function When the cache is full. and a block of words needs to be transferred from the main memory. some block of words in the cache must be replaced. This is determined by a “replacement algorithm”. Block Transfer Word Transfer mo aeiG i © 5 Cache Operation . CPU requests content of memory location. Checks Cache for this data If present get it from there(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.Hit Ratio Cache Hit Ratio is the ratio of the number of cache hits to the number of lookups, usually expressed as a percentage. Depending on the nature of the cache. expected hit ratios can vary from 60% to greater than 99%, + Cache Hit = Desired data is in current level of cache * Cache Miss = Desired data is not present in current level. * When a cache miss occurs. the new block is brought from the lower level into cache. If cache is full a block must be evicted Number of cache hits we (Number of cache hits + Number of cache misses) — =Cache hit ratioHit Ratio-Problem Calculate the average access time of memory for a computer with cache access time of 100ns, a main memory access of 1000ns and a hit ratio is 0.9Hit Ratio-Problem Calculate the average access time of memory for a computer with. L_cache access time of 100ns. a main memory access of 1000ns and a hit ratio is 0.9 — ———————— ——— Fo + /. F data is Purd Gche = (o-ax lens ee (1-0-9) x loons + looses = Joys + loysWriting into the Cache When memory write operations are performed, CPU first writes into the cache memory. These modifications made by CPU during a write operations, on the data saved in cache, need to be written back to main memory or to auxiliary memory. These two popular cache write policies (schemes) are: ¢ Write-Through ¢ Write-BackWriting into the Cache Two popular cache write policies (schemes) are: Write-through The main memory is updated each time the CPU writes into cache. Pros: Avoid coherency issues between levels. Cons: Poor performance if next level of hierarchy is slow or if many, repeated accesses Write-back Only the cache memory is updated during a write operation. and the updated locations in the cache memory are marked by a flag. The words are removed from the cache time to time to make room for a new block of words. * Pros : Fast if many repeated accesses * Cons : Coherency issues
You might also like
Cache Memory Presentation Slides
PDF
No ratings yet
Cache Memory Presentation Slides
25 pages
CO & OS Unit-3 (Only Imp Concepts)
PDF
No ratings yet
CO & OS Unit-3 (Only Imp Concepts)
26 pages
Cache Memory: A Safe Place For Hiding or Storing Things
PDF
100% (1)
Cache Memory: A Safe Place For Hiding or Storing Things
34 pages
Cache1 2
PDF
No ratings yet
Cache1 2
30 pages
Unit 5 Dpco
PDF
No ratings yet
Unit 5 Dpco
20 pages
Input Output Organization(2.3)
PDF
No ratings yet
Input Output Organization(2.3)
151 pages
Cache Memory: A Safe Place For Hiding or Storing Things
PDF
No ratings yet
Cache Memory: A Safe Place For Hiding or Storing Things
34 pages
04 Cache Memory Comparc
PDF
No ratings yet
04 Cache Memory Comparc
47 pages
Cache Memory
PDF
No ratings yet
Cache Memory
4 pages
24-Cache Memory Mapping Techniques-14!03!2024
PDF
No ratings yet
24-Cache Memory Mapping Techniques-14!03!2024
36 pages
CSE332 Cache Memory 2 May2024
PDF
No ratings yet
CSE332 Cache Memory 2 May2024
138 pages
CA 08
PDF
No ratings yet
CA 08
17 pages
Chapter 2z Ppt
PDF
No ratings yet
Chapter 2z Ppt
54 pages
Chapter 6 Cache Memory
PDF
No ratings yet
Chapter 6 Cache Memory
22 pages
cache memory
PDF
No ratings yet
cache memory
7 pages
Cache Memory Homework
PDF
100% (1)
Cache Memory Homework
7 pages
Chapter_2z-ppt
PDF
No ratings yet
Chapter_2z-ppt
54 pages
Unit-6 Cache Memory Organization
PDF
No ratings yet
Unit-6 Cache Memory Organization
36 pages
15 Memory Hierarchy FINAL
PDF
No ratings yet
15 Memory Hierarchy FINAL
29 pages
Characteristics Location Capacity Unit of Transfer Access Method Performance Physical Type Physical Characteristics Organisation
PDF
No ratings yet
Characteristics Location Capacity Unit of Transfer Access Method Performance Physical Type Physical Characteristics Organisation
53 pages
UNIT-2 Computer Organization
PDF
No ratings yet
UNIT-2 Computer Organization
76 pages
Implementation of Cache Memory
PDF
No ratings yet
Implementation of Cache Memory
15 pages
Lecture 16
PDF
No ratings yet
Lecture 16
22 pages
Cache Memory
PDF
No ratings yet
Cache Memory
60 pages
Understand CPU Caching Concepts
PDF
No ratings yet
Understand CPU Caching Concepts
14 pages
פרק ט - גדול ומהיר - ניצול היררכיות זיכרון
PDF
No ratings yet
פרק ט - גדול ומהיר - ניצול היררכיות זיכרון
77 pages
53-Cache Memory_ Principles, Cache Memory Management Techniques-28!02!2025
PDF
No ratings yet
53-Cache Memory_ Principles, Cache Memory Management Techniques-28!02!2025
38 pages
Cache Memory.ppt_20250102_220402_0000
PDF
No ratings yet
Cache Memory.ppt_20250102_220402_0000
4 pages
Unit3 coa
PDF
No ratings yet
Unit3 coa
30 pages
William Stallings Computer Organization and Architecture 7th Edition Cache Memory
PDF
No ratings yet
William Stallings Computer Organization and Architecture 7th Edition Cache Memory
51 pages
Unit 5 Memory System
PDF
No ratings yet
Unit 5 Memory System
77 pages
Cache Memory: CS2100 - Computer Organization
PDF
No ratings yet
Cache Memory: CS2100 - Computer Organization
45 pages
Unit - 5 DPCO
PDF
No ratings yet
Unit - 5 DPCO
35 pages
Computer Organization and Architecture Chapter 7 Large and Fast Exploiting
PDF
No ratings yet
Computer Organization and Architecture Chapter 7 Large and Fast Exploiting
32 pages
UNIT 4_ee4604ab899872c2fb7aa8d7693177f7
PDF
No ratings yet
UNIT 4_ee4604ab899872c2fb7aa8d7693177f7
36 pages
25 e 50 Beb 5 Aad 8 F 60
PDF
No ratings yet
25 e 50 Beb 5 Aad 8 F 60
49 pages
Unit 4 Memory Hierarchy
PDF
No ratings yet
Unit 4 Memory Hierarchy
66 pages
Associative Memory
PDF
No ratings yet
Associative Memory
31 pages
Lec 23 CAOCache Memory
PDF
No ratings yet
Lec 23 CAOCache Memory
11 pages
Memory Cache: Computer Architecture and Organization
PDF
No ratings yet
Memory Cache: Computer Architecture and Organization
41 pages
Memory Organization Assignment
PDF
No ratings yet
Memory Organization Assignment
61 pages
Cache Memory 130126022606 Phpapp02
PDF
No ratings yet
Cache Memory 130126022606 Phpapp02
18 pages
L10 Cache Memory
PDF
No ratings yet
L10 Cache Memory
52 pages
Memory Organization: by Saniya Mhatre
PDF
No ratings yet
Memory Organization: by Saniya Mhatre
10 pages
04 Cache Memory
PDF
No ratings yet
04 Cache Memory
36 pages
Ca Mod 2
PDF
No ratings yet
Ca Mod 2
40 pages
Guide To Cache Memory
PDF
No ratings yet
Guide To Cache Memory
5 pages
Lec2 PDF
PDF
No ratings yet
Lec2 PDF
21 pages
Cache Memory Term Paper
PDF
100% (1)
Cache Memory Term Paper
6 pages
Computer Organization and Architecture: Cache Memory
PDF
100% (1)
Computer Organization and Architecture: Cache Memory
57 pages
Module 2- Memory Organization
PDF
No ratings yet
Module 2- Memory Organization
12 pages
1559460031_Chap 4 Cache Memory
PDF
No ratings yet
1559460031_Chap 4 Cache Memory
55 pages
Computer Mapping and Different Memory
PDF
No ratings yet
Computer Mapping and Different Memory
9 pages
Memory Organization
PDF
No ratings yet
Memory Organization
57 pages
Cache and The Memory Hierarchy Part One: Computer Organization II Spring 2017 Gedare Bloom
PDF
No ratings yet
Cache and The Memory Hierarchy Part One: Computer Organization II Spring 2017 Gedare Bloom
31 pages
Memory Organization: Dr. Bernard Chen PH.D
PDF
No ratings yet
Memory Organization: Dr. Bernard Chen PH.D
77 pages
03-Chap4-Cache Memory Mapping
PDF
No ratings yet
03-Chap4-Cache Memory Mapping
24 pages
Cache
PDF
No ratings yet
Cache
36 pages
kiswahili outline
PDF
No ratings yet
kiswahili outline
4 pages
Presentation Etiquette grooming ass
PDF
No ratings yet
Presentation Etiquette grooming ass
3 pages
Programming Langauages
PDF
No ratings yet
Programming Langauages
7 pages
Lecture 1-Salamu za Kiswahili, Kiswahili Greetings
PDF
No ratings yet
Lecture 1-Salamu za Kiswahili, Kiswahili Greetings
3 pages
pipeline
PDF
No ratings yet
pipeline
4 pages
CCLSCE201 revision
PDF
No ratings yet
CCLSCE201 revision
15 pages
subnetting
PDF
No ratings yet
subnetting
1 page
networking revision
PDF
No ratings yet
networking revision
17 pages
Group03 HCS
PDF
No ratings yet
Group03 HCS
46 pages
Cache Coherence
PDF
No ratings yet
Cache Coherence
7 pages