SlideShare a Scribd company logo
1 of 17
Memory Hierarchy
BY:SURBHI SAROHA
SYLLABUS
 Main Memory
 Auxillary Memory
 Associative Memory
 Cache Memory
 Virtual Memory
 Memory Management Hardware
Main Memory
 The main memory acts as the central storage unit in a computer system.
 It is a relatively large and fast memory which is used to store programs and
data during the run time operations.
 The primary technology used for the main memory is based on semiconductor
integrated circuits.
 The integrated circuits for the main memory are classified into two major
units.
 RAM (Random Access Memory) integrated circuit chips
 ROM (Read Only Memory) integrated circuit chips
RAM integrated circuit chips
 The RAM integrated circuit chips are further classified into two possible
operating modes, static and dynamic.
 The primary compositions of a static RAM are flip-flops that store the binary
information.
 The nature of the stored information is volatile, i.e. it remains valid as long
as power is applied to the system.
 The static RAM is easy to use and takes less time performing read and write
operations as compared to dynamic RAM.
ROM integrated circuit
 The primary component of the main memory is RAM integrated circuit chips,
but a portion of memory may be constructed with ROM chips.
 A ROM memory is used for keeping programs and data that are permanently
resident in the computer.
 Apart from the permanent storage of data, the ROM portion of main memory
is needed for storing an initial program called a bootstrap loader.
 The primary function of the bootstrap loader program is to start the
computer software operating when power is turned on.
Auxillary Memory
 An Auxiliary memory is referred to as the lowest-cost, highest-space, and slowest-
approach storage in a computer system.
 It is where programs and information are preserved for long-term storage or when
not in direct use.
 The most typical auxiliary memory devices used in computer systems are magnetic
disks and tapes.
 Magnetic Disks
 A magnetic disk is a round plate generated of metal or plastic coated with
magnetized material. There are both sides of the disk are used and multiple disks
can be stacked on one spindle with read/write heads accessible on each surface.
 All disks revolve together at high speed and are not stopped or initiated for access
purposes. Bits are saved in the magnetized surface in marks along concentric
circles known as tracks. The tracks are frequently divided into areas known as
sectors.
Magnetic Tape
 Magnetic tape transport includes the robotic, mechanical, and electronic
components to support the methods and control structure for a magnetic tape
unit.
 The tape is a layer of plastic coated with a magnetic documentation medium.
 Bits are listed as a magnetic stain on the tape along various tracks. There are
seven or nine bits are recorded together to form a character together with a
parity bit. Read/write heads are mounted one in each track therefore that
information can be recorded and read as a series of characters.
 Magnetic tape units can be stopped, initiated to move forward, or in the
opposite, or it can be reversed. However, they cannot be initiated or stopped
fast enough between single characters.
 For this reason, data is recorded in blocks defined as records. Gaps of
unrecorded tape are added between records where the tape can be stopped.
Associative Memory
 Associative memory is also known as content addressable memory (CAM) or
associative storage or associative array.
 It is a special type of memory that is optimized for performing searches
through data, as opposed to providing a simple direct access to the data
based on the address.
 Associative memory of conventional semiconductor memory (usually RAM)
with added comparison circuit that enables a search operation to complete in
a single clock cycle.
 It is a hardware search engine, a special type of computer memory used in
certain very high searching applications.
Applications of Associative memory :-
 It can be only used in memory allocation format.
 It is widely used in the database management systems, etc.
 Advantages of Associative memory :-
 It is used where search time needs to be less or short.
 It is suitable for parallel searches.
 It is often used to speedup databases.
 It is used in page tables used by the virtual memory and used in neural networks.
 Disadvantages of Associative memory :-
 It is more expensive than RAM.
 Each cell must have storage capability and logical circuits for matching its content
with external argument.
Cache Memory
 Cache Memory is a special very high-speed memory.
 It is used to speed up and synchronizing with high-speed CPU.
 Cache memory is costlier than main memory or disk memory but economical
than CPU registers.
 Cache memory is an extremely fast memory type that acts as a buffer
between RAM and the CPU.
 It holds frequently requested data and instructions so that they are
immediately available to the CPU when needed.
Cont…
 Cache memory is used to reduce the average time to access data from the
