SlideShare a Scribd company logo
1 of 10
Operating System
Unit - 2
MEMORY HIERARCHY IN OPERATING SYSTEM BY RAM K PALIWAL
9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 1
Memory Hierarchy
The design constraints on a computer’s memory can be summed up by three
questions:
1. How much?
2. How fast?
3. How expensive?
As might be expected, there is a tradeoff among the three key characteristics of
memory: namely,
• Capacity
• Access time
• Cost.
9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 2
Memory Hierarchy
A variety of technologies are used to implement memory systems,
and across this spectrum of technologies, the following relationships
hold:
• Faster access time, greater cost per bit
• Greater capacity, smaller cost per bit
• Greater capacity, slower access speed
The way out of this dilemma is to not rely on a single memory
component or technology, but to employ a memory hierarchy.
9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 3
Memory
Hierarchy
9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 4
Memory Hierarchy
A typical hierarchy is illustrated in last diagram. As one goes down
the hierarchy, the following occur:
◦ a. Decreasing cost per bit
◦ b. Increasing capacity
◦ c. Increasing access time
◦ d. Decreasing frequency of access to the memory by the processor
Thus, smaller, more expensive, faster memories are supplemented
by larger, cheaper, slower memories. The key to the success of this
organization decreasing frequency of access at lower levels.
9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 5
Memory Hierarchy
This Memory Hierarchy Design is divided into 2 main types:
External Memory or Secondary Memory –
Comprising of Magnetic Disk, Optical Disk, Magnetic Tape i.e.
peripheral storage devices which are accessible by the processor via
I/O Module.
Internal Memory or Primary Memory –
Comprising of Main Memory, Cache Memory & CPU registers. This is
directly accessible by the processor.
9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 6
Memory Hierarchy Interaction
9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 7
Memory Access Methods
Each memory type, is a collection of numerous memory locations. To
access data from any memory, first it must be located and then the
data is read from the memory location. Following are the methods to
access information from memory locations:
◦ Random Access: Main memories are random access memories, in which each
memory location has a unique address. Using this unique address any
memory location can be reached in the same amount of time in any order.
◦ Sequential Access: This methods allows memory access in a sequence or in
order.
◦ Direct Access: In this mode, information is stored in tracks, with each track
having a separate read/write head.
9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 8
Memory Hierarchy
Cache Memory
The data or contents of the main memory that are used again and again by CPU, are stored in
the cache memory so that we can easily access that data in shorter time.
Hit Ratio
The performance of cache memory is measured in terms of a quantity called hit ratio. When the
CPU refers to memory and finds the word in cache it is said to produce a hit. If the word is not
found in cache, it is in main memory then it counts as a miss.
The ratio of the number of hits to the total CPU references to memory is called hit ratio.
Hit Ratio = Hit/(Hit + Miss)
9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 9
References
1. Operating System Concept ninth Edition by Abraham Silberschatz and Galvin
2. Operating Systems, internals and Design Principles, sixth edition by William Stalling
3. https://www.studytonight.com/computer-architecture/memory-organization
9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 10

More Related Content

What's hot

Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memoryDeepak John
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsWayne Jones Jnr
 
Memory organization
Memory organizationMemory organization
Memory organizationAL- AMIN
 
External memory - Computer Architecture
External memory - Computer ArchitectureExternal memory - Computer Architecture
External memory - Computer ArchitectureBretz Harllynne Moltio
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memoryPrakharBansal29
 
Memory organisation ppt final presentation
Memory organisation ppt final presentationMemory organisation ppt final presentation
Memory organisation ppt final presentationrockymani
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)Sandesh Jonchhe
 
Virtual memory presentation
Virtual memory presentationVirtual memory presentation
Virtual memory presentationRanjeet Kumar
 
Classification of memory hierarchy in system unit
Classification of memory hierarchy in system unitClassification of memory hierarchy in system unit
Classification of memory hierarchy in system unitDeepjyoti Talukdar
 
Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5)
Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5)Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5)
Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5)Raid Data Recovery
 
