SlideShare a Scribd company logo
Memory hierarchy
Main Memory: memory unit that communicates directly with the CPU
(RAM)
Auxiliary Memory: device that provide backup storage (Disk Drives)
Example of auxiliary memory: magnetic disks and tapes.
 They are used for storing system programs, large data files, and
other backup information
 Only program programs and data currently needed by the
processor reside in main memory.
 All other information is stored in auxiliary memory and transferred
to main memory when needed.
 Memory hierarchy system consists of all storage devices from the
slow but high-capacity auxiliary memory to relatively faster main
memory, to an even smaller and faster cache memory.
 Magnetic tapes used to store removable files and disks used as
backup storage.
 CPU communicates with auxiliary memory through I/O processor.
Cache Memory: special very-high-speed memory to increase the
processing speed (Cache RAM)
o It is used to compensate the speed differential between main
memory access time and processor logic.
o CPU logic is faster than main memory access.
o So small cache employed between CPU and main memory
whose access time is close to processor logic clock cycle.
o So it is possible to increase the performance rate of the
computer.
 As the storage capacity of the memory increases, the cost per bit
for storing binary information decreases and the access time of the
memory becomes longer.
Example
 Auxiliary memory has a large storage capacity, is relatively
inexpensive, but has low access speed compared to main memory.
 The cache memory is very small, relatively expensive, and has very
high access speed.
Goal of memory hierarchy
 To obtain the highest-possible average access speed while
minimizing the total cost.
Ratio
 Access time ratio between cache and main memory is about 1 to 7
For Example
 Cache memory may have an access time of 100ns, while main
memory access time may be 700ns.
 Auxiliary memory average access time is usually 1000 times that of
main memory.
Block Size
 Block size in auxiliary memory typically ranges from 256 to 2048
words, while cache block size is typically from 1 to 16 words.
Multiprogramming
 Multiprogramming refers to the existence of two or more programs
in different parts of the memory hierarchy at the same time.
 For example, when one program is waiting for input or output
transfer, there is another program ready to utilize the CPU.
Memory management
 A program with its data normally resides in auxiliary memory.
When the program or a segment of the program is to be executed, it
is transferred to main memory to be executed by the CPU.
 It is the task of the operating system to maintain in main memory
a portion of this information that is currently active.
 The part of the computer system that supervises the flow of
information between auxiliary memory and main memory is called
the memory management system.

More Related Content

PPTX
Instruction cycle
PDF
Processor architecture
PPT
Memory hierarchy
PPTX
Direct memory access
DOCX
Bus stucture
PPTX
Operating system 11 system calls
PDF
DBMS Vardhaman.pdf
PPTX
Design and Implementation of an Advanced DMA Controller on AMBA-Based SoC
Instruction cycle
Processor architecture
Memory hierarchy
Direct memory access
Bus stucture
Operating system 11 system calls
DBMS Vardhaman.pdf
Design and Implementation of an Advanced DMA Controller on AMBA-Based SoC

What's hot (20)

PPT
Memory Organization
PPTX
Microcontroller
PPTX
Embedded system design process
PPTX
Operating System Structure
PPTX
Direct Memory Access(DMA)
PPTX
Basics of embedded system design
PPTX
Memory Organization
PPTX
Operating System-Memory Management
PPTX
Input & Output
PPTX
Input Output Organization
PPTX
Interrupts ppt
PDF
Embedded systems notes
PPT
Assembly language programming_fundamentals 8086
PPT
Embedded system
PPTX
PCI Slot
PPT
Communication Interface of The Embedded Systems
PPSX
Lect 2 ARM processor architecture
PPT
Memory management
PDF
ARM Architecture
Memory Organization
Microcontroller
Embedded system design process
Operating System Structure
Direct Memory Access(DMA)
Basics of embedded system design
Memory Organization
Operating System-Memory Management
Input & Output
Input Output Organization
Interrupts ppt
Embedded systems notes
Assembly language programming_fundamentals 8086
Embedded system
PCI Slot
Communication Interface of The Embedded Systems
Lect 2 ARM processor architecture
Memory management
ARM Architecture
Ad

Similar to Memory hierarchy (20)