Main memory.
 The cache is a smaller and faster memory which stores copies of the data
from frequently used main memory locations.
 There are various different independent caches in a CPU, which store
instructions and data.
Virtual Memory
 Virtual Memory is a storage allocation scheme in which secondary memory can
be addressed as though it were part of the main memory.
 The addresses a program may use to reference memory are distinguished
from the addresses the memory system uses to identify physical storage sites,
and program-generated addresses are translated automatically to the
corresponding machine addresses.
 The size of virtual storage is limited by the addressing scheme of the
computer system and the amount of secondary memory is available not by the
actual number of the main storage locations.
Following are the situations, when entire
program is not required to be loaded fully in
main memory.
 User written error handling routines are used only when an error occurred in the
data or computation.
 Certain options and features of a program may be used rarely.
 Many tables are assigned a fixed amount of address space even though only a small
amount of the table is actually used.
 The ability to execute a program that is only partially in memory would counter
many benefits.
 Less number of I/O would be needed to load or swap each user program into
memory.
 A program would no longer be constrained by the amount of physical memory that
is available.
 Each user program could take less physical memory, more programs could be run
the same time, with a corresponding increase in CPU utilization and throughput.
Memory Management Hardware
 In a multiprogramming computer, the operating system resides in a part of
memory and the rest is used by multiple processes.
 The task of subdividing the memory among different processes is called
memory management.
 Memory management is a method in the operating system to manage
operations between main memory and disk during process execution.
 The main aim of memory management is to achieve efficient utilization of
memory.
Why Memory Management is required:
 Allocate and de-allocate memory before and after process execution.
 To keep track of used memory space by processes.
 To minimize fragmentation issues.
 To proper utilization of main memory.
 To maintain data integrity while executing of process.
Thank you

More Related Content

What's hot

External memory - Computer Architecture
External memory - Computer ArchitectureExternal memory - Computer Architecture
External memory - Computer ArchitectureBretz Harllynne Moltio
 
Memory management
Memory managementMemory management
Memory managementcpjcollege
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory managementrprajat007
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)Page Maker
 
Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Maitree Patel
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architectureFaisal Hussain
 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating SystemRaj Mohan
 
Free Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFSFree Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFSUnited International University
 
Distributed Shared Memory Systems
Distributed Shared Memory SystemsDistributed Shared Memory Systems
Distributed Shared Memory SystemsArush Nagpal
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage mediaSrinath Sri
 
Asynchronous data transfer
Asynchronous data transferAsynchronous data transfer
Asynchronous data transferpriya Nithya
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dosvanamali_vanu
 

What's hot (20)

operating system structure
operating system structureoperating system structure
operating system structure
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Memory Hierarchy
Memory HierarchyMemory Hierarchy
Memory Hierarchy
 
External memory - Computer Architecture
External memory - Computer ArchitectureExternal memory - Computer Architecture
External memory - Computer Architecture
 
Memory management
Memory managementMemory management
Memory management
 
Operating system memory management
Operating system memory managementOperating system memory management
Operating system memory management
 
Direct Memory Access(DMA)
Direct Memory Access(DMA)Direct Memory Access(DMA)
Direct Memory Access(DMA)
 
Scheduling Definition, objectives and types
Scheduling Definition, objectives and types Scheduling Definition, objectives and types
Scheduling Definition, objectives and types
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
Paging and Segmentation in Operating System
Paging and Segmentation in Operating SystemPaging and Segmentation in Operating System
Paging and Segmentation in Operating System
 
Free Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFSFree Space Management, Efficiency & Performance, Recovery and NFS
Free Space Management, Efficiency & Performance, Recovery and NFS
 
Paging and segmentation
Paging and segmentationPaging and segmentation
Paging and segmentation
 
Dma
DmaDma
Dma
 
Distributed Shared Memory Systems
Distributed Shared Memory SystemsDistributed Shared Memory Systems
Distributed Shared Memory Systems
 
design of accumlator
design of accumlatordesign of accumlator
design of accumlator
 
Disk scheduling
Disk schedulingDisk scheduling
Disk scheduling
 
Overview of physical storage media
Overview of physical storage mediaOverview of physical storage media
Overview of physical storage media
 
Cache memory
Cache memoryCache memory
Cache memory
 
Asynchronous data transfer
Asynchronous data transferAsynchronous data transfer
Asynchronous data transfer
 
Design issues of dos
Design issues of dosDesign issues of dos
Design issues of dos
 

Similar to Memory Hierarchy

Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryAshik Iqbal
 
Paging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementPaging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementkazim Hussain
 
COMPUTER MEMORY
COMPUTER MEMORYCOMPUTER MEMORY
COMPUTER MEMORYRajat More
 
Memory Organization of a Computer System
Memory Organization of a Computer SystemMemory Organization of a Computer System
Memory Organization of a Computer SystemTaminul Islam
 
Memory management ppt coa
Memory management ppt coaMemory management ppt coa
Memory management ppt coaBharti Khemani
 
Ram and types of ram.Cache
Ram and types of ram.CacheRam and types of ram.Cache
Ram and types of ram.Cachehamza mukhtiar
 
Advanced computer architechture -Memory Hierarchies and its Properties and Type
Advanced computer architechture -Memory Hierarchies and its Properties and TypeAdvanced computer architechture -Memory Hierarchies and its Properties and Type
Advanced computer architechture -Memory Hierarchies and its Properties and TypeLalfakawmaKh
 
2. the memory systems (module2)
2. the memory systems (module2)2. the memory systems (module2)
2. the memory systems (module2)Ajit Saraf
 

Similar to Memory Hierarchy (20)

Memory hierarchy
Memory hierarchyMemory hierarchy
Memory hierarchy
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache Memory
 
Paging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory managementPaging +Algorithem+Segmentation+memory management
Paging +Algorithem+Segmentation+memory management
 
Memory devices
Memory devicesMemory devices
Memory devices
 
Os unit 2
Os unit 2Os unit 2
Os unit 2
 
COMPUTER MEMORY
COMPUTER MEMORYCOMPUTER MEMORY
COMPUTER MEMORY
 
Memory managment
Memory managmentMemory managment
Memory managment
 
Memory
MemoryMemory
Memory
 
Memory Organization of a Computer System
Memory Organization of a Computer SystemMemory Organization of a Computer System
Memory Organization of a Computer System
 
Memory management ppt coa
Memory management ppt coaMemory management ppt coa
Memory management ppt coa
 
Opetating System Memory management
Opetating System Memory managementOpetating System Memory management
Opetating System Memory management
 
UNIT-2 OS.pptx
UNIT-2 OS.pptxUNIT-2 OS.pptx
UNIT-2 OS.pptx
 
unit5_os (1).pptx
unit5_os (1).pptxunit5_os (1).pptx
unit5_os (1).pptx
 
Ram and types of ram.Cache
Ram and types of ram.CacheRam and types of ram.Cache
Ram and types of ram.Cache
 
Memory comp
Memory compMemory comp
Memory comp
 
virtual memory
virtual memoryvirtual memory
virtual memory
 
Advanced computer architechture -Memory Hierarchies and its Properties and Type
Advanced computer architechture -Memory Hierarchies and its Properties and TypeAdvanced computer architechture -Memory Hierarchies and its Properties and Type
Advanced computer architechture -Memory Hierarchies and its Properties and Type
 
2. the memory systems (module2)
2. the memory systems (module2)2. the memory systems (module2)
2. the memory systems (module2)
 
M E M O R Y
M E M O R YM E M O R Y
M E M O R Y
 
Operating system
Operating systemOperating system
Operating system
 

More from SURBHI SAROHA

Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2SURBHI SAROHA
 
Management Information System(Unit 2).pptx
Management Information System(Unit 2).pptxManagement Information System(Unit 2).pptx
Management Information System(Unit 2).pptxSURBHI SAROHA
 
Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)SURBHI SAROHA
 
Management Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptxManagement Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptxSURBHI SAROHA
 
Introduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptxIntroduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptxSURBHI SAROHA
 
Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)SURBHI SAROHA
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)SURBHI SAROHA
 
Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1SURBHI SAROHA
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)SURBHI SAROHA
 

More from SURBHI SAROHA (20)

Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2Cloud Computing (Infrastructure as a Service)UNIT 2
Cloud Computing (Infrastructure as a Service)UNIT 2
 