Cache memoy designed by Mohd Tariq
Cache memoy designed by Mohd TariqCache memoy designed by Mohd Tariq
Cache memoy designed by Mohd TariqMohd Tariq
 
Memory presentation
Memory presentationMemory presentation
Memory presentationaaravSingh41
 
Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)sumanth ch
 

What's hot (20)

Computer organization memory
Computer organization memoryComputer organization memory
Computer organization memory
 
Chapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage SystemsChapter 12 - Mass Storage Systems
Chapter 12 - Mass Storage Systems
 
Memory organization
Memory organizationMemory organization
Memory organization
 
6.distributed shared memory
6.distributed shared memory6.distributed shared memory
6.distributed shared memory
 
External memory - Computer Architecture
External memory - Computer ArchitectureExternal memory - Computer Architecture
External memory - Computer Architecture
 
Cache memory and virtual memory
Cache memory and virtual memoryCache memory and virtual memory
Cache memory and virtual memory
 
Memory organisation ppt final presentation
Memory organisation ppt final presentationMemory organisation ppt final presentation
Memory organisation ppt final presentation
 
Memory organization (Computer architecture)
Memory organization (Computer architecture)Memory organization (Computer architecture)
Memory organization (Computer architecture)
 
Virtual memory presentation
Virtual memory presentationVirtual memory presentation
Virtual memory presentation
 
Classification of memory hierarchy in system unit
Classification of memory hierarchy in system unitClassification of memory hierarchy in system unit
Classification of memory hierarchy in system unit
 
Cache memory presentation
Cache memory presentationCache memory presentation
Cache memory presentation
 
Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5)
Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5)Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5)
Understanding RAID Levels (RAID 0, RAID 1, RAID 2, RAID 3, RAID 4, RAID 5)
 
Cache memory
Cache memory Cache memory
Cache memory
 
Multiprocessor system
Multiprocessor system Multiprocessor system
Multiprocessor system
 
Cache memoy designed by Mohd Tariq
Cache memoy designed by Mohd TariqCache memoy designed by Mohd Tariq
Cache memoy designed by Mohd Tariq
 
Memory system
Memory systemMemory system
Memory system
 
Memory presentation
Memory presentationMemory presentation
Memory presentation
 
Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)Memory Hierarchy (RAM and ROM)
Memory Hierarchy (RAM and ROM)
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
Cache Memory
Cache MemoryCache Memory
Cache Memory
 

Similar to Memory hierarchy unit 2 by ram k paliwal

2. the memory systems (module2)
2. the memory systems (module2)2. the memory systems (module2)
2. the memory systems (module2)Ajit Saraf
 
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
 
cachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdfcachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdfOmGadekar2
 
Memory Organization
Memory OrganizationMemory Organization
Memory OrganizationStella526835
 
AI and EXPERT SYSTEM of expert system .pptx
AI and EXPERT SYSTEM of expert system .pptxAI and EXPERT SYSTEM of expert system .pptx
AI and EXPERT SYSTEM of expert system .pptxsanjutoppo93
 
Advanced Computer Arch Assign II
Advanced Computer Arch Assign IIAdvanced Computer Arch Assign II
Advanced Computer Arch Assign IIJoshua Gorinson
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architectureFaisal Hussain
 
BBA CHAPTER COMPUTER HARDWARE 5 .pptx
BBA CHAPTER COMPUTER HARDWARE    5 .pptxBBA CHAPTER COMPUTER HARDWARE    5 .pptx
BBA CHAPTER COMPUTER HARDWARE 5 .pptxRoshanKC10
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryAshik Iqbal
 
Memory Hierarchy.pptx
Memory Hierarchy.pptxMemory Hierarchy.pptx
Memory Hierarchy.pptxGOLDAtomics
 
Memory organisation
Memory organisationMemory organisation
Memory organisationankush_kumar
 

Similar to Memory hierarchy unit 2 by ram k paliwal (20)

2. the memory systems (module2)
2. the memory systems (module2)2. the memory systems (module2)
2. the memory systems (module2)
 
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
 
