belady s anomaly with round robin num 1 2 3 4 5 6 7 8 9
play

Beladys Anomaly with Round Robin Num 1 2 3 4 5 6 7 8 9 10 - PowerPoint PPT Presentation

Virtual Memory 1 Beladys Anomaly with Round Robin Num 1 2 3 4 5 6 7 8 9 10 11 12 Refs a b c d a b e a b c d e Frame 1 Frame 2 Frame 3 Num 1 2 3 4 5 6 7 8 9 10 11 12 Refs a b c d a b e a b c


  1. Virtual Memory 1 Belady’s Anomaly with Round Robin Num 1 2 3 4 5 6 7 8 9 10 11 12 Refs a b c d a b e a b c d e Frame 1 Frame 2 Frame 3 Num 1 2 3 4 5 6 7 8 9 10 11 12 Refs a b c d a b e a b c d e Frame 1 Frame 2 Frame 3 Frame 4 CS350 Operating Systems Winter 2007

  2. Virtual Memory 2 Belady’s Anomaly with Round Robin (filled) Num 1 2 3 4 5 6 7 8 9 10 11 12 Refs a b c d a b e a b c d e Frame 1 a a d d e e e e e a d e Frame 2 b b a a a c c a b a c Frame 3 c c b b b d b c b d Num 1 2 3 4 5 6 7 8 9 10 11 12 Refs a b c d a b e a b c d e Frame 1 a a a a e e e d a a e d Frame 2 b b b b a a a b b a e Frame 3 c c c c c b b b c b Frame 4 d d d d d c c d c CS350 Operating Systems Winter 2007

  3. Virtual Memory 3 No Belady’s Anomaly with LRU Num 1 2 3 4 5 6 7 8 9 10 11 12 Refs a b c d a b e a b c d e Frame 1 Frame 2 Frame 3 Num 1 2 3 4 5 6 7 8 9 10 11 12 Refs a b c d a b e a b c d e Frame 1 Frame 2 Frame 3 Frame 4 CS350 Operating Systems Winter 2007

  4. Virtual Memory 4 No Belady’s Anomaly with LRU (filled) Num 1 2 3 4 5 6 7 8 9 10 11 12 Refs a b c d a b e a b c d e Frame 1 a a d d e e c c a d e c Frame 2 b b a a a a d a b a d Frame 3 c c b b b b b c b e Num 1 2 3 4 5 6 7 8 9 10 11 12 Refs a b c d a b e a b c d e Frame 1 a a a a a a a a a a a e Frame 2 b b b b b b b b b b b Frame 3 c c c e e e d c e d Frame 4 d d d d d c c d c CS350 Operating Systems Winter 2007

  5. Virtual Memory 5 What’s the Impact of Memory misses on Running time? Suppose that a program accesses uniformly at random 50 pages. • Call x its running time with 40 frames. • Call y its running time with 50 frames. What’s the ratio between x and y ? CS350 Operating Systems Winter 2007

  6. Virtual Memory 6 What’s the Impact of Memory misses on Running time? (2) What’s the ratio between x and y ? Suppose that a memory hit costs h and a memory miss costs m ms. • x = 80% × h + 20% × m • y = 100% × h = h x y = . 8 + m 5 h CS350 Operating Systems Winter 2007

  7. Virtual Memory 7 What’s the Impact of Memory misses on Running time? (3) What’s the ratio between x and y ? Suppose that a memory hit costs h = 200 ns = 200 . 10 − 6 ms and a memory miss costs m = 10 ms. x y = . 8 + m 5 h = 10 5 CS350 Operating Systems Winter 2007

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend