IBM 000-8697 Manual de usuario Pagina 167

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 702
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 166
System Architecture 2-73
When the Daemons Flush the Buffer Pool
When the Daemons Flush the Buffer Pool
Buffer flushing is managed by the tbinit master daemon and performed by
tbinit or by one or more tbpgcl (page-cleaner) daemons. (If no tbpgcl
daemons have been configured for your OnLine server, the tbinit daemon
performs page-cleaner functions.)
Flushing the modified shared-memory page buffers, the physical log buffer,
and the logical log buffer must be synchronized with page-cleaner activity
according to specific rules designed to maintain data consistency.
The overriding rule of buffer flushing is this: first flush the “before-images”
of modified pages to disk before you flush the modified pages themselves.
Inpractice,thismeansthatthefirstphysicallogbufferisflushedandthenthe
buffers containing modified pages from the shared-memory buffer pool.
Therefore, even when the need to flush a shared-memory page buffer arises
because that buffer is needed by another user process (a foreground write,
refer to page 2-75), the page buffer cannot be flushed until it is verified that
the“before-image”ofthepagehasalreadybeenwrittentodisk.Ifthiscannot
be verified, the physical log buffer must be flushed first, before the single
shared-memory page buffer is flushed. (Refer to page 2-74 for more infor-
mation about how this sequence of events is enforced.)
Buffer-pool flushing is initiated under any one of four conditions:
A requirement for page cleaning, determined by the value of
LRU_MAX_DIRTY (refer to page 2-58)
A need to flush a fulllogical logbufferorphysicallogbuffer(referto
page 2-63 and page 2-66, respectively)
Aneedtoflushthelogicallogbufferafteracommittedtransaction in
an unbuffered database (refer to page 2-66)
A need to execute a checkpoint (refer to page 2-70)
Vista de pagina 166
1 2 ... 162 163 164 165 166 167 168 169 170 171 172 ... 701 702

Comentarios a estos manuales

Sin comentarios