Scalable Database Server, HiRDB Version 8 Installation and Design Guide
The size of memory required for the unit controller in each server machine from startup to termination of the unit is the sum of the items listed as follows:
Ensure that the size of the shared memory within the entire controller does not exceed 2 gigabytes.
| Process item | Shared memory calculation formula (bytes) |
|---|---|
| Scheduler |
|
| Lock server |
In a unit subject to standby-less system switchover (1:1), servers in the unit means all accepted BESs + all alternate BESs. y x=1 192 + 48 + cx + dx + 48 + 4096 + gx + 48 + ix + 48 + 12252 + 48 + nx + px + tx + ux + 16 } x: Server serial number in the unit y: Number of servers in the unit cx: When pd_lck_hash_entry is omitted or 0 is specified: For FES with pd_fes_lck_pool_size omitted: ( For FES with pd_fes_lck_pool_size specified: ( For BES or DS: ( When 2 or a greater non-prime number is specified for pd_lck_hash_entry: ( When 1 or a prime number is specified for pd_lck_hash_entry: ( dx: For FES with pd_fes_lck_pool_size omitted: ((p + 3) For FES with pd_fes_lck_pool_size specified: Value of pd_fes_lck_pool_size For BES or DS: ((p + 3) gx: For FES: (p + 3) For BES with the value of pd_utl_exec_mode = 1 and s > 32: ((p + 3) For BES with the value of pd_utl_exec_mode = 0 or s ((p + 3) For DS with the value of pd_utl_exec_mode == 1 and s > 16: ((p + 3) For DS with the value of pd_utl_exec_mode = 0 or s
((p + 3) For FES with pd_fes_lck_pool_size specified: (value of pd_fes_lck_pool_size For BES with the value of pd_utl_exec_mode = 1 and s > 32: (value of pd_lck_pool_size rounded up to the next even value For BES with the value of pd_utl_exec_mode = 0 or s (value of pd_lck_pool_size rounded up to the next even value For DS with the value of pd_utl_exec_mode = 1 and s > 16: (value of pd_lck_pool_size rounded up to the next even value For DS with the value of pd_utl_exec_mode = 0 or s (value of pd_lck_pool_size
(p + 3) For BES with the value of pd_utl_exec_mode = 1 and s > 32: ((p + 3) For BES with the value of pd_utl_exec_mode = 0 or s ((p + 3) For DS with the value of pd_utl_exec_mode = 1 and s > 16: ((p + 3) For DS with the value of pd_utl_exec_mode = 0 or s ((p + 3) px: For FES with the number of FESs in the HiRDB system > 1: s + 1 For FES with the number of FESs in the HiRDB system = 1: s For BES with s > value of pd_max_bes_process: s For BES with s For DS with s > value of pd_max_dic_process: s For DS with s s: value of pd_max_users + value of pd_max_reflect_process_count tx: For FES: 32 + (p + 3) For BES with the value of pd_utl_exec_mode = 1 and s > 32: 32 + ((p + 3) For BES with the value of pd_utl_exec_mode = 0 or s 32 + ((p + 3) For DS with the value of pd_utl_exec_mode = 1 and s > 16: 32 + ((p + 3) For DS with the value of pd_utl_exec_mode = 0 or s 32 + ((p + 3) ux: For FES with pd_fes_lck_pool_size omitted: 32 + ((p + 3) For FES with pd_fes_lck_pool_size specified: 32 + (value of pd_fes_lck_pool_size For BES with the value of pd_utl_exec_mode = 1 and s > 32: 32 + (value of pd_lck_pool_size + s rounded up to the next even value For BES with the value of pd_utl_exec_mode = 0 or s 32 + (value of pd_lck_pool_size + 32 For DS with the value of pd_utl_exec_mode = 1 and s > 16: 32 + (value of pd_lck_pool_size rounded up to the next even value For DS with the value of pd_utl_exec_mode = 0 or s 32 + (value of pd_lck_pool_size rounded up to the next even value
|
| Transaction manager | 288 + 32
t: Value of pd_max_dic_process + value of pd_max_reflect_process_count u: Value of pd_max_bes_process + value of pd_max_reflect_process_count A: For a multi-FES system: s + 1 If not a multi-FES system: s B: Unit subject to standby-less system switchover (effects distributed): Number of host BESs + pd_ha_max_act_guest_servers operand correction value Other unit: Number of servers in the unit C: If the unit meets one condition in Conditions below: 128 + number of FESs in the system) If the unit does not match both of the conditions in Conditions below: 0 D: If the unit meets one condition in Conditions below: 128 + number of FESs in the system) If the unit does not meet both conditions in Conditions below: 0 E: If the unit meets one condition in Conditions below: 128 + number of FESs in the system) If the unit does not meet both conditions in Conditions below: 0 Conditions
|
| Timer server | 32 + 1440 Number of utility servers in unit is 23 + When there is FES in the unit: 3 When there is DS in the unit: 7 When there is BES in the unit: Number of BESs b: For HP-UX, Solaris, and AIX 5L: 15 For Linux: 6 |
| Statistics log server | 384 + 128 + value of pd_stj_buff_size |
| Process server | 160 + 512 c: d: If the unit contains MGR, 46; if not, j. e: If the unit contains DS, 15; if not, 0. f: If the unit contains FES, 9; if not, 0. g: If the unit contains BES, 24; if not, 0. h: If the standby-less system switchover (1:1) facility is used, 9; if not, 0. i: If the unit is subject to standby-less system switchover (effects distributed), 1; if not, 0. j: If manager is specified in the pd_mlg_msg_log_unit operand, 1; if local is specified, 2.
|
| System manager | 640 + (44 + 4) c: Number of units d: Number of -c options specified in pdunit operand e: Number of pdcltgrp operands specified g: Number of FESs in the system h: Number of BESs in the system i: Number of DSs in the system j: Number of FESs in unit k: Number of BESs in unit m: Number of DSs in the unit n: Number of alternate BESs in the unit o: If the unit is subject to standby-less system switchover (1:1), 1; if not 0 p: i + k + m + n q: 24 + t + j r: 14 s: 212 + 2052 + 128 t: If the unit contains MGR, 2; if not, 0 u: Number of acceptable BESs (value of the pd_ha_max_act_guest_servers operand) v: If the unit is subject to standby-less system switchover (effects distributed), 1; if not, 0 w: If there is a unit that is subject to standby-less system switchover (effects distributed), 1; if not, 0 y: Number of units in the HA group z: Number of servers in the HA group |
| Name server | X + Y + 1024 + Z X: MAX(65536,{ Y: MAX(16384,{ Z: (total number of BESs in the unit + j + g + k) a: When the unit contains MGR: 1056 When the unit contains no MGR: 0 b: (total number of BESs in the unit + j + g + k) c: When the unit contains MGR: {(total number of units in the system - 1) + (total number of units in the system - 1) When the unit contains no MGR: 488 d: When the unit contains FES: (number of BESs in other units + number of DSs in other units) When the unit contains no FES: 0 e: When the unit contains BES and DS: Number of BESs in other units When the unit does not contain BES nor DS: 0 f: When the unit contains FES: 3 When the unit contains no FES: 0 g: 24 + f + h + i h: When the unit contains DS: 7 When the unit contains no DS: 0 i: When the unit contains BES: 6 When the unit contains no BES: 0 j: Unit subject to standby-less system switchover (effects distributed): Number of acceptable BESs Other unit: 0 k: Unit subject to standby-less system switchover (1:1): Number of alternate BESs Other unit: 0 |
| Node manager |
+ 1536 + 928 + 56 + 16
+ 16
|
| I/O server |
1 Add this value if there are FESs. 2 Add this value if there are BESs. 3 Add this value if there are DSs. In a unit subject to standby-less system switchover (1:1), double the value obtained in the above formula.
4 Includes the value of pd_ha_max_act_guest_servers. |
| Log server |
Add this if the pd_max_reflect_process_count operand is specified. (128 + 704) A: 16 B: Number of pdlogadfg -d sys operands specified* C: 0 D: Unit subject to standby-less system switchover (1:1): Number of alternate BESs in the unit Unit subject to standby-less system switchover (effects distributed): pd_ha_max_act_guest_servers operand correction value
|
| Synchronization point dump server |
Unit subject to standby-less system switchover (effects distributed): pd_ha_max_act_guest_servers operand correction value
|
| Common to all units | a + {b + 64 + (s + 3) + (g + (value of pd_max_server_process + 100) + (value of pd_max_server_process + 100 + 384) + (value of pd_max_server_process + 127) If the standby-less system switchover (effects distributed) facility is used, add: (
Unit subject to standby-less system switchover (effects distributed): pd_ha_max_guest_servers operand correction value s: Value of pd_max_users + value of pd_max_reflect_process_count t: Value of pd_max_dic_process + value of pd_max_reflect_process_count u: Value of pd_max_bes_process + value of pd_max_reflect_process_count s is t for a DS and u for a BES. If pd_max_dic_process or pd_max_bes_process is omitted, use s. |
| Transaction log server |
C: Number of BESs in the entire system D: Number of servers in unit E: 0 F: 60 H: Unit subject to standby-less system switchover (1:1): Number of alternate BESs in the unit Unit subject to standby-less system switchover (effects distributed): pd_ha_max_act_guest_servers operand correction value J: Maximum value of s, t, and u in the servers in the unit s: Value of pd_max_users + value of pd_max_reflect_process_count t: Value of pd_max_dic_process + value of pd_max_reflect_process_count u: Value of pd_max_bes_process + value of pd_max_reflect_process_count
|
| Status server | A: Unit subject to standby-less system switchover (1:1): Number of alternate BESs in the unit Unit subject to standby-less system switchover (effects distributed): pd_ha_max_act_guest_servers operand correction value |
| Security audit | A: 560 if the pd_aud_file_name operand is omitted 456 + (304 B: 0 if the pd_aud_async_buff_size operand value is 0 The following value if the pd_aud_async_buff_size operand value is 4096 or greater: For Linux: (160 +{( For a system other then Linux: (160 +{( If the unit uses the standby-less system switchover facility, the size of memory required for security audit at the target unit must be added to the size of memory for the local unit. |
The size of memory required for the unit controller in each server machine from startup to termination of the unit is the sum of the following items:
| Process item | Shared memory calculation formula (bytes) |
|---|---|
| Scheduler |
|
| Lock server |
In the unit subject to standby-less system switchover (1:1), servers in the unit means all accepted BESs + all alternate BESs. y x=1 272 + 80 + cx + dx + 64 + 8192 + gx + 80 + ix + 64 + 16336 + 64 + nx + px + tx + ux + 16 } x: Server serial number in the unit y: Number of servers in the unit cx: When pd_lck_hash_entry is omitted or 0 is specified: For FES with pd_fes_lck_pool_size omitted: ( For FES with pd_fes_lck_pool_size specified: ( For BES or DS: ( When 2 or a greater non-prime number is specified for pd_lck_hash_entry: ( When 1 or a prime number is specified for pd_lck_hash_entry: ( dx: For FES with pd_fes_lck_pool_size omitted: ((p + 3) For FES with pd_fes_lck_pool_size specified: Value of pd_fes_lck_pool_size For BES or DS: ((p + 3) gx: For FES: (p + 3) For BES with the value of pd_utl_exec_mode = 1 and s > 32: ((p + 3) For BES with the value of pd_utl_exec_mode = 0 or s ((p + 3) For DS with the value of pd_utl_exec_mode = 1 and s > 16: ((p + 3) For DS with the value of pd_utl_exec_mode = 0 or s ((p + 3) ix: For FES with pd_fes_lck_pool_size omitted: ((p + 3) For FES with pd_fes_lck_pool_size specified: (value of pd_fes_lck_pool_size rounded up to the next even value For BES with the value of pd_utl_exec_mode = 1 and s > 32: (value of pd_lck_pool_size + (p + 3) rounded up to the next even value For BES with the value of pd_utl_exec_mode = 0 or s (value of pd_lck_pool_size rounded up to the next even value For DS with the value of pd_utl_exec_mode = 1 and s > 16: (value of pd_lck_pool_size + (p + 3) rounded up to the next even value For DS with the value of pd_utl_exec_mode = 0 or s (value of pd_lck_pool_size + (p + 3) rounded up to the next even value nx: For FES: (p + 3) For BES with the value of pd_utl_exec_mode = 1 and s > 32: ((p + 3) For BES with the value of pd_utl_exec_mode = 0 or s ((p + 3) For DS with the value of pd_utl_exec_mode = 1 and s > 16: ((p + 3) For DS with the value of pd_utl_exec_mode = 0 or s ((p + 3) p: For FES, when the number of FESs in the HiRDB system > 1: s + 1 For FES, when the number of FESs in the HiRDB system = 1: s For BES with s > value of pd_max_bes_process: s For BES with s For DS with s > value of pd_max_dic_process: s For DS with s s: Value of pd_max_users + value of pd_max_reflect_process_count tx: For FES: 32+(p + 3) For BES with the value of pd_utl_exec_mode = 1 and s > 32: 32 + ((p + 3) For BES with the value of pd_utl_exec_mode = 0 or s 32 + ((p + 3) For DS with the value of pd_utl_exec_mode = 1 and s > 16: 32 + ((p + 3) For DS with the value of pd_utl_exec_mode = 0 or s 32 + ((p + 3) ux: For FES with pd_fes_lck_pool_size omitted: 32 + ((p + 3) For FES with pd_fes_lck_pool_size specified: 32 + (value of pd_fes_lck_pool_size rounded up to the next even value For BES with the value of pd_utl_exec_mode = 1 and s > 32: 32 + (value of pd_lck_pool_size + (p + 3) rounded up to the next even value For BES with the value of pd_utl_exec_mode = 0 or s 32+(value of pd_lck_pool_size + (p + 3) rounded up to the next even value For DS with the value of pd_utl_exec_mode = 1 and s > 16: 32 + (value of pd_lck_pool_size + (p + 3) For DS with the value of pd_utl_exec_mode = 0 or s 32 + (value of pd_lck_pool_size + (p + 3)
|
| Transaction manager | 304 + 32
s: Value of pd_max_users + value of pd_max_reflect_process_count t: Value of pd_max_dic_process + value of pd_max_reflect_process_count u: Value of pd_max_bes_process + value of pd_max_reflect_process_count A: For a multi-FES system: s + 1; if not a multi-FES system: s B: Unit subject to standby-less system switchover (effects distributed): Number of host BESs + value of pd_ha_max_act_guest_servers operand Other unit: Number of servers in the unit C: If the unit meets one condition in Conditions below: 0 128 + number of FESs in the system) If the unit does not meet both conditions in Conditions below: 0 D: If the unit meets one condition in Conditions below: 128 + number of FESs in the system) If the unit does not meet both conditions in Conditions below: 0 E: If the unit meets one condition in Conditions below: 128 + number of FESs in the system) If the unit does not meet both conditions in Conditions below: 0 Conditions:
|
| Timer server | 32 + 1440 + (48 - 32) Number of utility servers in unit is 23 + When there is FES in the unit: 3 When there is DS in the unit: 7 When there is BES in the unit: number of BESs b: For HP-UX, Solaris, and AIX 5L: 15 For Linux: 6 |
| Statistics log server | 424 + 128 + value of pd_stj_buff_size |
| Process server | 176 + 512 c: d: If the unit contains MGR, 46; if not, j. e: If the unit contains DS, 15; if not, 0. f: If the unit contains FES, 9; if not, 0. g: If the unit contains BES, 24; if not, 0. h: If the standby-less system switchover (1:1) facility is used, 9; if not, 0. i: If the unit is subject to standby-less system switchover (effects distributed), 1; if not, 0. j: If manager is specified in the pd_mlg_msg_log_unit operand, 1; if local is specified, 2.
|
| System manager | 672 + (48 + 8) c: Number of units d: Number of -c options specified in pdunit operand e: Number of pdcltgrp operands specified g: Number of FESs in the system h: Number of BESs in the system i: Number of DSs in the system j: Number of FESs in unit k: Number of BESs in unit m: Number of DSs in the unit n: Number of alternate BESs in the unit o: If the unit is subject to standby-less system switchover, 1; if not, 0 p: i + k + m + n q: 24 + t + j r: 14 s: 236 + 2052 + 148 t: If the unit contains MGR, 2; if not, 0 u: Number of acceptable BESs (value of the pd_ha_max_act_guest_servers operand) v: If the unit is subject to standby-less system switchover (effects distributed), 1; if not, 0 w: If there is a unit that is subject to standby-less system switchover (effects distributed), 1; if not, 0 y: Number of units in the HA group z: Number of servers in the HA group |
| Name server | X + Y + 1024 + Z X: MAX(65536,{ Y: MAX(16384,{ Z: (total number of BESs in the unit + j + g + k) a: When the unit contains MGR: 1056 When the unit contains no MGR: 0 b: (total number of BESs in the unit + j + g + k) c: When the unit contains MGR: {(total number of units in the system - 1) + (total number of units in the system - 1) When the unit contains no MGR: 488 d: When the unit contains FES: (number of BESs in other units + number of DSs in other units) When the unit contains no FES: 0 e: When the unit contains BES and DS: Number of BESs in other units When the unit does not contain BES nor DS: 0 f: When the unit contains FES: 3 When the unit contains no FES: 0 g: 24 + f + h + i h: When the unit contains DS: 7 When the unit contains no DS: 0 i: When the unit contains BES: 6 When the unit contains no BES: 0 j: Unit subject to standby-less system switchover (effects distributed): Number of acceptable BESs Other unit: 0 k: Unit subject to standby-less system switchover (1:1): Number of alternate BESs Other unit: 0 |
| Node manager |
+ 2048 + 1104 + 72 + 16
+ 16
|
| I/O server |
1 Add this value if there are FESs. 2 Add this value if there are BESs. 3 Add this value if there are DSs. For a standby-less system switchover configuration (1:1) target unit, double the value obtained in the above formula.
4 Includes the value of pd_ha_max_act_guest_servers. |
| Log server |
Add this if the pd_max_reflect_process_count operand is specified. (128 + 704) A: 16 B: Number of pdlogadfg -d sys operands specified* C: 0 D: Unit subject to standby-less system switchover (1:1): Number of alternate BESs in the unit Unit subject to standby-less system switchover (effects distributed): pd_ha_max_act_guest_servers operand correction value
|
| Synchronization point dump server |
A: Unit subject to standby-less system switchover (1:1): Number of alternate BESs in the unit Unit subject to standby-less system switchover (effects distributed): pd_ha_max_act_guest_servers operand correction value
|
| Common to all units | a + {b + 80 + (s + 3) + (g + (value of pd_max_server_process + 100) + (value of pd_max_server_process + 100 + 384) + (value of pd_max_server_process + 127) If the standby-less system switchover (effects distributed) facility is used, add: ( a: 38272 b: 3480 c: 2760 d: 48 e: 80 + 96 + MAX(5, f: 512 g: {(128 + value of pd_lck_until_disconnect_cnt h: 0 if pd_registered_port is not specified i: Unit subject to standby-less system switchover (1:1): Number of alternate BESs Unit subject to standby-less system switchover (effects distributed): pd_ha_max_guest_servers operand correction value s: Value of pd_max_users + value of pd_max_reflect_process_count t: Value of pd_max_dic_process + value of pd_max_reflect_process_count u: Value of pd_max_bes_process + value of pd_max_reflect_process_count s is t for a DS and u for a BES. If pd_max_dic_process or pd_max_bes_process is omitted, use s. |
| Transaction log server |
C: Number of BESs in the entire system D: Number of servers in unit E: 0 G: 64 H: Unit subject to standby-less system switchover (1:1): Number of alternate BESs in the unit Unit subject to standby-less system switchover (effects distributed): pd_ha_max_act_guest_servers operand correction value J: Maximum value of s, t, and u in the servers in the unit s: Value of pd_max_users + value of pd_max_reflect_process_count t: Value of pd_max_dic_process + value of pd_max_reflect_process_count u: Value of pd_max_bes_process + value of pd_max_reflect_process_count
|
| Status server | A: Unit subject to standby-less system switchover (1:1): Number of alternate BESs in the unit Unit subject to standby-less system switchover (effects distributed): pd_ha_max_act_guest_servers operand correction value |
| Security audit | A: 624 if the pd_aud_file_name operand is omitted 520 + (320 B: 0 if the pd_aud_async_buff_size operand value is 0 The following value if the pd_aud_async_buff_size operand value is 4096 or greater: (176 +{( If the unit uses the standby-less system switchover facility, the size of memory required for security audit at the target unit must be added to the size of memory for the local unit. |
All Rights Reserved. Copyright (C) 2007, Hitachi, Ltd.