Memory
MemoryMemory
Memory
 
Memory devices
Memory devicesMemory devices
Memory devices
 
cachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdfcachememory-210517060741 (1).pdf
cachememory-210517060741 (1).pdf
 
M E M O R Y
M E M O R YM E M O R Y
M E M O R Y
 
Memory Organization
Memory OrganizationMemory Organization
Memory Organization
 
AI and EXPERT SYSTEM of expert system .pptx
AI and EXPERT SYSTEM of expert system .pptxAI and EXPERT SYSTEM of expert system .pptx
AI and EXPERT SYSTEM of expert system .pptx
 
Cmp
CmpCmp
Cmp
 
Advanced Computer Arch Assign II
Advanced Computer Arch Assign IIAdvanced Computer Arch Assign II
Advanced Computer Arch Assign II
 
Memory organization in computer architecture
Memory organization in computer architectureMemory organization in computer architecture
Memory organization in computer architecture
 
memory management ppt .pdf
memory management ppt .pdfmemory management ppt .pdf
memory management ppt .pdf
 
Cache Memory.pptx
Cache Memory.pptxCache Memory.pptx
Cache Memory.pptx
 
BBA CHAPTER COMPUTER HARDWARE 5 .pptx
BBA CHAPTER COMPUTER HARDWARE    5 .pptxBBA CHAPTER COMPUTER HARDWARE    5 .pptx
BBA CHAPTER COMPUTER HARDWARE 5 .pptx
 
Virtual Memory vs Cache Memory
Virtual Memory vs Cache MemoryVirtual Memory vs Cache Memory
Virtual Memory vs Cache Memory
 
Memory Hierarchy.pptx
Memory Hierarchy.pptxMemory Hierarchy.pptx
Memory Hierarchy.pptx
 
Computer Memory
Computer MemoryComputer Memory
Computer Memory
 
Chapter 4
Chapter 4Chapter 4
Chapter 4
 
Memory Devices.pptx
Memory Devices.pptxMemory Devices.pptx
Memory Devices.pptx
 
Memory organisation
Memory organisationMemory organisation
Memory organisation
 

More from Ram Paliwal

Mis classification By Ram K Paliwal
Mis classification By Ram K PaliwalMis classification By Ram K Paliwal
Mis classification By Ram K PaliwalRam Paliwal
 
Management inofrmation system basics by ram k paliwal
Management inofrmation system basics by ram k paliwalManagement inofrmation system basics by ram k paliwal
Management inofrmation system basics by ram k paliwalRam Paliwal
 
Database design (entity attribute and its types) unit 2 part 4
Database design (entity attribute and its types)  unit 2 part 4Database design (entity attribute and its types)  unit 2 part 4
Database design (entity attribute and its types) unit 2 part 4Ram Paliwal
 
Database design (entity, entity set and entity type) unit 2 part 3
Database design (entity, entity set and entity type)  unit 2 part 3Database design (entity, entity set and entity type)  unit 2 part 3
Database design (entity, entity set and entity type) unit 2 part 3Ram Paliwal
 
Database design (conceptual, logical and physical design) unit 2 part 2
Database design (conceptual, logical and physical design)  unit 2 part 2Database design (conceptual, logical and physical design)  unit 2 part 2
Database design (conceptual, logical and physical design) unit 2 part 2Ram Paliwal
 
Database development life cycle unit 2 part 1
Database development life cycle  unit 2 part 1Database development life cycle  unit 2 part 1
Database development life cycle unit 2 part 1Ram Paliwal
 
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwal
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwalCpu register, instruction exucution and interrupts unit 1 by ram k paliwal
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwalRam Paliwal
 
System component and system calls unit 1 by ram k paliwal
System component and system calls unit 1 by ram k paliwalSystem component and system calls unit 1 by ram k paliwal
System component and system calls unit 1 by ram k paliwalRam Paliwal
 
Sdlc spiral model in software engineering basics by ram k paliwal
Sdlc spiral model in software engineering basics by ram k paliwalSdlc spiral model in software engineering basics by ram k paliwal
Sdlc spiral model in software engineering basics by ram k paliwalRam Paliwal
 
