Page Faults & Page Fault Handling in Operating Systems | Page Fault Numerical Example | Thrashing

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии • 65

  • @SimpleSnippets
    @SimpleSnippets  5 лет назад +8

    Hey Guys, if you want more such tech educational videos on this channel then please support me by subscribing to this channel & also share it with your friends as it helps me create more content just for you ✌

    • @vishalagarwal4766
      @vishalagarwal4766 4 года назад +1

      Effective access time cannot be lesser than the memory access time when there is no page fault. It should come out to be 101 ms instead of 91 ms. This mistake has occurred because you have not added the usual (when there is no page fault) access time to the overhead in case of page fault before multiplying it by 0.1.
      Also, comprehensive explanation otherwise. This was a great help.

  • @ritteshpv2196
    @ritteshpv2196 2 года назад +1

    It was really clean how you explained the thrashing from what's needed to understand how the thrashing happens !

  • @shubhamupadhyay6861
    @shubhamupadhyay6861 6 лет назад +15

    Your explanation was superrb.....
    I liked it a lot....
    Just resolve my query

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад +1

      Thanks for the response buddy. I guess you used the formula wrong :-)

  • @chinnuyadav6897
    @chinnuyadav6897 5 лет назад +11

    hey! there.Thank you so much. I could understand every concept of OS a day before exam cuz of your videos.

    • @SimpleSnippets
      @SimpleSnippets  5 лет назад +3

      Most welcome buddy. I would request you to please share the videos and channel with your friends too. Thats the biggest help and support for the channel 😇

  • @mamo100
    @mamo100 Год назад +4

    Tanks for video.
    I hade a question about "page fault overlaod" in 10:35 : shoulden´t it be 110?
    because "Momory access time" includes in page fault overload.

  • @AdMrAuZmImNeGr
    @AdMrAuZmImNeGr 2 года назад +1

    Fantastic explanation. Thank you, sir!

  • @WADS-rr9wy
    @WADS-rr9wy 5 лет назад +2

    Thanks so much you explain computing so well!

    • @SimpleSnippets
      @SimpleSnippets  5 лет назад

      Thank you so much Thomas, really glad to hear this from you. Please do subscribe to this channel & share the content with your friends too. That will be the biggest help & support 😇

  • @chandannene281
    @chandannene281 2 года назад +5

    Rather than (1-P)* + P*, EAT should be = + P*.
    This is because irrespective of page fault or not, memory access time is going to be there always.

    • @kemalkubilayylmaz4142
      @kemalkubilayylmaz4142 Год назад

      Page fault overload process already includes the memory access time. So, if you put 1 instead of (1-p), you count the memory access time in page fault overload process twice

    • @michaelvt2267
      @michaelvt2267 Год назад +2

      @@kemalkubilayylmaz4142The page fault overload in the example should be 110ms instead of 10ms which is used in the example calculation.

  • @Gurdat555555555
    @Gurdat555555555 3 года назад +1

    Thank you! This video was very helpful!

  • @adityakulkarni3396
    @adityakulkarni3396 5 лет назад +1

    Hey man , thanks for such an awesome explanation !!!

    • @SimpleSnippets
      @SimpleSnippets  5 лет назад +1

      Most welcome bro 😁 I'm glad you liked it. Please share the video with your friends too ✌️

  • @deepamgupta8011
    @deepamgupta8011 4 года назад +1

    Clear cut and simple boss...

    • @SimpleSnippets
      @SimpleSnippets  4 года назад

      Thank you Deepam 🤟 I try to keep it short simple and sweet 😇
      Please do Subscribe & share with your friends. That's the biggest help and support ✌️

  • @abcdabcd8605
    @abcdabcd8605 Год назад +1

    excellent explanation

  • @rajmourya35
    @rajmourya35 3 года назад +1

    Amazing video/explanation man.

  • @vikaskumarsingh3608
    @vikaskumarsingh3608 6 лет назад +3

    Well explained, thank you

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад

      Thank you so much Vikas. Please share the video with your friends as well. That will be really helpful and the best support ✌

  • @keshavkattel
    @keshavkattel 3 года назад

    very nice explanation brother.

  • @emircimen9060
    @emircimen9060 Год назад +1

    thank you mr indian sirmen.

  • @--sql
    @--sql 4 года назад +1

    This helped me a lot, thank you!

  • @randywa
    @randywa 9 месяцев назад

    Great explanation. It made perfect sense.
    I’m slightly curious about the test question though. Wouldn’t it actually be .9*100 + .1*110 which is 101? Because 10% of the time we have page fault overhead which adds to the already existing access time right? You could also think about it as 100% of the time, memory access is 100ms, but then 10% of the time there will be an extra 10ms which means it’s 1*100 + .1*10 = 101

  • @rtlinsn5085
    @rtlinsn5085 6 лет назад +2

    Thank you very much, well explanation.
    I have a question. Is there a way to predict or count the number of page faults? either statically or at run-time?

  • @amandatao9622
    @amandatao9622 Год назад +1

    Thank you!!!

  • @AryanKumar-wn1yd
    @AryanKumar-wn1yd 4 года назад +15

    Your EAT calculation is wrong. The EAT is coming to be lower than memory access time after 10% page fault.
    The correct calculation would bb 0.9 * 100 + 0.1 *(100 + 10) = 101ms

  • @Venkymsd
    @Venkymsd 3 года назад

    Nice explanation

  • @neerajkukreja8997
    @neerajkukreja8997 4 года назад +1

    The explanation was very good. Can you give the notes of page fault also in the way you have given for paging

  • @erikasong3054
    @erikasong3054 4 года назад +1

    Thank you so much, Sir, for this video! You are amazing! SUBSCRIBED :D

    • @SimpleSnippets
      @SimpleSnippets  4 года назад +1

      Thank you so much buddy🙏 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇

  • @shaharrefaelshoshany9442
    @shaharrefaelshoshany9442 3 года назад +1

    Best ever

    • @SimpleSnippets
      @SimpleSnippets  3 года назад

      Thanks bro, I'm glad to hear this. Please do share the videos with your friends too. That's the biggest help and support you can give back to me 🙏😊

  • @kinjalshah2796
    @kinjalshah2796 4 года назад

    Thanks for sharing info. Just one question.. how paging (VM) created in secondary memory?

  • @zahreddinesoualem3213
    @zahreddinesoualem3213 5 лет назад

    in step 4 is the MMU that takes p3 3 to the main memory or OS ?

  • @avichalkumar8758
    @avichalkumar8758 3 года назад +1

    Everything is good,but please make a subject wise playlist
    Like paging videos in Operating systems playlist

  • @colinrhee98
    @colinrhee98 4 года назад +3

    Is there a way I can download the diagram, I haven't found any other diagrams that come close to the level of detail you present.

    • @SimpleSnippets
      @SimpleSnippets  4 года назад +3

      Take a screenshot for now if that helps

  • @peter0702
    @peter0702 3 года назад

    Why EAT is shorter than memory access time??? Why it seems the more page fault happens, the shorter EAT is??
    I understand the formula, but are the numbers realistic?

  • @CybercoderNaj
    @CybercoderNaj 9 месяцев назад

    10:54 I believe your numerical problem example is not the best example. If memory access time is 100ms, how can the page fault overhead be 10ms?
    Page fault overhead = memory access to page table + memory access to secondary storage + updating page table in memory + restarting the instruction
    so if memory access time is itself 100ms, then page fault overhead needs to be at least 4x the memory access. Your formula is right, but the example doesn't make any sense.

  • @SahibdadFazil
    @SahibdadFazil 2 месяца назад

    Currently watching this in the bathroom during the exam😭

  • @Blooderstokizz
    @Blooderstokizz 3 года назад

    Why are you missing TLB memory ?

  • @johannsebastianbach3411
    @johannsebastianbach3411 5 лет назад +6

    Thanks for the tutorial, however, i have an issue with something.
    Imagine if all pages were in hdd and no pages are in memory.
    Then the access time is: 0*100 + 1* 10 = 10 ms
    But if everything was in memory already:
    1*100+0*10 = 100
    How is accessing pages in memory slower than retrieving from hdd?

    • @yxlxfxf
      @yxlxfxf 4 года назад +2

      I thought the same thing, I think the page fault access time should be memory access time + page fault overhead = 110 ms

    • @vishalagarwal4766
      @vishalagarwal4766 4 года назад +1

      @@yxlxfxf Exactly. That hasn't been addressed properly. You have to add the memory access time with the overhead.

    • @julesbamwe6061
      @julesbamwe6061 4 года назад

      @@yxlxfxf You need to use the probability since not all pages will be in the secondary memory. it might be there not there. the answer should be greater or equal to 100 and less than 110

    • @yxlxfxf
      @yxlxfxf 4 года назад

      @@julesbamwe6061 The average memory access time would be between 100 and 110, I was referring to the time for one single page fault

    • @julesbamwe6061
      @julesbamwe6061 4 года назад

      @@yxlxfxf exact... Then u are right in that case. Obvious 110.

  • @Samtoosoon
    @Samtoosoon 10 месяцев назад

    No page found, finds secondary storage, bring into free frame, update page table, restart instruction

  • @MrNomay
    @MrNomay 3 года назад +1

    Love from Pakistan bro❤️

  • @Hero360-k1e
    @Hero360-k1e 18 часов назад

    Can you cover all the concept in operating system concepts by abraham silberschatz

  • @shubhamupadhyay6861
    @shubhamupadhyay6861 6 лет назад +4

    Bhai ye page fault waale question ka answer galat hai......
    Answer 101 hoga....
    ((0.9*100)+(0.1*(100+10)))=101...
    In this question 100 second will be memory access time + 10 seconds will be penalty for page fault....

    • @SimpleSnippets
      @SimpleSnippets  6 лет назад +1

      Good question, well you have applied the formula incorrectly buddy. the second part is (probability of failure * the overhead time) and not the total time with overhead. the overhead time generally itself this the time taken to perform all the page fault activities itself :-)

    • @shubhamupadhyay6861
      @shubhamupadhyay6861 6 лет назад +3

      @@SimpleSnippets dear,
      We will only get to know that demanded page is missing in the primary memory when we will access it.....
      So we should add access time to page fault time......
      This is my last argument.....
      Please resolve it.......

    • @johannsebastianbach3411
      @johannsebastianbach3411 5 лет назад +1

      By the videos logic, it would be slower to access pages if all pages were already in the frame:
      (1-0)*100+(0*10) = 100 > 91
      I agree with Shubham.
      We still do memory access for the small portion of cases with page fault, but we also waste time retrieving them from hdd. So it should be ((1-p)* (t memory)) + p * (t memory + overhead)

  • @kunalsamnani6782
    @kunalsamnani6782 4 года назад

    Semaphore daal do yaar