Movatterモバイル変換


[0]ホーム

URL:


Siddhi Viradiya, profile picture
Uploaded bySiddhi Viradiya
PPT, PDF1,088 views

Pagereplacement algorithm(computional concept)

This document discusses page replacement techniques used in computer memory management. It covers the need for page replacement due to limited physical memory frames. The basic page replacement process is described as finding the desired page, a free frame if available, or using a replacement algorithm to select a victim frame if necessary. Common replacement algorithms like FIFO, optimal, and LRU are introduced along with their advantages and drawbacks. Belady's anomaly is also mentioned, which is when page fault rate can paradoxically increase as the number of available frames increases under FIFO replacement.

Embed presentation

Downloaded 60 times
Overview1. Why we need page replacement?2. Basic page replacement technique.3. Different type of page replacement algorithm andtheir examples.
Why????Limited physical memory --> limited number offrame --> limited number of frame allocated to aprocess.
Basic Page Replacement1. Find the location of the desired page on thedisk.2. Find a free frame If there is a free frame use it. No free frame – use page replacement algorithm toselect a victim frame. Write the victim frame to disk, change the frame andpage tables accordingly.
Basic Page Replacement (Contd)3. Read the desired page into the newly freed frame,change the page and frame tables.4. Restart the user process.
Page ReplacementVictimSwap desirepage inReset pagetable for newpageChange toinvaidPage tableFrameValidinvalid bit2430FIVSwap outvictim page1Physical memory
OverheadIf no free frames - 2 page transfers.Solution : Modify bit or Dirty bit.
Replacement PolicyWhich page to be replaced?Page removed should be the page least likely to bereferenced in the near future.Most policies predict the future behavior on the basisof past behavior.
Page faults versus number of framesNumber of framesNumber of pagefaults
Replacement Algorithm1. FIFO page replacement2. Optimal page replacement3. LRU page replacement
FIFO Page ReplacementEasy to understand and program.Performance is not always good.Belady’s Anomaly
Drawbacks - FIFOA page which is being accessed quite often may alsoget replaced because it arrived earlier than thosepresentIgnores locality of reference. A page which wasreferenced last may also get replaced, although thereis high probability that the same page may be neededagain.
FIFO – An Example7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1707 701201231230430420423023013012712702701
Optimal Page ReplacementLowest page fault rate of all algorithmsFree from Belady’s anomaly
Optimal Page Replacement (contd)“Replace the page that will not be used for the longestperiod of time.”Requires future knowledge of the reference string.Used for comparison studies.
OPR – An Example7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1707 701201203243203701201
LRU Page ReplacementFree from Belady’s Anomaly.Problem: How to order the frame defined by the timeof last use.Solution: Counters Queue
LRU – An Example7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1707 701201203434232037010420231201
Ans: C1. Dirty bit is used to show thea. page with corrupted datab. the wrong page in the memoryc. page that is modified after being loadedinto cache memoryd. page that is less frequently accessed.
Ans: C2. What replacement policy is used by Windows NTa. LRUb. NFUc. FIFOd. Clock Replacemente. None of the above
Reference String4. The string of memory references is called___________.
Belady’s Anomaly5. FIFO page replacement suffers from________________anomaly.
Page fault increases with increase in number offrames.6. What is Belady’s anomaly??
TRUE7. Optimal Page Replacement algorithm has thelowest page fault rate.TRUE/FALSE

Recommended

PPT
Page replacement
PPT
Page Replacement
PPTX
Page replacement alg
PPTX
Computer architecture page replacement algorithms
PPTX
Page replacement algorithm
PPTX
Virtual memory and page replacement algorithm
PPTX
FIFO, LRU, OPTIMAL Page Replacement Algorithm
PPTX
141060753008 3715302
PPTX
virtual memory Operating system
PPT
Virtual memory
PPTX
Page replacement algorithms
PPT
42 lru optimal
PPTX
Operating system 38 page replacement
PPT
Chapter 9 - Virtual Memory
PPTX
Page replacement
PPT
Virtual memory - Demand Paging
PPTX
basics of virtual memory
PPT
Virtual memory
PPTX
Allocation of Frames & Thrashing
PPTX
Virtual Memory in Windows
PPT
Virtual memory
PPTX
Virtual Memory Management
PPTX
Page replacement algorithms
PPTX
Virtual Memory
PPT
Translation Lookaside Buffer & Inverted Page Table
PPTX
Virtual memory ,Allocaton of frame & Trashing
PPTX
Page Replacement Algorithms
TXT
No sql
PPTX
Demand paging

More Related Content

PPT
Page replacement
PPT
Page Replacement
PPTX
Page replacement alg
PPTX
Computer architecture page replacement algorithms
PPTX
Page replacement algorithm
PPTX
Virtual memory and page replacement algorithm
PPTX
FIFO, LRU, OPTIMAL Page Replacement Algorithm
PPTX
141060753008 3715302
Page replacement
Page Replacement
Page replacement alg
Computer architecture page replacement algorithms
Page replacement algorithm
Virtual memory and page replacement algorithm
FIFO, LRU, OPTIMAL Page Replacement Algorithm
141060753008 3715302