Types of operating system unit 1 by Ram K Paliwal
Types of operating system  unit 1 by Ram K PaliwalTypes of operating system  unit 1 by Ram K Paliwal
Types of operating system unit 1 by Ram K PaliwalRam Paliwal
 
Software project planning in software engineering by ram k paliwal unit 2
Software project planning in software engineering by ram k paliwal unit 2Software project planning in software engineering by ram k paliwal unit 2
Software project planning in software engineering by ram k paliwal unit 2Ram Paliwal
 
Software reuirement elicitation in software engineering basics by ram k paliwal
Software reuirement elicitation in software engineering basics by ram k paliwalSoftware reuirement elicitation in software engineering basics by ram k paliwal
Software reuirement elicitation in software engineering basics by ram k paliwalRam Paliwal
 
Srs (software requirement specification) in software engineering basics by ra...
Srs (software requirement specification) in software engineering basics by ra...Srs (software requirement specification) in software engineering basics by ra...
Srs (software requirement specification) in software engineering basics by ra...Ram Paliwal
 
Sdlc process models in software engineering basics by ram k paliwal
Sdlc process models in software engineering basics by ram k paliwalSdlc process models in software engineering basics by ram k paliwal
Sdlc process models in software engineering basics by ram k paliwalRam Paliwal
 
Database models unit 1 part 2
Database models unit 1  part 2Database models unit 1  part 2
Database models unit 1 part 2Ram Paliwal
 
Database overview unit 4 part 1
Database overview unit 4  part 1Database overview unit 4  part 1
Database overview unit 4 part 1Ram Paliwal
 
Database development life cycle unit 2 part 1
Database development life cycle  unit 2 part 1Database development life cycle  unit 2 part 1
Database development life cycle unit 2 part 1Ram Paliwal
 
Operating system basics function of os unit 1 by ram k paliwal part 1
Operating system basics function of os unit 1 by ram k paliwal part 1Operating system basics function of os unit 1 by ram k paliwal part 1
Operating system basics function of os unit 1 by ram k paliwal part 1Ram Paliwal
 
Software process in software engineering basics by ram k paliwal part 2
Software process in software engineering basics by ram k paliwal part 2Software process in software engineering basics by ram k paliwal part 2
Software process in software engineering basics by ram k paliwal part 2Ram Paliwal
 
Software and software engineering basics by ram k paliwal
Software and software engineering basics by ram k paliwalSoftware and software engineering basics by ram k paliwal
Software and software engineering basics by ram k paliwalRam Paliwal
 

More from Ram Paliwal (20)

Mis classification By Ram K Paliwal
Mis classification By Ram K PaliwalMis classification By Ram K Paliwal
Mis classification By Ram K Paliwal
 
Management inofrmation system basics by ram k paliwal
Management inofrmation system basics by ram k paliwalManagement inofrmation system basics by ram k paliwal
Management inofrmation system basics by ram k paliwal
 
Database design (entity attribute and its types) unit 2 part 4
Database design (entity attribute and its types)  unit 2 part 4Database design (entity attribute and its types)  unit 2 part 4
Database design (entity attribute and its types) unit 2 part 4
 
Database design (entity, entity set and entity type) unit 2 part 3
Database design (entity, entity set and entity type)  unit 2 part 3Database design (entity, entity set and entity type)  unit 2 part 3
Database design (entity, entity set and entity type) unit 2 part 3
 
Database design (conceptual, logical and physical design) unit 2 part 2
Database design (conceptual, logical and physical design)  unit 2 part 2Database design (conceptual, logical and physical design)  unit 2 part 2
Database design (conceptual, logical and physical design) unit 2 part 2
 
Database development life cycle unit 2 part 1
Database development life cycle  unit 2 part 1Database development life cycle  unit 2 part 1
Database development life cycle unit 2 part 1
 
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwal
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwalCpu register, instruction exucution and interrupts unit 1 by ram k paliwal
Cpu register, instruction exucution and interrupts unit 1 by ram k paliwal
 
