6.3.19 Determining the memory requirement for executing the adbclientdefmang command
When the adbclientdefmang command is executed, the HADB server uses the following types of memory. Determine the requirement for each type of memory.
- ▪ Shared memory
-
-
Process common memory (PROC_CLTDEFMNG)
-
Real thread private memory (RTHD_CLTDEFMNG)
-
- ▪ Process memory
-
-
Heap memory (HEAP_CLTDEFMNG)
-
The following subsections describe the formulas for determining the required amounts of these types of memory.
- Organization of this subsection
(1) Determining the process common memory requirement (for executing the adbclientdefmang command)
Use the following formula to determine the process common memory (PROC_CLTDEFMNG) required for executing the adbclientdefmang command.
Formula (kilobytes)
PROC_CLTDEFMNG = ↑(CMI + CDM_WORK) ÷ 1,024↑ + PROC_AUDINFSZ# |
- #
-
Add this value when the audit trail facility is enabled.
Explanation of variables
- CMI
-
For details, see the description of the variable CMI in (a) Determining the variable SCI under (3) Determining the process common memory requirement (for starting the HADB server) in 6.3.3 Determining the memory requirement for starting the HADB server.
The value of each variable in the formula for determining the variable CMI changes according to the contents of the client management definition file used when the adbclientdefmang command is executed.
Note that during execution of the adbclientdefmang command, both of the following memory areas for the variable CMI are concurrently secured:
-
Memory area for the variable CMI secured before the adbclientdefmang command is executed
This area stores the contents of the client management definition file that existed before the command was executed. Note, however, that this area does not exist if the centralized management of client definitions is not used when the adbclientdefmang command is executed.
-
Memory area for the variable CMI secured when the adbclientdefmang command is executed
This area stores the contents of the client management definition file that exists after the command is executed.
Note that the memory area to be released differs depending on the execution result of the adbclientdefmang command.
-
If the adbclientdefmang command terminates normally
The HADB server releases the memory area for the variable CMI that was secured before the adbclientdefmang command was executed.
-
If the adbclientdefmang command results in an error
The HADB server releases the memory area for the variable CMI that was secured when the adbclientdefmang command was executed.
-
- CDM_WORK
-
Use the following formula to determine this value.
Formula (bytes)
CDM_WORK = ↑8 x authid_num / 32↑ x 32 + 64
- authid_num
-
Total number of authorization identifiers specified for the adbclientmang operands in the client-managing definition
- PROC_AUDINFSZ
-
Determine the value of the variable PROC_AUDINFSZ according to (r) Determining the variable AUDINF under (3) Determining the process common memory requirement (for starting the HADB server) in 6.3.3 Determining the memory requirement for starting the HADB server.
(2) Determining the real thread private memory requirement (for executing the adbclientdefmang command)
Use the following formula to determine the amount of real thread private memory (RTHD_CLTDEFMNG) required to execute the adbclientdefmang command.
Note that you need to determine the variable RTHD_CLTDEFMNG if you use the multi-node function. You do not need to determine that variable if you do not use the multi-node function.
Formula (kilobytes)
RTHD_CLTDEFMNG = ↑MLT_COMP / 1,024↑ |
Explanation of variables
- MLT_COMP
-
Use the following formula to determine this value.
Formula (bytes)
MLT_COMP = ↑(8 + 608 x authid_num) / 32↑ x 32 + 64
- authid_num
-
Total number of authorization identifiers specified for the adbclientmang operands in the client-managing definition
(3) Determining the heap memory requirement (for executing the adbclientdefmang command)
Use the following formula to determine the heap memory (HEAP_CLTDEFMNG) required to execute the adbclientdefmang command.
Formula (kilobytes)
HEAP_CLTDEFMNG = ↑(MNGANA + CLTANA) / 1,024↑ |
Explanation of variables
- MNGANA
-
Use the following formula to determine this value.
Formula (bytes)
MNGANA = 512 x cltmng_num
- cltmng_num
-
Total number of adbclientmang operands (for client-managing definition) specified in the client management definition file
- CLTANA
-
Substitute the following value.
Value (bytes)
CLTANA = 10,240