Management Information System(Unit 2).pptx
Management Information System(Unit 2).pptxManagement Information System(Unit 2).pptx
Management Information System(Unit 2).pptx
 
Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)Searching in Data Structure(Linear search and Binary search)
Searching in Data Structure(Linear search and Binary search)
 
Management Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptxManagement Information System(UNIT 1).pptx
Management Information System(UNIT 1).pptx
 
Introduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptxIntroduction to Cloud Computing(UNIT 1).pptx
Introduction to Cloud Computing(UNIT 1).pptx
 
JAVA (UNIT 5)
JAVA (UNIT 5)JAVA (UNIT 5)
JAVA (UNIT 5)
 
DBMS (UNIT 5)
DBMS (UNIT 5)DBMS (UNIT 5)
DBMS (UNIT 5)
 
DBMS UNIT 4
DBMS UNIT 4DBMS UNIT 4
DBMS UNIT 4
 
JAVA(UNIT 4)
JAVA(UNIT 4)JAVA(UNIT 4)
JAVA(UNIT 4)
 
OOPs & C++(UNIT 5)
OOPs & C++(UNIT 5)OOPs & C++(UNIT 5)
OOPs & C++(UNIT 5)
 
OOPS & C++(UNIT 4)
OOPS & C++(UNIT 4)OOPS & C++(UNIT 4)
OOPS & C++(UNIT 4)
 
DBMS UNIT 3
DBMS UNIT 3DBMS UNIT 3
DBMS UNIT 3
 
JAVA (UNIT 3)
JAVA (UNIT 3)JAVA (UNIT 3)
JAVA (UNIT 3)
 
Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)Keys in dbms(UNIT 2)
Keys in dbms(UNIT 2)
 
DBMS (UNIT 2)
DBMS (UNIT 2)DBMS (UNIT 2)
DBMS (UNIT 2)
 
JAVA UNIT 2
JAVA UNIT 2JAVA UNIT 2
JAVA UNIT 2
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
 
Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1Object-Oriented Programming with Java UNIT 1
Object-Oriented Programming with Java UNIT 1
 
Database Management System(UNIT 1)
Database Management System(UNIT 1)Database Management System(UNIT 1)
Database Management System(UNIT 1)
 
OOPs & C++ UNIT 3
OOPs & C++ UNIT 3OOPs & C++ UNIT 3
OOPs & C++ UNIT 3
 

Recently uploaded

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docxPoojaSen20
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsKarinaGenton
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
mini mental status format.docx
mini    mental       status     format.docxmini    mental       status     format.docx
mini mental status format.docx
 
Science 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its CharacteristicsScience 7 - LAND and SEA BREEZE and its Characteristics
Science 7 - LAND and SEA BREEZE and its Characteristics
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 