System component and system calls unit 1 by ram k paliwal
System component and system calls unit 1 by ram k paliwalSystem component and system calls unit 1 by ram k paliwal
System component and system calls unit 1 by ram k paliwal
 
Sdlc spiral model in software engineering basics by ram k paliwal
Sdlc spiral model in software engineering basics by ram k paliwalSdlc spiral model in software engineering basics by ram k paliwal
Sdlc spiral model in software engineering basics by ram k paliwal
 
Types of operating system unit 1 by Ram K Paliwal
Types of operating system  unit 1 by Ram K PaliwalTypes of operating system  unit 1 by Ram K Paliwal
Types of operating system unit 1 by Ram K Paliwal
 
Software project planning in software engineering by ram k paliwal unit 2
Software project planning in software engineering by ram k paliwal unit 2Software project planning in software engineering by ram k paliwal unit 2
Software project planning in software engineering by ram k paliwal unit 2
 
Software reuirement elicitation in software engineering basics by ram k paliwal
Software reuirement elicitation in software engineering basics by ram k paliwalSoftware reuirement elicitation in software engineering basics by ram k paliwal
Software reuirement elicitation in software engineering basics by ram k paliwal
 
Srs (software requirement specification) in software engineering basics by ra...
Srs (software requirement specification) in software engineering basics by ra...Srs (software requirement specification) in software engineering basics by ra...
Srs (software requirement specification) in software engineering basics by ra...
 
Sdlc process models in software engineering basics by ram k paliwal
Sdlc process models in software engineering basics by ram k paliwalSdlc process models in software engineering basics by ram k paliwal
Sdlc process models in software engineering basics by ram k paliwal
 
Database models unit 1 part 2
Database models unit 1  part 2Database models unit 1  part 2
Database models unit 1 part 2
 
Database overview unit 4 part 1
Database overview unit 4  part 1Database overview unit 4  part 1
Database overview unit 4 part 1
 
Database development life cycle unit 2 part 1
Database development life cycle  unit 2 part 1Database development life cycle  unit 2 part 1
Database development life cycle unit 2 part 1
 
Operating system basics function of os unit 1 by ram k paliwal part 1
Operating system basics function of os unit 1 by ram k paliwal part 1Operating system basics function of os unit 1 by ram k paliwal part 1
Operating system basics function of os unit 1 by ram k paliwal part 1
 
Software process in software engineering basics by ram k paliwal part 2
Software process in software engineering basics by ram k paliwal part 2Software process in software engineering basics by ram k paliwal part 2
Software process in software engineering basics by ram k paliwal part 2
 
Software and software engineering basics by ram k paliwal
Software and software engineering basics by ram k paliwalSoftware and software engineering basics by ram k paliwal
Software and software engineering basics by ram k paliwal
 

Recently uploaded

Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfJNTUA
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelDrAjayKumarYadav4
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxCHAIRMAN M
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxMustafa Ahmed
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalSwarnaSLcse
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024EMMANUELLEFRANCEHELI
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligencemahaffeycheryld
 
Independent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging StationIndependent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging Stationsiddharthteach18
 
analog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxanalog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxKarpagam Institute of Teechnology
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...IJECEIAES
 
Introduction-to- Metrology and Quality.pptx
Introduction-to- Metrology and Quality.pptxIntroduction-to- Metrology and Quality.pptx
Introduction-to- Metrology and Quality.pptxProfASKolap
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfEr.Sonali Nasikkar
 
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书c3384a92eb32
 
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...mikehavy0
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docxrahulmanepalli02
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxMustafa Ahmed
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailingAshishSingh1301
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...Amil baba
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...josephjonse
 
Presentation on Slab, Beam, Column, and Foundation/Footing
Presentation on Slab,  Beam, Column, and Foundation/FootingPresentation on Slab,  Beam, Column, and Foundation/Footing
Presentation on Slab, Beam, Column, and Foundation/FootingEr. Suman Jyoti
 

