OpenTP1 Version 7 System Definition
This appendix explains how to estimate the shared memory requirements for TP1/Server Base. The results of all formulas explained in this appendix are in bytes.
This subsection explains how to estimate the size of the static shared memory to be specified in the static_shmpool_size operand of the system environment definition. Use the appropriate formula to estimate the size of the static shared memory.
128 x (maximum number of servers specified in the system environment definition + 3) + 6024 + maximum number of user servers for which statistics are output to journal files by using the dcstats command x 1024
128 x (maximum number of servers specified in the system environment definition + 3) + 8000 + maximum number of user servers for which statistics are output to journal files by using the dcstats command x 1280
944 x prc_process_count + 60624
32 x tim_watch_count + 1440
(lck_limit_foruser + lck_limit_fordam + lck_limit_fortam + lck_limit_formqa) x 544 + 62016 + 128
(lck_limit_foruser + lck_limit_fordam + lck_limit_fortam + lck_limit_formqa) x 544 + 62432 + 128
2048 + 1280 x (number of RM-name + RM-extension entries) + (816 + 128 x number of RM-name-and-RM-extension instances)
+ 128 x trn_max_subordinate_count value
+ (63 + 4 x (number of RM-name + RM-extension entries) / 32 x 32) x trn_tran_process_count + (C x (trn_max_crm_subordinate_count + 1) x trn_tran_process_count x 1216) + 128
2048 + 1280 x (number of RM-name + RM-extension entries) + (816 + 128 x (number of RM-name + RM-extension entries)) + 128 x trn_max_subordinate_count + (63 + 4 x (number of RM-name.RM-extension entries) /32 x 32) x trn_tran_process_count + (C x (trn_max_crm_subordinate_count + 1) x trn_tran_process_count value x 1248) + 128
4864 + 256 x number of defined jnladdfg definition commands
+ 480 x m x number of defined jnladdfg definition commands
+ 64 x m
+ 128 x (m x 2 + 1)
+ 4096 x m x i
+ (128 x (34 + 2 x number of defined jnladdfg definition commands x 2 x m) / 8064) x 8192
+ (jnl_max_datasize + 336) / 4096 x 4096 x (m x 2 + 1)
+ (jnl_max_datasize + 336) / 4096 x 4096 x 16 x m
+ (388 + 192 x m) / 4096 x 4096
+ n
4864 + 256 x number of defined jnladdfg definition commands
+ 480 x m x number of defined jnladdfg definition commands
+ 64 x m
+ 128 x (m x 2 + 1)
+ 4096 x m x i
+ (128 x (34 + 2 x number of defined jnladdfg definition commands x 2 x m) / 8064) x 8192
+ (jnl_max_datasize + 336) / 4096 x 4096 x (m x 2 + 1)
+ (jnl_max_datasize + 336) / 4096 x 4096 x 16 x m
+ (388 + 192 x m) / 4096 x 4096
+ n
+ 512
+ 128 x (j x 1024 x 1024 / (k x 1024))
+ k x 1024 x (j x 1024 x 1024 / (k x 1024))
The required amount of shared memory is 10,496 bytes.
17872 + number of definitions in the checkpoint dump service definition x 688 + (number of jnladdfg operands defined in the checkpoint dump service definition) x 400
18640 + number of definitions in the checkpoint dump service definition x 784 + (number of jnladdfg operands defined in the checkpoint dump service definition) x 400
No shared memory is required.
1376 + 6272 x n + ((a + 336) / 4096 + 1) x 4096 x n
4448 x 6856 x n + ((a + 336) / 4096 + 1) x 4096 x n
13472 + 1200 x trn_tran_process_count + 64 x (trn_tran_process_count x trn_max_subordinate_count) + ((J + 336) / 4096) x 4096 + DAM + TAM + MCF + MQ
No shared memory is required.
The required shared memory is 64 bytes.
(name_total_size + name_cache_size) x 1024
The values of name_total_size and name_cache_size are calculated as follows:
name_total_size
= (7176 + (number of nodes specified in all_node x 284 + number of nodes specified in all_node_ex x 284 + all_node_extend_number x 284 + all_node_ex_extend_number x 284) + ((number of SPPs#1 + number of RAP-processing servers#2 + number of XATMIs#3) x 264) + MCF#4 + DAM#5 + TAM#6 + CLT#7) / 1024
name_cache_size = (total number of SPPs#1 started on nodes#8 specified in the all_node and all_node_ex operands x 224) / 1024
Legend:
: The calculation result between these symbols is rounded up to the nearest whole number.
When a disk queue is used, use the following formula to estimate the shared memory requirements (no estimation is necessary when only a memory queue is used).
The required shared memory is 1,024 bytes.
The required shared memory is 1,551,360 bytes.
1024 + 148 x A + (A / 8) + 260 x B
672 + A x value of the trn_tran_process_count operand
288 x (number of defined damfile definition commands + dam_added_file) + 256 + 512
288 x (number of defined damfile definition commands + dam_added_file) + 288 + 512
2336 + (48 x number of tables defined in the IST service definition) + 512
16 + (72 + 12 x n1) x n2
message_store_buflen / message_cell_size
rap_parallel_server x 2.1
The required shared memory is 64 bytes.
M x N
This subsection explains how to estimate the size of the static shared memory to be specified in the static_shmpool_size operand of the system environment definition. Use the appropriate formula to estimate the size of the static shared memory.
128 x (maximum number of servers specified in the system environment definition + 3) + 5487 + maximum number of user servers for which statistics are output to journal files by using the dcstats command x 1024
The required shared memory is 251,648 bytes.
32 x tim_watch_count + 1440
(name_total_size + name_cache_size) x 1024
The values of name_total_size and name_cache_size are calculated as follows:
name_total_size
= (7176 + (number of nodes specified in all_node x 284 + number of nodes specified in all_node_ex x 284 + all_node_extend_number x 284 + all_node_ex_extend_number x 284) / 1024
name_cache_size
= (number of archive-journal source nodes connected to the archive journal node x 224) / 1024
The required shared memory is 99,328 bytes.
The required shared memory is 1,551,360 bytes.
This subsection explains how to estimate the size of the dynamic shared memory to be specified in the dynamic_shmpool_size operand of the system environment definition. Use the appropriate formula to estimate the size of the dynamic shared memory.
Note that the formulas in this subsection are for a node that is not an archive journal node. For an archive journal node, specify 0 for the dynamic shared memory requirement.
(((1 + ((jnl_max_datasize in the system journal service definition + 512) / 4096)) x 4096) + 32) x trn_tran_process_count
No shared memory is required.
When a disk queue is used, use the following formula to estimate the shared memory requirements (no estimation is necessary when only a memory queue is used).
(number of request messages concurrently issued by multiple transactions before synchronization point processing x 48 + 32) / 8192 x (8192 + 512)
128 + 32 x tam_max_tblnum
This subsection explains how to estimate the size of the shared memory used as the buffer area for backing up DAM blocks. This size is the value obtained by adding 1024 to D1 or D2, whichever is greater:
D1: Buffer area size specified in the dam_cache_size operand of the DAM service definition
D2: A + B
When the buffer area size allocated as the shared memory for the DAM service is specified in the dam_cache_size or dam_cache_size_fix operand of the DAM service definition, the value specified in kilobytes is automatically converted into bytes. The dam_kb_size operand specifies whether 1 KB is handled as 1000 bytes or 1024 bytes. For details, see the description of the dam_kb_size operand of the DAM service definition.
The shared memory required for the TAM table is obtained from the following formula:
The shared memory required for the IST table is obtained from the following formula:
The shared memory required for the real-time statistics service is obtained from the following formula:
304 + ((4 x rts_service_max) / 8 x 8) + (104 x (rts_service_max + 1)) + (144 x rts_item_max x (rts_service_max + 1))
The shared memory pool size is obtained from the following formula:
shared-memory-for-controlling-OpenTP1 (approximately 10,240 kilobytes)
+ value-specified-in-static_shmpool_size operand-of-system-environment-definition
+ value-specified-in-dynamic_shmpool_size operand-of-system-environment-definition
All Rights Reserved. Copyright (C) 2006, 2010, Hitachi, Ltd.