The following section outlines the main events that occur from the time a checkpoint is requested. This section also notes the differences between full and fuzzy checkpoints:
In a full checkpoint, the database server flushes all modified pages to disk.
This step is the same for both fuzzy and full checkpoints. After a checkpoint is requested, user threads are prevented from entering portions of code that are considered critical sections. User threads that are within critical sections of code are permitted to continue processing to the end of the critical sections.
This step is the same for both fuzzy and full checkpoints. Next, the logical-log buffer is flushed to the logical-log file on disk.
For both fuzzy and full checkpoints, the database server flushes the physical-log buffer to the physical log on disk. For full checkpoints, the physical-log buffer contains all modified pages whereas for fuzzy checkpoints, the physical-log buffer holds pages that fuzzy operations modified. The time stamp of the physical-log flush is stored in shared memory.
In a fuzzy checkpoint, the database server flushes modified pages for nonfuzzy operations in the buffer pool to disk. The database server flushes modified pages for fuzzy operations (inserts, deletes, updates) to disk. Figure 62 shows how the database server writes only the nonfuzzy pages to disk. The shaded squares, marked F, represent the fuzzy pages.
In a full checkpoint, the database server flushes all modified pages in the shared-memory buffer pool to disk.
This step is the same for both fuzzy and full checkpoints. A checkpoint-complete record is written to the logical-log buffer after the modified pages have been written to disk.
In a fuzzy checkpoint, a dirty-pages table (DPT) record is written to the logical-log buffer. For more information, see the chapter on logical-log record types in the IBM Informix Administrator's Reference.
This step is the same for both fuzzy and full checkpoints. After the checkpoint-complete record is written to disk, the physical log is logically emptied, meaning that current entries in the physical log can be overwritten.
Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]