
2-96 IBM Informix OnLine Database Server Administrator’s Guide
Reserved Pages
The reserved page checkpoint information is stored in a two-page pair,
PAGE_1CKPT and PAGE_2CKPT. This information changes for each check-
point. During each checkpoint, tbinit writes the latest checkpoint
informationtooneofthepagesinthepair.Duringthenextcheckpoint,tbinit
writesthe information to theotherpageinthe pair. At anypoint,onepagein
the checkpoint reserved page pair contains a copy of information written at
the most-recent checkpoint and the other page in the pair contains a copy of
information written at the second most-recent checkpoint.
Thetbinit daemonfollowsadifferentprocedureforupdatinginformation in
the next three reserved page pairs. The tbinit daemon only updates the
dbspace, primary chunk, or mirror chunk reserved pages when a change
occurs. The tbinit daemon learns of a change from flags that are set on the
dbspace, primary chunk, and mirror descriptor tables in shared memory.
During the checkpoint, tbinit checks each shared-memory descriptor table
for a change flag.
If the flag is set, tbinit preparesto writethe modifieddescriptor information
to the appropriate page in the reserved page pair. First, tbinit switches from
the current page (which is the page that received the last write) to the other
page in the pair. Second, tbinit writes the information to the reserved page.
Third,tbinitupdatesthefieldsthatcontain the numbers of thecurrentpages
for the dbspace, primary chunk, or mirror chunk information. (These fields
are located on the PAGE_1CKPT and PAGE_2CKPT pages.)
The last pairofreservedpages contains archive information. Duringa check-
point, tbinit always updates one of the pages in the PAGE_1ARCH/
PAGE_2ARCH
reserved-pagepair.Thetbinitdaemonalternatesbetweeneach
page in the pair with every checkpoint.
Refer to page 2-72 for a description of the complete checkpoint procedure.
Commenti su questo manuale