What's hot

PPTX
virtual memory Operating system
PPT
Virtual memory
PPTX
Page replacement algorithms
PPT
42 lru optimal
PPTX
Operating system 38 page replacement
PPT
Chapter 9 - Virtual Memory
PPTX
Page replacement
PPT
Virtual memory - Demand Paging
PPTX
basics of virtual memory
PPT
Virtual memory
PPTX
Allocation of Frames & Thrashing
PPTX
Virtual Memory in Windows
PPT
Virtual memory
PPTX
Virtual Memory Management
PPTX
Page replacement algorithms
PPTX
Virtual Memory
PPT
Translation Lookaside Buffer & Inverted Page Table
PPTX
Virtual memory ,Allocaton of frame & Trashing
PPTX
Page Replacement Algorithms
TXT
No sql
virtual memory Operating system
Virtual memory
Page replacement algorithms
42 lru optimal
Operating system 38 page replacement
Chapter 9 - Virtual Memory
Page replacement
Virtual memory - Demand Paging
basics of virtual memory
Virtual memory
Allocation of Frames & Thrashing
Virtual Memory in Windows
Virtual memory
Virtual Memory Management
Page replacement algorithms
Virtual Memory
Translation Lookaside Buffer & Inverted Page Table
Virtual memory ,Allocaton of frame & Trashing
Page Replacement Algorithms
No sql

Similar to Pagereplacement algorithm(computional concept)

PPTX
Demand paging
PPTX
Virtual memory management in Operating System
PPTX
page replacement.pptx
PPTX
3_page_replacement_algorithms computer system and architecture
PDF
final_unit_6_spos_notes_2023/24 pattern.pdf
PPT
Operating System
PPTX
operating system notes about virtual memory 4.pptx
PPT
Replacement.ppt operating system in BCA cu
PPTX
Page replacement_Architecture ppt (213015018+213015017).pptx
PPT
Explain about replacement algorithms from these slides
PDF
Pge Replacement Algorithm.pdf
PPTX
Virtual Memory in Operating System
PPT
VM Page Replacement
PPTX
Page Replacement Algorithms in Operating System
PPTX
Page replacement algorithm
PPTX
Operating system 40 lru algorithm
PPT
9415070 deepak kumar raja kumar hgdxgfgcg
DOCX
Chosse a best algorithm for page replacement to reduce page fault and analysi...
PDF
Virtual Memory Management Part - II.pdf
Demand paging
Virtual memory management in Operating System
page replacement.pptx
3_page_replacement_algorithms computer system and architecture
final_unit_6_spos_notes_2023/24 pattern.pdf
Operating System
operating system notes about virtual memory 4.pptx
Replacement.ppt operating system in BCA cu
Page replacement_Architecture ppt (213015018+213015017).pptx
Explain about replacement algorithms from these slides
Pge Replacement Algorithm.pdf
Virtual Memory in Operating System
VM Page Replacement
Page Replacement Algorithms in Operating System
Page replacement algorithm
Operating system 40 lru algorithm
9415070 deepak kumar raja kumar hgdxgfgcg
Chosse a best algorithm for page replacement to reduce page fault and analysi...
Virtual Memory Management Part - II.pdf

More from Siddhi Viradiya

PPT
chapter 1 intoduction to operating system
PPTX
bus and memory tranfer (computer organaization)
PPTX
network convergence problem and solutions
PPTX
AEM Fourier series
PPTX
non linear data structure -introduction of tree
PPT
functional dependencies with example
PPT
global warming ch-07
chapter 1 intoduction to operating system
bus and memory tranfer (computer organaization)
network convergence problem and solutions
AEM Fourier series
non linear data structure -introduction of tree
functional dependencies with example
global warming ch-07

Recently uploaded

PPTX
Automation Testing and New Ways to test Software using AI
PPTX
AI at the Crossroads_ Transforming the Future of Green Technology.pptx
PDF
Front End for development and engineering students.pdf
PPT
lec13.ppt FOR COMPOSITES AND POLYMERS MATERIAL SCIENCE
PPTX
Bio engineering and production of energy through biomass.pptx
PDF
ghvjvhhvkjvgiyvicitiychjnlnokigytdcesdftyhuiookjhygvcrxesdcftyjiokoloihtfcxsx...
PPTX
DevFest Seattle 2025 - AI Native Design Patterns.pptx
PDF
Introduction to MySQL Spatial Features and Real-World Use Cases
PPTX
Computer engineering for collage studen. pptx
PDF
OOPCodesjavapracticalkabirpawarpptinparacticalexamination
PDF
Small Space Big Design - Amar DeXign Scape
PDF
Advancements in Telecommunication for Disaster Management (www.kiu.ac.ug)
PDF
November_2025 Top 10 Read Articles in Computer Networks & Communications.pdf
PPTX
Mc25104 - data structures and algorithms using PYTHON OOP_Python_Lecture_Note...
PPTX
TRANSPORTATION ENGINEERING Unit-5.2.pptx
PDF
The Impact of Telework on Urban Development (www.kiu.ac.ug)
PDF
Reinforced Earth Walls Notes .pdf
PDF
Welcome to ISPR 2026 - 12th International Conference on Image and Signal Pro...
PPTX
841726060-Ece-Software-Presentation.pptx
 
