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

IBM 000-8697 How User Processes Attach to Shared Memory

1 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 702
Download on canonical page 702 pages, 4.15 Mb
2-24 IBM Informix OnLine Database Server Administrator’s Guide
How User Processes Attach to Shared Memory
How User Processes Attach to Shared Memory
OnLinerequires a technique to ensure that all OnLine user processes find and
gain access to the same shared-memory segments. If two or more OnLine
database servers exist on a singleUNIX host machine, the shared-memory
segments associated with each OnLine server exist at different locations in
physical memory. The shared-memory segments for each OnLine server
must be uniquely identifiable to the database user processes.
The following list outlines the major steps that are completed when an
OnLine user process attaches to shared memory:
1. User process obtains SERVERNUM from configuration file.
2. User process calculates a shared-memory key value using
SERVERNUM.
3. User process requests a shared-memory segment using the shared-
memory key value. UNIX returns the shared-memory identifier for
the first shared-memory segment.
4. Userprocess directs UNIX to attach the shared-memory segment to
its process space atSHMBASE.
5. If required, additional shared-memory segments are attached to be
contiguous with the first segment.
The tbinit daemon process creates the OnLineshared-memory segments
during initialization. (Refer to page2-10.) Associated with each shared-
memory segment are two pieces of information:
A shared-memory key value
A shared-memory identifier

Step 1: Obtain SERVERNUM

Whena user process directs the UNIX operating system to a shared-memory
segment,it defines the segment it needs using the shared-memory key value.
Toattach to the segment, the user process must acquire fromUNIX the shared
memory identifier that is associated with that segment. TheUNIX operating
system uses these identifiers to track each shared-memory segment.
MENU

Models

Contents