1. Manuals
  2. Brands
  3. Computer Equipment
  4. Server
  5. IBM
  6. Computer Equipment
  7. Server

IBM 000-8697 Shared-Memory Internal Tables

1 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 702
Download on canonical page 702 pages, 4.15 Mb
2-48 IBM Informix OnLine Database Server Administrator’s Guide
Shared-Memory Internal Tables
The header also contains the OnLine “magic number,” which is used to
synchronizeuser processes. Each OnLine release is assigned a magic number.
In addition, the same magic number is contained within the user process
code. Whenever a user process attempts to attach to shared memory, these
magicnumbers are compared. If they are not compatible, an error is returned.
The magic-number check ensures that the database server processes are
compatible.
Shared-Memory Internal Tables
OnLine shared memory contains nine internal tables that track shared-
memory resources. (Refer toFigure 2-5 on page 2-40.) Three of these nine
tables are paired with hash tables. Each of the nine is described next.

OnLine Buffer Table

Thebuffer header table tracks the address and status of the individual buffers
inthe shared-memory pool. When a buffer is used, it contains an image of a
data or index page from disk.
Thebuffer header table contains the following control information, which is
needed for buffer management:
Buffer status
Buffer status is described asempty,unmodified, or modified. An
unmodifiedbuffer contains data, but this data can be overwritten. A
modified, ordirty, buffer contains data that must be written to disk
before it can be overwritten.
User processes currently accessing the buffer
Thelist of user processes is stored as a bit map. Each user sharing the
buffer accounts for one of the bits set in the bit map and increments
the buffer’s shared-user count, which is stored separately.
Current lock-access level
Buffersreceive lock-access levels depending on the type of operation
the user process is executing. OnLine supports three buffer lock-
access levels:shared, promotable (update), and exclusive.
MENU

Models

Contents