PPTX
Presentation 1.pptx WHAT IS ARTIFICIAL INTELLIGENCE?
Automation Testing and New Ways to test Software using AI
AI at the Crossroads_ Transforming the Future of Green Technology.pptx
Front End for development and engineering students.pdf
lec13.ppt FOR COMPOSITES AND POLYMERS MATERIAL SCIENCE
Bio engineering and production of energy through biomass.pptx
ghvjvhhvkjvgiyvicitiychjnlnokigytdcesdftyhuiookjhygvcrxesdcftyjiokoloihtfcxsx...
DevFest Seattle 2025 - AI Native Design Patterns.pptx
Introduction to MySQL Spatial Features and Real-World Use Cases
Computer engineering for collage studen. pptx
OOPCodesjavapracticalkabirpawarpptinparacticalexamination
Small Space Big Design - Amar DeXign Scape
Advancements in Telecommunication for Disaster Management (www.kiu.ac.ug)
November_2025 Top 10 Read Articles in Computer Networks & Communications.pdf
Mc25104 - data structures and algorithms using PYTHON OOP_Python_Lecture_Note...
TRANSPORTATION ENGINEERING Unit-5.2.pptx
The Impact of Telework on Urban Development (www.kiu.ac.ug)
Reinforced Earth Walls Notes .pdf
Welcome to ISPR 2026 - 12th International Conference on Image and Signal Pro...
841726060-Ece-Software-Presentation.pptx
 
Presentation 1.pptx WHAT IS ARTIFICIAL INTELLIGENCE?

Pagereplacement algorithm(computional concept)

  • 2.
    Overview1. Why weneed page replacement?2. Basic page replacement technique.3. Different type of page replacement algorithm andtheir examples.
  • 3.
    Why????Limited physical memory--> limited number offrame --> limited number of frame allocated to aprocess.
  • 4.
    Basic Page Replacement1.Find the location of the desired page on thedisk.2. Find a free frame If there is a free frame use it. No free frame – use page replacement algorithm toselect a victim frame. Write the victim frame to disk, change the frame andpage tables accordingly.
  • 5.
    Basic Page Replacement(Contd)3. Read the desired page into the newly freed frame,change the page and frame tables.4. Restart the user process.
  • 6.
    Page ReplacementVictimSwap desirepageinReset pagetable for newpageChange toinvaidPage tableFrameValidinvalid bit2430FIVSwap outvictim page1Physical memory
  • 7.
    OverheadIf no freeframes - 2 page transfers.Solution : Modify bit or Dirty bit.
  • 8.
    Replacement PolicyWhich pageto be replaced?Page removed should be the page least likely to bereferenced in the near future.Most policies predict the future behavior on the basisof past behavior.
  • 9.
    Page faults versusnumber of framesNumber of framesNumber of pagefaults
  • 10.
    Replacement Algorithm1. FIFOpage replacement2. Optimal page replacement3. LRU page replacement
  • 11.
    FIFO Page ReplacementEasyto understand and program.Performance is not always good.Belady’s Anomaly
  • 12.
    Drawbacks - FIFOApage which is being accessed quite often may alsoget replaced because it arrived earlier than thosepresentIgnores locality of reference. A page which wasreferenced last may also get replaced, although thereis high probability that the same page may be neededagain.
  • 13.
    FIFO – AnExample7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1707 701201231230430420423023013012712702701
  • 14.
    Optimal Page ReplacementLowestpage fault rate of all algorithmsFree from Belady’s anomaly
  • 15.
    Optimal Page Replacement(contd)“Replace the page that will not be used for the longestperiod of time.”Requires future knowledge of the reference string.Used for comparison studies.
  • 16.
    OPR – AnExample7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1707 701201203243203701201
  • 17.
    LRU Page ReplacementFreefrom Belady’s Anomaly.Problem: How to order the frame defined by the timeof last use.Solution: Counters Queue
  • 18.
    LRU – AnExample7 0 1 2 0 3 0 4 2 3 0 3 2 1 2 0 1 7 0 1707 701201203434232037010420231201
  • 19.
    Ans: C1. Dirtybit is used to show thea. page with corrupted datab. the wrong page in the memoryc. page that is modified after being loadedinto cache memoryd. page that is less frequently accessed.
  • 20.
    Ans: C2. Whatreplacement policy is used by Windows NTa. LRUb. NFUc. FIFOd. Clock Replacemente. None of the above
  • 21.
    Reference String4. Thestring of memory references is called___________.
  • 22.
    Belady’s Anomaly5. FIFOpage replacement suffers from________________anomaly.
  • 23.
    Page fault increaseswith increase in number offrames.6. What is Belady’s anomaly??
  • 24.
    TRUE7. Optimal PageReplacement algorithm has thelowest page fault rate.TRUE/FALSE

[8]ページ先頭

©2009-2025 Movatter.jp