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

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

More Related Content

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

What's hot

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

Similar to Pagereplacement algorithm(computional concept)

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

More from Siddhi Viradiya

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

Recently uploaded

PDF
How-Forensic-Structural-Engineering-Can-Minimize-Structural-Failures.pdf
PDF
ANPARA THERMAL POWER STATION[1] sangam.pdf
PDF
Workshop practice theory course (Unit-1) By Varun Pratap Singh.pdf
PPTX
unit-1 Data structure (3).pptx Data structure And Algorithms
PDF
IPE 105 - Engineering Materials Constitution of Alloys
PDF
@Regenerative braking system of DC motor
PPTX
TRANSPORTATION ENGINEERING Unit-5.2.pptx
PPTX
841726060-Ece-Software-Presentation.pptx
 
PPTX
Bio engineering and production of energy through biomass.pptx
PDF
Advancements in Telecommunication for Disaster Management (www.kiu.ac.ug)
PPTX
Automation Testing and New Ways to test Software using AI
PPTX
introduction-to-maintenance- Dr. Munthear Alqaderi
PDF
HEV Descriptive Questions https://www.slideshare.net/slideshow/hybrid-electr...
PPTX
TRANSPORTATION ENGINEERING Unit-5.1.pptx
PDF
Reinforced Earth Walls Notes .pdf
PPTX
DevFest Seattle 2025 - AI Native Design Patterns.pptx
PPTX
Waste to Energy - G2 Ethanol.pptx to process
PPT
Chapter 1-Week 4-General Thermodynamics-Introduction.ppt
PPTX
2-Photoelectric effect, phenomena and its related concept.pptx
PPTX
Intrusion Detection Systems presentation.pptx
How-Forensic-Structural-Engineering-Can-Minimize-Structural-Failures.pdf
ANPARA THERMAL POWER STATION[1] sangam.pdf
Workshop practice theory course (Unit-1) By Varun Pratap Singh.pdf
unit-1 Data structure (3).pptx Data structure And Algorithms
IPE 105 - Engineering Materials Constitution of Alloys
@Regenerative braking system of DC motor
TRANSPORTATION ENGINEERING Unit-5.2.pptx
841726060-Ece-Software-Presentation.pptx
 
Bio engineering and production of energy through biomass.pptx
Advancements in Telecommunication for Disaster Management (www.kiu.ac.ug)
Automation Testing and New Ways to test Software using AI
introduction-to-maintenance- Dr. Munthear Alqaderi
HEV Descriptive Questions https://www.slideshare.net/slideshow/hybrid-electr...
TRANSPORTATION ENGINEERING Unit-5.1.pptx
Reinforced Earth Walls Notes .pdf
DevFest Seattle 2025 - AI Native Design Patterns.pptx
Waste to Energy - G2 Ethanol.pptx to process
Chapter 1-Week 4-General Thermodynamics-Introduction.ppt
2-Photoelectric effect, phenomena and its related concept.pptx
Intrusion Detection Systems presentation.pptx

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