Re: What are dirty pages?

From: Alex (alex_removethis__at_healthmetrx.com)
Date: 01/24/05


Date: Mon, 24 Jan 2005 09:59:24 -0800

Thank you Kalen for comprehensive answer.

Alex

"Kalen Delaney" <replies@public_newsgroups.com> wrote in message
news:O5PCGidAFHA.3860@TK2MSFTNGP11.phx.gbl...
> No, a dirty page is one that has been modified since it was brought into
the
> buffer pool, so it does not match what is on disk. It may or may not be
> committed.
>
> Dirty pages can be written to disk before they are committed, which is
often
> a good thing, as in the case of a transaction that updates thousands of
> pages.
>
> When a transaction commits, the LOG records for that transaction are
written
> to disk, but not the data pages. The dirty data pages are written to disk
> whenever a checkpoint occurs (and when space is needed in the buffer pool,
> and a few other times), and it is basically totally asynchronous with
> transaction commit operations.
> --
> HTH
> ----------------
> Kalen Delaney
> SQL Server MVP
> www.SolidQualityLearning.com
>
>
> "Alex" <alex_remove_this_@telus.net> wrote in message
> news:jc%Id.20865$Qb.12333@edtnps89...
> > BOL(ans other resourses) say that 'Buffer pages that contain
modifications
> > that have not been written to disk.'
> > My understanding is that they are those which transactions have already
> > been
> > commited and they are just waiting to be flushed from buffer pool out to
> > disk. Am I right?
> >
> > Thank you all
> >
> > Alex
> >
> >
>
>



Relevant Pages

  • Re: What are dirty pages?
    ... buffer pool, so it does not match what is on disk. ... Dirty pages can be written to disk before they are committed, ... When a transaction commits, the LOG records for that transaction are written ...
    (microsoft.public.sqlserver.server)
  • Re: [GIT PULL] Ext3 latency fixes
    ... which unplugged the write queue after every page write. ... In guarded mode the on disk i_size is not updated until after the data ... The end_io handler puts the buffer onto the per-sb list of guarded ... One big gotcha is that we starting a transaction while a page is ...
    (Linux-Kernel)
  • Re: implementing a database log
    ... required for roll back of an uncommitted transaction during recovery. ... dirty pages to disk in the background. ...
    (comp.databases.theory)
  • Re: implementing a database log
    ... required for roll back of an uncommitted transaction during recovery. ... dirty pages to disk in the background. ...
    (comp.databases.theory)
  • Re: How to know when file data has been flushed into disk?
    ... How will the file system be notified after all data has been ... before committing the transaction. ... lost if system crashes when data is being flushed to disk. ...
    (Linux-Kernel)