edited by
17,362 views
49 49 votes

Dirty bit for a page in a page table

  1. helps avoid unnecessary writes on a paging device
  2. helps maintain LRU information
  3. allows only read on a page
  4. None of the above

4 Answers

Best answer
69 69 votes

The dirty bit allows for a performance optimization. A page on disk that is paged in to physical memory, then read from, and subsequently paged out again does not need to be written back to disk, since the page hasn't changed. However, if the page was written to after it's paged in, its dirty bit will be set, indicating that the page must be written back to the backing store answer: (A)

edited by
27 27 votes
ans is A...to perform any write operation on page firstly we check the dirty bit status...dirty bit will be set when page will be modified(suppose s=1 set condition) and it will remain s=1(set) until the page modified will write back into the memory..if page was not modified then it will not change the dirty bit value i.e.s=0...now  suppose we perform write operation on page then its dirty bit become s=1..and suppose after some time we were performing write operation on that page then firstly we check the dirty bit value here its value is 1 it means page was modified..so firstly we write that page to memory and then perform any modification by this way we were avoiding unnecessary write operation on paging device
9 9 votes

Suppose if we don't have "Dirty but concept" then whenever page fault occurs, the page has to be written back first in secondary memory in order to assure consistency ( even though the page may or may not be modified ).

Now if we have "Dirty bit concept" then by examining it's status it can be concluded whether the page should be written back in secondary memory or not whenever page fault occurs. In this manner "Dirty bit helps avoid unnecessary writes on paging device"

So (A) is correct 

0 0 votes

Option A: Its right. Dirty bit helps us to identify whether the victim page which will be replaced has been modified or not after loading it to the Physical Memory From Hard Disk. If it has been modified, then we need to write the page to Hard Disk to ensure in future due to some mishaps, data doesn't gets lost. But if the page hasn't been modified since its transfer to the Physical Memory, no need to write it to the Hard Disk. Thus it helps to "avoid unnecessary writes"

Option B: LRU doesn't need Dirty Bit. Dirty Bit doesn't give us any info as to when was the last time a page was used, which is a crucial info for LRU. That's why this is wrong.

Option C: Dirty Bit hasn't got any control as far as reading from the page or writing to the page is concerned. So, this is wrong.

Answer:
Position:
Show:

Related questions

44 44 votes
5 answers 5 answers
21.0k
21.0k views
Kathleen asked Sep 29, 2014
20,968 views
Thrashingreduces page I/Odecreases the degree of multiprogrammingimplies excessive page I/Oimprove the system performance
35 35 votes
3 answers 3 answers
15.3k
15.3k views
Kathleen asked Sep 29, 2014
15,265 views
Locality of reference implies that the page reference being made by a processwill always be to the page used in the previous page referenceis likely to be to one of the p...
48 48 votes
3 answers 3 answers
49.6k
49.6k views
Kathleen asked Sep 22, 2014
49,623 views
Increasing the RAM of a computer typically improves performance because:Virtual Memory increasesLarger RAMs are fasterFewer page faults occurFewer segmentation faults occ...
29 29 votes
1 answers 1 answer
8.8k
8.8k views
Kathleen asked Oct 9, 2014
8,761 views
A critical section is a program segmentwhich should run in a certain amount of timewhich avoids deadlockswhere shared resources are accessedwhich must be enclosed by a pa...