Memory Hierarchy

  • 2. SYLLABUS  Main Memory  Auxillary Memory  Associative Memory  Cache Memory  Virtual Memory  Memory Management Hardware
  • 3. Main Memory  The main memory acts as the central storage unit in a computer system.  It is a relatively large and fast memory which is used to store programs and data during the run time operations.  The primary technology used for the main memory is based on semiconductor integrated circuits.  The integrated circuits for the main memory are classified into two major units.  RAM (Random Access Memory) integrated circuit chips  ROM (Read Only Memory) integrated circuit chips
  • 4. RAM integrated circuit chips  The RAM integrated circuit chips are further classified into two possible operating modes, static and dynamic.  The primary compositions of a static RAM are flip-flops that store the binary information.  The nature of the stored information is volatile, i.e. it remains valid as long as power is applied to the system.  The static RAM is easy to use and takes less time performing read and write operations as compared to dynamic RAM.
  • 5. ROM integrated circuit  The primary component of the main memory is RAM integrated circuit chips, but a portion of memory may be constructed with ROM chips.  A ROM memory is used for keeping programs and data that are permanently resident in the computer.  Apart from the permanent storage of data, the ROM portion of main memory is needed for storing an initial program called a bootstrap loader.  The primary function of the bootstrap loader program is to start the computer software operating when power is turned on.
  • 6. Auxillary Memory  An Auxiliary memory is referred to as the lowest-cost, highest-space, and slowest- approach storage in a computer system.  It is where programs and information are preserved for long-term storage or when not in direct use.  The most typical auxiliary memory devices used in computer systems are magnetic disks and tapes.  Magnetic Disks  A magnetic disk is a round plate generated of metal or plastic coated with magnetized material. There are both sides of the disk are used and multiple disks can be stacked on one spindle with read/write heads accessible on each surface.  All disks revolve together at high speed and are not stopped or initiated for access purposes. Bits are saved in the magnetized surface in marks along concentric circles known as tracks. The tracks are frequently divided into areas known as sectors.
  • 7. Magnetic Tape  Magnetic tape transport includes the robotic, mechanical, and electronic components to support the methods and control structure for a magnetic tape unit.  The tape is a layer of plastic coated with a magnetic documentation medium.  Bits are listed as a magnetic stain on the tape along various tracks. There are seven or nine bits are recorded together to form a character together with a parity bit. Read/write heads are mounted one in each track therefore that information can be recorded and read as a series of characters.  Magnetic tape units can be stopped, initiated to move forward, or in the opposite, or it can be reversed. However, they cannot be initiated or stopped fast enough between single characters.  For this reason, data is recorded in blocks defined as records. Gaps of unrecorded tape are added between records where the tape can be stopped.
  • 8. Associative Memory  Associative memory is also known as content addressable memory (CAM) or associative storage or associative array.  It is a special type of memory that is optimized for performing searches through data, as opposed to providing a simple direct access to the data based on the address.  Associative memory of conventional semiconductor memory (usually RAM) with added comparison circuit that enables a search operation to complete in a single clock cycle.  It is a hardware search engine, a special type of computer memory used in certain very high searching applications.
  • 9. Applications of Associative memory :-  It can be only used in memory allocation format.  It is widely used in the database management systems, etc.  Advantages of Associative memory :-  It is used where search time needs to be less or short.  It is suitable for parallel searches.  It is often used to speedup databases.  It is used in page tables used by the virtual memory and used in neural networks.  Disadvantages of Associative memory :-  It is more expensive than RAM.  Each cell must have storage capability and logical circuits for matching its content with external argument.
  • 10. Cache Memory  Cache Memory is a special very high-speed memory.  It is used to speed up and synchronizing with high-speed CPU.  Cache memory is costlier than main memory or disk memory but economical than CPU registers.  Cache memory is an extremely fast memory type that acts as a buffer between RAM and the CPU.  It holds frequently requested data and instructions so that they are immediately available to the CPU when needed.
  • 11. Cont…  Cache memory is used to reduce the average time to access data from the Main memory.  The cache is a smaller and faster memory which stores copies of the data from frequently used main memory locations.  There are various different independent caches in a CPU, which store instructions and data.
  • 12. Virtual Memory  Virtual Memory is a storage allocation scheme in which secondary memory can be addressed as though it were part of the main memory.  The addresses a program may use to reference memory are distinguished from the addresses the memory system uses to identify physical storage sites, and program-generated addresses are translated automatically to the corresponding machine addresses.  The size of virtual storage is limited by the addressing scheme of the computer system and the amount of secondary memory is available not by the actual number of the main storage locations.
  • 13. Following are the situations, when entire program is not required to be loaded fully in main memory.  User written error handling routines are used only when an error occurred in the data or computation.  Certain options and features of a program may be used rarely.  Many tables are assigned a fixed amount of address space even though only a small amount of the table is actually used.  The ability to execute a program that is only partially in memory would counter many benefits.  Less number of I/O would be needed to load or swap each user program into memory.  A program would no longer be constrained by the amount of physical memory that is available.  Each user program could take less physical memory, more programs could be run the same time, with a corresponding increase in CPU utilization and throughput.
  • 14.
  • 15. Memory Management Hardware  In a multiprogramming computer, the operating system resides in a part of memory and the rest is used by multiple processes.  The task of subdividing the memory among different processes is called memory management.  Memory management is a method in the operating system to manage operations between main memory and disk during process execution.  The main aim of memory management is to achieve efficient utilization of memory.
  • 16. Why Memory Management is required:  Allocate and de-allocate memory before and after process execution.  To keep track of used memory space by processes.  To minimize fragmentation issues.  To proper utilization of main memory.  To maintain data integrity while executing of process.