Paging in Operating Systems with Example & Working - Memory Management

Поделиться
HTML-код
  • Опубликовано: 9 сен 2018
  • Support Simple Snippets by Donations -
    Google Pay UPI ID - tanmaysakpal11@okicici
    PayPal - paypal.me/tanmaysakpal11
    --------------------------------------------------------------------------------------------- Paging Definition -
    1. In computer operating systems, paging is a memory management scheme by which a computer stores and retrieves data from secondary storage for use in main memory.
    2. In this scheme, the operating system retrieves data from secondary storage in same-size blocks called pages.
    Paging is an important part of virtual memory implementations in modern operating systems, using secondary storage to let programs exceed the size of available physical memory.
    3. Non-contiguous memory allocation
    4. Helps prevent external fragmentation
    5. Logical address space is divided into equal size pages
    6. physical address space is divided into equal size frames
    7. Page Size = Frame Size
    A. Logical Address or Virtual Address (represented in bits): An address generated by the CPU
    B. Logical Address Space or Virtual Address Space( represented in words or bytes): The set of all logical addresses generated by a program
    C. Physical Address (represented in bits): An address actually available on memory unit
    D. Physical Address Space (represented in words or bytes): The set of all physical addresses corresponding to the logical addresses
    Simple Snippets Official Website -
    simplesnippets.tech/
    Simple Snippets on Facebook -
    / simplesnippets
    Simple Snippets on Instagram -
    / simplesnippets
    Simple Snippets on Twitter -
    / simplesnippet
    Simple Snippets Google Plus Page -
    plus.google.com/+SimpleSnippets
    Simple Snippets email ID -
    simplesnippetsinfo@gmail.com
    For More Technology News, Latest Updates and Blog articles visit our Official Website - simplesnippets.tech/
    #Paging #OperatingSystems #OS

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

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

    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 ✌

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

      How to create this kind of diagram ...

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

      Very nice video and very nice explanation of every single step .
      All doubts about paging clear 👍👍👍👍👍👍

    • @beatit2537
      @beatit2537 7 месяцев назад

      Please create more videos about Operating Systems' topics.

  • @hgjghjkhify
    @hgjghjkhify 2 года назад +20

    I struggled to understand this using my textbook, which assumed I'm already fluent in computer science lingo. You made this relevant and easy to understand. The pictures, color and hearing you say it helped to reinforce my learning. Thank you! Well done!

  • @traderit1
    @traderit1 5 лет назад +48

    brother u actually done the work ,BEST ONE ON INTERNET ......BEST ONE I AGAIN SAY

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

      Wow, thank you so much bro. I'm so happy to hear such a wonderful comment from you 👍
      Please do share the video with your friends and keep up the support ✌️

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

    Always the best in every topic that I may have searched for on RUclips! Thank you for this great explanation.

  • @rijubakkarmakar8616
    @rijubakkarmakar8616 8 месяцев назад +2

    This is the best explanation of Paging, I've found on RUclips. Awesome work man.

  • @kurrynDev
    @kurrynDev 5 лет назад +242

    exam 1hour from now. watching in 1.25 speed

  • @Amina-jb6mh
    @Amina-jb6mh 3 года назад +3

    Thank you so much! I couldn't understand it from my book. The way you explained visually helped a lot! Thank you for clearing my concepts.

  • @manthangandhi1692
    @manthangandhi1692 4 года назад +60

    Things you should cover more in this video:
    Page table is kept in main memory
    Page-table base register (PTBR) points to the page table
    Page-table length register (PRLR) indicates size of the page table
    In this scheme every data/instruction access requires two memory accesses. One for the page table and one for the data/instruction.
    The two memory access problem can be solved by the use of a special fast-lookup hardware cache called associative memory or translation look-aside buffers (TLBs)
    Some TLBs store address-space identifiers (ASIDs) in each TLB entry - uniquely identifies each process to provide address-space protection for that process

  • @bhaktipriyanayak3718
    @bhaktipriyanayak3718 3 года назад +3

    Watching ur video when we r not attending lecture due to this pandemic...
    Ur video is very useful. Exam is after 10 days.. Nd concept is now clear about paging..
    Thanks a lot....

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

    That's a great relief during the last minute study. Thank you!! :)

  • @wolfcompany2
    @wolfcompany2 3 года назад +3

    THANK YOU VERY MUCH FOR THIS!!!!!! you provided a flow which my professor didnt.

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

    Your explanation is very CLEAR and maybe the best explanation on youtube!!! Thank you very much!!

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

      Thank you buddy ✌️ this really means a lot to me 😇 I would really request you to please share the video with your friends too ✌️

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

    THIS HAS SOLVED ALL MY WORRIES ON PAGING AS A STUDENT OF OS CONCEPT thanks ✌

  • @malleshaholeyache4464
    @malleshaholeyache4464 3 года назад +3

    What a such proper information you have bro🙏🙏.I really thank you for explanation and presentation. And ya keep doing great videos because all engineering students guru will be RUclips only .they only make you to grow up

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

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

  • @michalsejak
    @michalsejak 4 года назад +79

    "500GB HDD is from the ancient times"
    *me, a zoomer owning precisely such drive*: _surprised pikachu face_

  • @khanumer5763
    @khanumer5763 5 лет назад +4

    Its help me a lot bro thank you so much for this video ❤❤I have quickly understood all the concept about paging

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

      Thank you very much buddy. I am so happy that you liked this video and it was helpful to you😇
      I would request you to share the video with your friends too ✌️ that will be very helpful 😊

  • @Kujou12
    @Kujou12 4 года назад +4

    This is way better than my univeristy's class.

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

      Thanks Pete, glad you liked it. Please do share this video with your friends too 🙏

  • @user-zz7qw6rb7m
    @user-zz7qw6rb7m 8 месяцев назад +1

    I can't thank you enough for this video ...
    I was browsing the internet for more than 5 hours...
    17 mins of your explaining and now I'm good to proceed to the next topic...

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

    simply awesome, great work. Thank you.

  • @nightfury8119
    @nightfury8119 4 года назад +5

    Really, your explanation was awesome
    .. I am feeling the beauty of your words.. They are perfect.. Your English, pronunciation, words, flowness And the content which is most important
    ... Everything was good... ♥️♥️

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

      Thank you so much buddy 😇 this was really a wonderful feedback. This motivates me to make more educational content 🤘 I would request you to please share the videos with your friends too. That's the biggest help and support ✌️

  • @OutMagic
    @OutMagic 2 года назад

    So well explained, thanks mate!

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

    Thank you so much for the video.... cleared out all my doubts

  • @tafadzwamabika5514
    @tafadzwamabika5514 3 года назад +5

    "500GB if you are in ancient time"
    hahaha, i felt offended. I guess i have to change my hard drive ASAP 🤣🤣🤣

  • @RevathiRevathi-cs2bq
    @RevathiRevathi-cs2bq Год назад +1

    TQ sir your explanation is excellent it's helps me in my exam

  • @thomascarlsen8097
    @thomascarlsen8097 4 года назад +6

    I actually think this is the best explanation of the paging concept I have seen so far! Good Job :)

  • @kimberlycaritas
    @kimberlycaritas 3 года назад +9

    This was SO helpful - thank you so much for explaining this so succinctly!

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

      Glad it was helpful! Thank you so much 🙂

  • @kapsiakchris
    @kapsiakchris 5 лет назад +22

    This was awesome!!! Reading about in text is a little dry and hard to fully understand, you explained this perfectly!! Will be watching more.

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

      Thank you so much my friend 😁✌️ really happy to hear this from you 😊
      I would request you to please share the video with your friends too ✌️

  • @amlamarra
    @amlamarra 4 года назад +4

    Great video! Though you didn't really describe how this allows programs to exceed the size of available physical memory. Do they just leave unused pages in virtual memory? What if one of those pages is needed? Wouldn't you get a page fault for trying to access it?

  • @satyarthranjan7025
    @satyarthranjan7025 9 месяцев назад +1

    what an amazing vedio all concepts are cleared thans bro
    pls make more content like this. most underrated channel.

    • @SimpleSnippets
      @SimpleSnippets  9 месяцев назад +1

      I will try my best. Please help me by sharing our channel and videos with your friends too!

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

    Thank's a lot bro, it was really helpful.

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

    you're awesome, sir. THANK YOU!

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

      Most welcome buddy 😊 I'm glad to hear this from you and happy that this video helped you. Please do share the video with your friends too 🤟

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

    Thanks! I cleared a few things i was murky about through your video

  • @user-vg5fk5zs6i
    @user-vg5fk5zs6i Год назад +1

    thanks bro..... literally amazing explained. 😍

  • @pdivyapdivya7455
    @pdivyapdivya7455 2 года назад +2

    Tq you sooo much for uploading this video bro🙏🙏🙏

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

    Great Content.
    You've explained it in pretty simple language. 😊

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

      Glad you think so! Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇

  • @yashashreemahale3456
    @yashashreemahale3456 2 года назад

    You explain so very well
    Thank you :)

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

    Good, Precise, Clear
    Thanks

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

    Bro god bless you my $100K professor could not teach this well

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

    Very well explained. Keep up the good work!

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

      Thank you Mike, I am really glad to hear this comment from you bro. Thank you for the positive feedback. I request you to please share our channel and videos with your friends too & ask them to subscribe and join our community as well 😇 That is the biggest help and support you can provide ✌

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

    you are a lifesaver!

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

    woh bro this helps me a lot bro , thanks man 💓

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

    Impressive teaching skills!

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

    Thank you..
    You have good knowledge with excellent communication skill.

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

      Thats really great to know buddy🙏 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇

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

    Awesome explanations like this is what saves my ass through programming courses

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

      Haha im glad to know my videos save your ass 😂😇

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

    Tq bro, you done a brilliant job . Infat u r not 100% u r 200% well sead than my faculty member

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

    explaned very well, thanks

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

    Thankx a lot man.... very impressive teaching style

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

      Thank you so much for the positive feedback buddy. Really happy to hear this from you. I would request you to please share the video with your friends 😊✌️

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

    Great work brother! 🙌🙌

  • @chinmairhallikar
    @chinmairhallikar 4 месяца назад +2

    Thank you bro (from a student who is studying 1 hr before exam)

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

    Wow. Man you are a genius. I m impressed.

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

    Your lectures are just wow! One request from my side can you please add some concepts of multilevel paging.

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

      Thank you so much Saurav, really glad to know this. Unfortunately currently I am too occupied with DSA and then I have other subjects lined up too. So chances of your requested topic are pretty slim. Dont want to lie or keep you waiting hence being honest 😇🙏

  • @heera551
    @heera551 5 месяцев назад +1

    loved your creation
    brooo!

  • @amrhaithem7064
    @amrhaithem7064 2 года назад

    thank you man, 1000 times better than our doctor

  • @Zickcermacity
    @Zickcermacity 2 года назад

    I have a 2015 Toshiba laptop with Windows 10 Home edition.
    6 months ago I discovered that Windows was paging madly to the HDD(hard disk drive), even though it was using only 2.5gb of the factory 4gb of RAM.
    I installed 4gb more RAM, which Windows and other programs readily recognized, bringing the total physical RAM to 8GB, usable 7.8.
    For a couple of weeks, the system performance sped up, and it wasn't paging to HDD nearly as much.
    But since then, it has fallen back into old habits, using between 2.5-3gb of the physical RAM, but mad ass paging!
    I reduced the page file size to its bare minimum, but my IT friend said "be careful - if you reduce paging you could crash the whole laptop".
    I have read that excessive paging is a common issue with Win10.
    Any other suggestions please?
    Otherwise the laptop is running fine.

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

    excellent vid! thank u !

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

    thank you for the video!

  • @rockmanvnx6
    @rockmanvnx6 5 лет назад +4

    Thank you, best out of other videos I found on youtube. You mentioned another video about page fault, however I cannot find it.

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

      Hello, most welcome buddy for such a wonderful comment. Here's the link to the full playlist bro - Paging & Page Replacement Algorithms - Operating Systems: ruclips.net/p/PLIY8eNdw5tW-BxRY0yK3fYTYVqytw8qhp

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

    Thank you sir great explanation with neat diagrams.👏

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

    Excellent explanation!

  • @dr.t.mirandalakshmi6604
    @dr.t.mirandalakshmi6604 2 года назад

    Excellent presentation and explanation

  • @shirish-meshram
    @shirish-meshram 3 года назад

    This is so very helpful. Thanks a million

  • @hishamkhhassan9635
    @hishamkhhassan9635 2 года назад

    Thank for simple explanation

  • @user-ng8rl3jb1i
    @user-ng8rl3jb1i 2 года назад

    nice , it gave me some understanding

  • @sathwik7632
    @sathwik7632 2 года назад

    thanks bruh all the best

  • @ranjanbs7449
    @ranjanbs7449 2 года назад

    You made my day 🤜🤛

  • @codepoachers6870
    @codepoachers6870 2 года назад

    Very fantastic video!

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

    amazing video and explanation

  • @lostsoulcar7130
    @lostsoulcar7130 2 года назад

    Superb explanation 👍thanks man

  • @eyobed1795
    @eyobed1795 2 года назад

    it is very helpful thanks

  • @shehzadabbasi1861
    @shehzadabbasi1861 5 лет назад +2

    Absolute beauty

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

      Thank you so much buddy for this wonderful feedback😇✌️
      Please do share this video with your friends and contacts too bro 😇✌️

  • @danym-98
    @danym-98 3 месяца назад

    Very good explanation

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

    Thank you bro for the explanation. ✌

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

      Most welcome buddy. Please share the video with your friends too 😁

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

    Very good explanation for beginners compared to other videos

  • @sandro-nd6ir
    @sandro-nd6ir 2 года назад

    Very good video!!

  • @WADS-rr9wy
    @WADS-rr9wy 4 года назад +2

    This is the best explanation of paging I have found. Thanks!

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

      Hehe thats amazing to know Thomas 😇 Do share it with your friends too 😇

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

    awesome video bro

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

    Thank you so much!!!!!!!!

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

    Really super 👌 explanation

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

    very very good explaination. woah. thank you so much!!!!!

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

      You're very welcome!✌ I am glad you liked it 😇

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

    Amazing work man!

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

      Thank you so much bro, this means a lot to me. Please support me by sharing this channel with your friends too. Thats the biggest help and support ✌

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

    Appreciate your work ✌🏼

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

      Thank you so much buddy 😊 means alot to me 😊

  • @priyankabehera8288
    @priyankabehera8288 2 года назад

    Very helpful... 🙏🏽🙏🏽🙏🏽🙏🏽

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

    The page tables are actually stored in the RAM memory and not in the HDD no ?

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

    Best explanation till date about paging 👏👍👍👌

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

      Thank you very much Kiran. I am glad you liked this video. Please do support me by subscribing to our channel and sharing it with your friends 🙏✌

  • @tiyas1915
    @tiyas1915 8 месяцев назад

    Thanks!

  • @muhammadzakiahmad8069
    @muhammadzakiahmad8069 2 года назад

    Hi Tanmay Great lectures as always, Can u tell which book u are following?

  • @spacesimulation5
    @spacesimulation5 2 года назад

    Excellent

  • @sumanth8761
    @sumanth8761 2 года назад

    super explanation

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

    I have a doubt though...
    Where is the page table mapping for every process stored?
    Like when we need to access process x..p5
    How does the CPU know where the page table of X is stored in the main memory?

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

    Super bro👌👌🔥🔥

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

    Its so good !!
    Thanks alot

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

      Thank you so much Brian! Happy to hear this. I would request you to please share the video with your friends too ✌️😊

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

      Does document/memory map in Linux is always a multiple of the page size, which is 4k on x86 ??
      Am i right ?

  • @anthonyvenable3048
    @anthonyvenable3048 2 года назад

    Your Amazing

  • @mohammedk.h.f3016
    @mohammedk.h.f3016 3 года назад +1

    great lecture .... Thank you...

  • @harshas.v.3223
    @harshas.v.3223 4 года назад +8

    Fantastic, nicely explained with diagram. Clearly understood about paging. Thank you very much. Make Some more videos on Device driver and computer architecture.

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

    Bravo....Legend

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

      Thank you so much David. I am glad to see this response from you. Please do subscribe to this channel & share the videos with your friends too. That will be the biggest help and support for everyone 😇

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

    Is there full explanation on os for sybca students??

  • @sreelekshmi4929
    @sreelekshmi4929 2 года назад

    very helpful 😀

  • @NaveenKumar-os8dv
    @NaveenKumar-os8dv 10 месяцев назад

    Can anyone please help me with Page Table, some videos say it's in Physical Memory(Ram), some say it's in Secondary Memory(Hard disk), just where the heck is it stored??? If it's in RAM, then what's the point of even creating page table, it just decreases the size of the single page, the total memory used by process is still the same

  • @adikztv6371
    @adikztv6371 7 месяцев назад +1

    isn't the concept which you describe actually a description of swap memory?

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

    Everytime I see and intro like that, I just know it will be an idian tutorial

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

      Is there a non-indian kind of intro? i'd love to make that kind too 😂

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

      @@SimpleSnippets I think it's a bit too long. And I'd make a very simple and calm intro. Like swiping in your logo with a little sound effect or something. I think longer intros make viewers not want to watch the video and this one feels very MLG gamer-ish haha, not trying to be mean, just helpful! :)

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

      This was genuinely a good suggestion. And yes I have felt the same somewhere that long intros lose audience attention. I'll work on a simple shorter one 😊 thanks man ✌️