16.1.5 Formula for size of shared memory used by global buffers

The size of the shared memory used by the global buffers is calculated for each pdbuffer statement using Formula 1. If Y is specified in the pd_dbbuff_modify operand, add Formula 2. The total value obtained from Formulas 1 and 2 is the memory size required for use by the global buffers.

If the pdbuffer operand is omitted, HiRDB will automatically calculate the shared memory size, so it need not be estimated.

FormulaShared memory calculation formula (KB)
Formula 1
32-bit mode
n
[Figure]{
i=1
[Figure]{672 + 64 + (280 + 56#1) [Figure] (Pi + 4)
+ (124 + 80#2 + 96 [Figure] A[Figure] Mi) [Figure] Ui} [Figure] 4096[Figure][Figure] 4096
+ Si[Figure] {Pi + 4 + (Ui[Figure] Mi[Figure] A)}
} [Figure] 1024
64-bit mode
n
[Figure]{
i=1
[Figure]{864 + 64 + (464 + 96#1) [Figure] (Pi + 4)
+ (176 + 96#2 + 136 [Figure] A [Figure] Mi) [Figure] Ui} [Figure] 4096[Figure][Figure] 4096
+ Si[Figure] {Pi + 4 + (Ui[Figure] Mi[Figure] A)}
} [Figure] 1024
Formula 2
32-bit mode
{ [Figure][((s[Figure] 1024 [Figure]4) [Figure]8) + 112] [Figure]4096 [Figure][Figure] 4096 [Figure][Figure]a[Figure](s[Figure] 1024) [Figure]
} [Figure]1024
64-bit mode
{ [Figure][((s[Figure] 1024 [Figure]4) [Figure]8) + 144] [Figure]4096 [Figure][Figure] 4096 [Figure][Figure]a[Figure](s[Figure] 1024) [Figure]
} [Figure]1024
n: Number of global buffer pools
i: Global buffer pool definitions to be calculated
P: Number of global buffer sectors
A: If the asynchronous READ facility is used, 2; if it is not used, 1.
M: Maximum number of batch input pages
If at least 1 is specified in the pd_max_ard_process operand, this is twice the specified value.
U: Maximum number of concurrently executable prefetch operations
S: Maximum page length of the RDAREAs allocated to global buffer
s: SHMMAX specified value
a: Total from Formula 1
#1: Add this value for the LOB global buffer.
#2: Add this value if at least 1 is specified in the pd_max_ard_process operand.