PPTX
COA (Unit_4.pptx)
PPTX
computer architecture and organisation
PDF
Detail explanation of memory organization
PPTX
Memory Hierarchy
PPTX
co-7.pptx mca sem computer organization
PPT
Cache memory ...
PPT
Unit 5-lecture-1
PPTX
Computer organizatin.Chapter Seven.pptxs
PDF
Unit IV Memory and I/O Organization
PPTX
Memory Hierarchy
PPTX
Memory hierarchy
PDF
3 computer memory
PDF
Introduction to memory management
PPTX
coa_zunasnsdfjdfjdfjdjabskjdbkasclkar.pptx
PPTX
Memory organization in computer architecture
PPT
Computer organisation basic presentation
PPTX
Input output interface its types and memory
PPTX
Memory Organization digital image processing
PPTX
Memory organization
PDF
COA (Unit_4.pptx)
computer architecture and organisation
Detail explanation of memory organization
Memory Hierarchy
co-7.pptx mca sem computer organization
Cache memory ...
Unit 5-lecture-1
Computer organizatin.Chapter Seven.pptxs
Unit IV Memory and I/O Organization
Memory Hierarchy
Memory hierarchy
3 computer memory
Introduction to memory management
coa_zunasnsdfjdfjdfjdjabskjdbkasclkar.pptx
Memory organization in computer architecture
Computer organisation basic presentation
Input output interface its types and memory
Memory Organization digital image processing
Memory organization
Ad

More from NancyBeaulah_R (12)

PDF
Addressing Modes
PPTX
Common Bus System.pptx
PPTX
Computer Registers.pptx
PPTX
Machine Learning.pptx
PPTX
Chapter 1 2 - some size factors
PPTX
Chapter 1 1 - intro ppt
PDF
Associative memory
PDF
Asynchronous data transfer
PPTX
Software maintenance
PPTX
Walkthroughs
PPTX
Quality and productivity factors
PDF
Programming team structure
Addressing Modes
Common Bus System.pptx
Computer Registers.pptx
Machine Learning.pptx
Chapter 1 2 - some size factors
Chapter 1 1 - intro ppt
Associative memory
Asynchronous data transfer
Software maintenance
Walkthroughs
Quality and productivity factors
Programming team structure

Recently uploaded (20)

PPTX
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
PPTX
Pharmacology of Heart Failure /Pharmacotherapy of CHF
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Cell Types and Its function , kingdom of life
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Complications of Minimal Access Surgery at WLH
Tissue processing ( HISTOPATHOLOGICAL TECHNIQUE
Pharmacology of Heart Failure /Pharmacotherapy of CHF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
O5-L3 Freight Transport Ops (International) V1.pdf
Cell Types and Its function , kingdom of life
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Chinmaya Tiranga quiz Grand Finale.pdf
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Computing-Curriculum for Schools in Ghana
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Final Presentation General Medicine 03-08-2024.pptx
Microbial diseases, their pathogenesis and prophylaxis
O7-L3 Supply Chain Operations - ICLT Program
Weekly quiz Compilation Jan -July 25.pdf
Anesthesia in Laparoscopic Surgery in India
A systematic review of self-coping strategies used by university students to ...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Complications of Minimal Access Surgery at WLH

Memory hierarchy

  • 1. Memory hierarchy Main Memory: memory unit that communicates directly with the CPU (RAM) Auxiliary Memory: device that provide backup storage (Disk Drives) Example of auxiliary memory: magnetic disks and tapes.  They are used for storing system programs, large data files, and other backup information  Only program programs and data currently needed by the processor reside in main memory.  All other information is stored in auxiliary memory and transferred to main memory when needed.  Memory hierarchy system consists of all storage devices from the slow but high-capacity auxiliary memory to relatively faster main memory, to an even smaller and faster cache memory.  Magnetic tapes used to store removable files and disks used as backup storage.  CPU communicates with auxiliary memory through I/O processor. Cache Memory: special very-high-speed memory to increase the processing speed (Cache RAM) o It is used to compensate the speed differential between main memory access time and processor logic. o CPU logic is faster than main memory access. o So small cache employed between CPU and main memory whose access time is close to processor logic clock cycle. o So it is possible to increase the performance rate of the computer.
  • 2.  As the storage capacity of the memory increases, the cost per bit for storing binary information decreases and the access time of the memory becomes longer. Example  Auxiliary memory has a large storage capacity, is relatively inexpensive, but has low access speed compared to main memory.  The cache memory is very small, relatively expensive, and has very high access speed. Goal of memory hierarchy  To obtain the highest-possible average access speed while minimizing the total cost. Ratio  Access time ratio between cache and main memory is about 1 to 7 For Example  Cache memory may have an access time of 100ns, while main memory access time may be 700ns.  Auxiliary memory average access time is usually 1000 times that of main memory. Block Size  Block size in auxiliary memory typically ranges from 256 to 2048 words, while cache block size is typically from 1 to 16 words. Multiprogramming  Multiprogramming refers to the existence of two or more programs in different parts of the memory hierarchy at the same time.  For example, when one program is waiting for input or output transfer, there is another program ready to utilize the CPU. Memory management  A program with its data normally resides in auxiliary memory. When the program or a segment of the program is to be executed, it is transferred to main memory to be executed by the CPU.  It is the task of the operating system to maintain in main memory a portion of this information that is currently active.
  • 3.  The part of the computer system that supervises the flow of information between auxiliary memory and main memory is called the memory management system.