6.3.1 Determining the shared memory requirement
This subsection explains how to determine the amount of shared memory the HADB server will use.
Use the following formula to determine the amount of shared memory required by the HADB server.
- Formula
-
shared-memory = shared-memory-management-area + global-buffer-page + process-common-memory + real-thread-private-memory#1 × (value-specified-for-adb_sys_max_users-operand-in-server-definition + value-specified-for-adb_sys_rthd_num-operand-in-server-definition + 10) + real-thread-private-memory#2
- #1
-
Applies to the variables in (4) Determining the real thread private memory requirement, excluding the following:
-
RTHD_IMPORTSZ
-
RTHD_IDXRBLDSZ
-
RTHD_GETCOSTSZ
-
RTHD_DBSTATUSSZ
-
RTHD_EXPORTSZ
-
RTHD_MERCHKSZ
-
RTHD_ARCCKSZ
-
RTHD_UNARCCKSZ
-
RTHD_REORGSZ
-
RTHD_CLTDEFMNG
-
RTHD_SYNDICTSZ
-
RTHD_AUDTRAILSZ
-
RTHD_CONVERTAUDSZ
-
- #2
-
Applies to the following variables in (4) Determining the real thread private memory requirement:
-
RTHD_IMPORTSZ
-
RTHD_IDXRBLDSZ
-
RTHD_GETCOSTSZ
-
RTHD_DBSTATUSSZ
-
RTHD_EXPORTSZ
-
RTHD_MERCHKSZ
-
RTHD_ARCCKSZ
-
RTHD_UNARCCKSZ
-
RTHD_REORGSZ
-
RTHD_CLTDEFMNG
-
RTHD_SYNDICTSZ
-
RTHD_AUDTRAILSZ
-
RTHD_CONVERTAUDSZ
-
The following subsections explain how to determine the requirements for the shared memory management area, global buffer page, process common memory, and real thread private memory.
- Organization of this subsection
(1) Determining the shared memory management area requirement
The shared memory management area is used in the cases described below. You must determine the requirement for the shared memory management area required in each of these cases.
-
During startup of the HADB server
See (1) Determining the shared memory management area requirement (for starting the HADB server) in 6.3.3 Determining the memory requirement for starting the HADB server.
-
During execution of the adbinit command
See (1) Determining the shared memory management area requirement (for executing the adbinit command) in 6.3.5 Determining the memory requirement for executing the adbinit command.
(2) Determining the global buffer page requirement
A global buffer page is used for starting the HADB server. To determine the global buffer page requirement, see (2) Determining the global buffer page requirement (for starting the HADB server) in 6.3.3 Determining the memory requirement for starting the HADB server.
(3) Determining the process common memory requirement
Use the formula shown below to determine the process common memory requirement.
Formula (megabytes)
- #
-
Add the value obtained by subtracting the value of the PROC_STAINF variable from the value of the PROC_STARTSZ variable.
- Explanation of variables
-
-
PROC_STARTSZ
Process common memory used for starting the HADB server
Determine the value as explained in (3) Determining the process common memory requirement (for starting the HADB server) under 6.3.3 Determining the memory requirement for starting the HADB server.
-
PROC_EXECSZ
Process common memory to be used during normal operation
Determine the value as explained in (1) Determining the process common memory requirement (during normal operation) under 6.3.4 Determining the memory requirement during normal operation.
-
PROC_STAINF
Process common memory used to store control information for statistical information
Determine the value according to (p) Determining the variable PROC_STAINF in (3) Determining the process common memory requirement (for starting the HADB server) under 6.3.3 Determining the memory requirement for starting the HADB server.
-
(4) Determining the real thread private memory requirement
Use the formula shown below to determine the real thread private memory requirement.
Formula (megabytes)
- Explanation of variables
-
-
RTHD_STARTSZ
Real thread private memory used for starting the HADB server
Determine the value as explained in (4) Determining the real thread private memory requirement (for starting the HADB server) under 6.3.3 Determining the memory requirement for starting the HADB server.
-
RTHD_EXECSZ
Real thread private memory to be used during normal operation
Determine the value as explained in (2) Determining the real thread private memory requirement (during normal operation) under 6.3.4 Determining the memory requirement during normal operation.
-
RTHD_IMPORTSZ
Real thread private memory to be used when executing the adbimport command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing the adbimport command) under 6.3.6 Determining the memory requirement for executing the adbimport command.
-
RTHD_IDXRBLDSZ
Real thread private memory to be used when executing the adbidxrebuild command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing the adbidxrebuild command) under 6.3.7 Determining the memory requirement for executing the adbidxrebuild command.
-
RTHD_GETCOSTSZ
Real thread private memory to be used when executing the adbgetcst command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing the adbgetcst command) under 6.3.8 Determining the memory requirement for executing the adbgetcst command.
-
RTHD_DBSTATUSSZ
Real thread private memory to be used when executing the adbdbstatus command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing adbdbstatus command) under 6.3.9 Determining the memory requirement for executing the adbdbstatus command.
-
RTHD_EXPORTSZ
Real thread private memory to be used when executing the adbexport command
Determine the value as explained in (2) Determining the real thread private memory requirement (during execution of the adbexport command) under 6.3.10 Determining the memory requirement for executing the adbexport command.
-
RTHD_MERCHKSZ
Real thread private memory to be used when executing the adbmergechunk command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing the adbmergechunk command) under 6.3.13 Determining the memory requirement for executing the adbmergechunk command.
-
RTHD_ARCCKSZ
Real thread private memory used for executing the adbarchivechunk command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing the adbarchivechunk command) under 6.3.16 Determining the memory requirement for executing the adbarchivechunk command.
-
RTHD_UNARCCKSZ
Real thread private memory used for executing the adbunarchivechunk command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing the adbunarchivechunk command) under 6.3.17 Determining the memory requirement for executing the adbunarchivechunk command.
-
RTHD_REORGSZ
Real thread private memory used for executing the adbreorgsystemdata command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing the adbreorgsystemdata command) under 6.3.18 Determining the memory requirement for executing the adbreorgsystemdata command.
-
RTHD_CLTDEFMNG
Real thread private memory used for executing the adbclientdefmang command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing the adbclientdefmang command) under 6.3.19 Determining the memory requirement for executing the adbclientdefmang command.
-
RTHD_SYNDICTSZ
Real thread private memory used for executing the adbsyndict command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing the adbsyndict command) under 6.3.20 Determining the memory requirement for executing the adbsyndict command.
-
RTHD_AUDTRAILSZ
Real thread private memory used when executing the adbaudittrail command
Determine the value as explained in (2) Determining the real thread private memory requirement (for executing the adbaudittrail command) under 6.3.21 Determining the memory requirement for executing the adbaudittrail command.
-
RTHD_CONVERTAUDSZ
Real thread private memory used for executing the adbconvertaudittrailfile command
Determine the value as explained in 6.3.22 Determining the memory requirement for executing the adbconvertaudittrailfile command.
-