Dirty Bit - Page Replacement

Page Replacement

When speaking about page replacement, each page (frame) may have a modify bit associated with it in the hardware. The dirty bit for a page is set by the hardware whenever any word or byte in the page is written into, indicating that the page has been modified. When we select a page for replacement, we examine its modify bit. If the bit is set, we know that the page has been modified since it was read in from the disk. In this case, we must write that page to the disk. If the dirty bit is not set, however, the page has not been modified since it was read into memory. Therefore, if the copy of the page on the disk has not been overwitten (by some other page, for example), then we can avoid writing the memory page to the disk: it is already there.

Read more about this topic:  Dirty Bit

Famous quotes containing the words page and/or replacement:

    Digressions, incontestably, are the sunshine;Mthey are the life, the soul of reading!—take them out of this book, for instance,—you might as well take the book along with them;Mone cold external winter would reign in every page of it; restore them to the writer;Mhe steps forth like a bridegroom,—bids All-hail; brings in variety, and forbids the appetite to fail.
    Laurence Sterne (1713–1768)

    Not even the visionary or mystical experience ever lasts very long. It is for art to capture that experience, to offer it to, in the case of literature, its readers; to be, for a secular, materialist culture, some sort of replacement for what the love of god offers in the world of faith.
    Salman Rushdie (b. 1947)