Page Table Entry | Operating System - M05 P12

Page Table Entry | Operating System - M05 P12

ยท

4 min read

This is a multipart blog article series, and in this series I am going to explain you the concepts of operating system. This article series is divided into multiple modules and this is the fifth module which consists of 26 articles.

In this article we will see that what is present inside a page table. We will discuss about all the different fields present in page table briefly.

Page table entry

  • In the page table in one row there are many things/details that are placed/ situated.
  • We use page table because by the help of page table MMU (Memory management unit) maps the logical address into physical address.

Untitled Diagram.png

  1. Frame No.:
    • At this place frame number is written.
    • One or multiple frames can reside in a frame, so when we want to map frame, fame number is used.
  2. Valid/invalid:
    • Suppose we are finding a page so we go to frame number, this section tell us that whether the page is actually present or not at the frame number. If not than 0 will be written there.
    • It can happen we are using the concept of virtual memory.
  3. Protection:
    • (rwx) r-> read, w-> write, x-> execute.
    • This section will tell us that the file is protected or not and what type of permission is given to the user who is trying to access the file.
  4. Reference:
    • We generally do swap-in swap-out of pages from main-memory. So here, we have to tell that whether in past does this page came in the memory or not.
    • When the page is coming first time in the memory than at this place 0 will be written.
  5. Cashing:
    • It contains a value of enable and disable which means that if we want to enable or disable cashing.
    • When a data is being called multiple times, than we will place that in cash due to which less time will be required to execute that process.
    • But this is not valid at every place such as while doing transactions.
  6. Dirty/modify:
    • By the help of dirty we can check that whether the page is modified or not. So by it we can easily and effetely update the hard disk when data is changed.

So this was all about page table classification. Hope you liked it and learned something new from it.

If you have any doubt, question, quires related to this article or just want to share something with me, than please feel free to contact me.

๐Ÿ“ฑ Contact Me

Twitter, LinkedIn, Telegram, Instagram,

๐Ÿ“ง Write a mail

rahulmishra102000@gmail.com

GitHub, HackerRank