• SQLSACT (11/9/2012)


    GilaMonster (11/9/2012)


    SQLSACT (11/9/2012)


    I'm trying to understand what happens to clean pages in the buffer pool (when a select statement brings pages into the buffer pool).

    What happens to the pages once the select statement is done with them?

    Nothing.

    Neither checkpoint nor lazywriter 'removes' dirty pages from the buffer pool. They just write the changes back to disk so that the pages are considered clean.

    Ok

    Now I'm really confused

    The way I understood it is:

    >> Insert, Update or Delete statement is received by SQL Server

    >> Required pages are copied from disk into buffer pool

    >> Changes are made to affected pages

    >> Checkpoint/Lazy Writer process writes the pages back to disk, replacing the original page on disk.

    Am I missing something here?

    Thanks

    one last step, the now "clean" pages remain in the buffer pool as clean pages until SQL Server needs the memory for something else.


    For faster help in answering any problems Please read How to post data/code on a forum to get the best help - Jeff Moden[/url] for the best way to ask your question.

    For performance Issues see how we like them posted here: How to Post Performance Problems - Gail Shaw[/url]

    Need to Split some strings? Jeff Moden's DelimitedSplit8K[/url]
    Jeff Moden's Cross tab and Pivots Part 1[/url]
    Jeff Moden's Cross tab and Pivots Part 2[/url]