Recently uploaded (20)

Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdfInvolute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
Involute of a circle,Square, pentagon,HexagonInvolute_Engineering Drawing.pdf
 
Path loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata ModelPath loss model, OKUMURA Model, Hata Model
Path loss model, OKUMURA Model, Hata Model
 
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptxSLIDESHARE PPT-DECISION MAKING METHODS.pptx
SLIDESHARE PPT-DECISION MAKING METHODS.pptx
 
Augmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptxAugmented Reality (AR) with Augin Software.pptx
Augmented Reality (AR) with Augin Software.pptx
 
CLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference ModalCLOUD COMPUTING SERVICES - Cloud Reference Modal
CLOUD COMPUTING SERVICES - Cloud Reference Modal
 
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
NEWLETTER FRANCE HELICES/ SDS SURFACE DRIVES - MAY 2024
 
Artificial Intelligence in due diligence
Artificial Intelligence in due diligenceArtificial Intelligence in due diligence
Artificial Intelligence in due diligence
 
Independent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging StationIndependent Solar-Powered Electric Vehicle Charging Station
Independent Solar-Powered Electric Vehicle Charging Station
 
analog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptxanalog-vs-digital-communication (concept of analog and digital).pptx
analog-vs-digital-communication (concept of analog and digital).pptx
 
Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...Fuzzy logic method-based stress detector with blood pressure and body tempera...
Fuzzy logic method-based stress detector with blood pressure and body tempera...
 
Introduction-to- Metrology and Quality.pptx
Introduction-to- Metrology and Quality.pptxIntroduction-to- Metrology and Quality.pptx
Introduction-to- Metrology and Quality.pptx
 
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdfInstruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
Instruct Nirmaana 24-Smart and Lean Construction Through Technology.pdf
 
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
一比一原版(Griffith毕业证书)格里菲斯大学毕业证成绩单学位证书
 
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
☎️Looking for Abortion Pills? Contact +27791653574.. 💊💊Available in Gaborone ...
 
21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx21P35A0312 Internship eccccccReport.docx
21P35A0312 Internship eccccccReport.docx
 
Autodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptxAutodesk Construction Cloud (Autodesk Build).pptx
Autodesk Construction Cloud (Autodesk Build).pptx
 
handbook on reinforce concrete and detailing
handbook on reinforce concrete and detailinghandbook on reinforce concrete and detailing
handbook on reinforce concrete and detailing
 
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
NO1 Best Powerful Vashikaran Specialist Baba Vashikaran Specialist For Love V...
 
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...8th International Conference on Soft Computing, Mathematics and Control (SMC ...
8th International Conference on Soft Computing, Mathematics and Control (SMC ...
 
Presentation on Slab, Beam, Column, and Foundation/Footing
Presentation on Slab,  Beam, Column, and Foundation/FootingPresentation on Slab,  Beam, Column, and Foundation/Footing
Presentation on Slab, Beam, Column, and Foundation/Footing
 

Memory hierarchy unit 2 by ram k paliwal

  • 1. Operating System Unit - 2 MEMORY HIERARCHY IN OPERATING SYSTEM BY RAM K PALIWAL 9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 1
  • 2. Memory Hierarchy The design constraints on a computer’s memory can be summed up by three questions: 1. How much? 2. How fast? 3. How expensive? As might be expected, there is a tradeoff among the three key characteristics of memory: namely, • Capacity • Access time • Cost. 9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 2
  • 3. Memory Hierarchy A variety of technologies are used to implement memory systems, and across this spectrum of technologies, the following relationships hold: • Faster access time, greater cost per bit • Greater capacity, smaller cost per bit • Greater capacity, slower access speed The way out of this dilemma is to not rely on a single memory component or technology, but to employ a memory hierarchy. 9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 3
  • 4. Memory Hierarchy 9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 4
  • 5. Memory Hierarchy A typical hierarchy is illustrated in last diagram. As one goes down the hierarchy, the following occur: ◦ a. Decreasing cost per bit ◦ b. Increasing capacity ◦ c. Increasing access time ◦ d. Decreasing frequency of access to the memory by the processor Thus, smaller, more expensive, faster memories are supplemented by larger, cheaper, slower memories. The key to the success of this organization decreasing frequency of access at lower levels. 9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 5
  • 6. Memory Hierarchy This Memory Hierarchy Design is divided into 2 main types: External Memory or Secondary Memory – Comprising of Magnetic Disk, Optical Disk, Magnetic Tape i.e. peripheral storage devices which are accessible by the processor via I/O Module. Internal Memory or Primary Memory – Comprising of Main Memory, Cache Memory & CPU registers. This is directly accessible by the processor. 9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 6
  • 7. Memory Hierarchy Interaction 9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 7
  • 8. Memory Access Methods Each memory type, is a collection of numerous memory locations. To access data from any memory, first it must be located and then the data is read from the memory location. Following are the methods to access information from memory locations: ◦ Random Access: Main memories are random access memories, in which each memory location has a unique address. Using this unique address any memory location can be reached in the same amount of time in any order. ◦ Sequential Access: This methods allows memory access in a sequence or in order. ◦ Direct Access: In this mode, information is stored in tracks, with each track having a separate read/write head. 9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 8
  • 9. Memory Hierarchy Cache Memory The data or contents of the main memory that are used again and again by CPU, are stored in the cache memory so that we can easily access that data in shorter time. Hit Ratio The performance of cache memory is measured in terms of a quantity called hit ratio. When the CPU refers to memory and finds the word in cache it is said to produce a hit. If the word is not found in cache, it is in main memory then it counts as a miss. The ratio of the number of hits to the total CPU references to memory is called hit ratio. Hit Ratio = Hit/(Hit + Miss) 9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 9
  • 10. References 1. Operating System Concept ninth Edition by Abraham Silberschatz and Galvin 2. Operating Systems, internals and Design Principles, sixth edition by William Stalling 3. https://www.studytonight.com/computer-architecture/memory-organization 9/3/2019 MEMORY HEIRARCHY- UNIT 2- BY RAM K PALIWAL 10

Editor's Notes

  1. The dilemma facing the designer is clear. The designer would like to use memory technologies that provide for large-capacity memory, both because the capacity is needed and because the cost per bit is low. However, to meet performance requirements, the designer needs to use expensive, relatively lower-capacity memories with fast access times.
  2. Suppose that the processor has access to two levels of memory. Level 1 contains 1000 bytes and has an access time of 0.1 μs; level 2 contains 100,000 bytes and has an access time of 1 μs. Assume that if a byte to be accessed is in level 1, then the processor accesses it directly. If it is in level 2, then the byte is first transferred to level 1 and then accessed by the processor. For simplicity, we ignore the time required for the processor to determine whether the byte is in level 1 or level 2.
  3. Main Memory The memory unit that communicates directly within the CPU, Main memory and Cache memory, is called main memory. It is the central storage unit of the computer system. It is a large and fast memory used to store data during computer operations. Main memory is made up of RAM and ROM, with RAM integrated circuit chips holing the major share. RAM: Random Access Memory DRAM: Dynamic RAM, is made of capacitors and transistors, and must be refreshed every 10~100 ms. It is slower and cheaper than SRAM. SRAM: Static RAM, has a six transistor circuit in each cell and retains data, until powered off. NVRAM: Non-Volatile RAM, retains its data, even when turned off. Example: Flash memory. ROM: Read Only Memory, is non-volatile and is more like a permanent storage for information. It also stores the bootstrap loader program, to load and start the operating system when computer is turned on. PROM(Programmable ROM), EPROM(Erasable PROM) and EEPROM(Electrically Erasable PROM) are some commonly used ROMs. Auxiliary Memory Devices that provide backup storage are called auxiliary memory. For example: Magnetic disks and tapes are commonly used auxiliary devices. Other devices used as auxiliary memory are magnetic drums, magnetic bubble memory and optical disks. It is not directly accessible to the CPU, and is accessed using the Input/output channels.