Nonstop Database, HiRDB Version 9 Installation and Design Guide

[Contents][Index][Back][Next]

17.3 Determining the size of status files

Organization of this section
(1) Determining the size of a status file
(2) Determining the number of records in a status file
(3) Determining the value of S

(1) Determining the size of a status file

The following formula is used to determine the size of a status file.

Formula
Size of status file (bytes) = a [Figure] b

a: Number of records in the status file.
See (2) as follows; the obtained value is specified in the -c option of the pdstsinit command.

b: Record length of the status file. This value is specified in the -l option of the pdstsinit command.

(2) Determining the number of records in a status file

The following formula is used to determine the number of records in a status file.

Formula
Number of records
= [Figure]{[Figure]S [Figure] (record length - 40)[Figure] + [Figure]S [Figure] 100[Figure] + S + 2} [Figure] 1.2[Figure]

See (3) as follows for the value of S.

(3) Determining the value of S

(a) HiRDB single server configuration
Type Formula for S
Unit [Figure](2,056 + 128 [Figure] d) [Figure] g[Figure] + [Figure]2,512 [Figure] g[Figure] + [Figure]40 [Figure] g[Figure]
+ [Figure]308 [Figure] g[Figure] + [Figure]4,000 [Figure] g[Figure] + [Figure]43,536 [Figure] g[Figure] + [Figure]32 [Figure] g[Figure]
Server [Figure]128 [Figure] g[Figure] + [Figure]3,280#1 [Figure] g[Figure] + [Figure](592#2 + j [Figure] b) [Figure] g[Figure]
+ [Figure]8,192 [Figure] g[Figure] + [Figure](8,192 - 128) [Figure] g[Figure] [Figure] {[Figure](a + m) [Figure] k[Figure] - 1}
+ [Figure][[Figure]{([Figure]c [Figure] 127[Figure] + 1) [Figure] 2,048} [Figure] 8,192[Figure] [Figure] 8,192] [Figure] g[Figure]
+ [Figure]2,048 [Figure] g[Figure] + [Figure]{244 + 64 [Figure] (2 [Figure] h + 7)} [Figure] g[Figure]
+ [Figure]96 [Figure] g[Figure] + [Figure]{48 + 68 [Figure] (2 [Figure] h + 7)} [Figure] g[Figure]
+ [Figure][20,480 [Figure] {1 + [Figure]((152 [Figure] e) - (16 [Figure] f) - (80 [Figure] A) + (8 [Figure] B))
[Figure] 20,476[Figure] + [Figure](4f + 4C) [Figure] 20,480[Figure]}] [Figure] g[Figure]
+ [Figure](12 [Figure] c + 4) [Figure] g[Figure]
+ w
+ [Figure](4 + 16 [Figure] c) [Figure] g[Figure]
[Figure] If the status file record length < 4,096, add:
+ [Figure]MAX{3,400 [Figure] r + 0.7, 1}[Figure] [Figure] MAX([Figure]4,096 [Figure] s[Figure], 2) [Figure] n
+ [Figure]5,662,310 [Figure] r + 0.7[Figure] [Figure] MAX([Figure]4,096 [Figure] s[Figure], 2) [Figure] p
[Figure] If 4,096 [Figure] the status file record length < 12,288, add:
+ [Figure]MAX{(3,400 [Figure] [Figure](s - 348) [Figure] 20[Figure]) + 0.7, 1}[Figure] [Figure] n
+ [Figure](5,662,310 [Figure] [Figure](s - 348) [Figure] 20[Figure]) + 0.7[Figure] [Figure] p
[Figure] If 12,288 [Figure] the status file record length, add:
+ [Figure]MAX{(3,400 [Figure] [Figure](s - 876) [Figure] 20[Figure]) + 0.7, 1}[Figure] [Figure] n
+ [Figure](5,662,310 [Figure] [Figure](s - 876) [Figure] 20[Figure]) + 0.7[Figure] [Figure] p
[Figure] If the pd_log_auto_unload_path is specified, add:
+ [Figure]20,848 [Figure] g[Figure]
[Figure] If you are using the rapid system switchover facility, add:
+ [Figure]([Figure](256 [Figure] i + 4,096) [Figure] 4,096[Figure]) [Figure] 4,096 [Figure] g[Figure]
[Figure] If Y is specified for the pd_dbbuff_modify operand, add:
+ v
[Figure] If HiRDB Staticizer Option has finished setup and the pd_max_reflect_process_count operand is specified, add:
+ [Figure](128 + 704) [Figure] g[Figure]
+ [Figure]256 [Figure] g[Figure]
[Figure] If XDS is defined, add:
+ [Figure]32 [Figure] g[Figure]

a: Number of specified pdlogadfg operands

b: Number of specified pdlogadfg -d spd operands

c: Value of pd_max_rdarea_no operand

d: 108 (single server) or 74 (utility special unit)

e: Number of specified pdbuffer operands

f: Number of -i options specified in the pdbuffer operand

g: Record length of status file minus 40

h: Value of pd_max_users + value of pd_max_reflect_process_count

i: When the inner replica facility is used, the value of the pd_max_file_no operand
When the inner replica facility is not used, the value of the pd_max_rdarea_no operand

j: 736

k: 11

m: 1

n: If the number of RDAREAs in the server [Figure] 3,400, the value is 1.
If 3,401 [Figure] number of RDAREAs in the server [Figure] 6,800, the value is 2.
If 6,801 [Figure] number of RDAREAs in the server, the value is 3.

p: If the number of RDAREAs in the server [Figure] 10,200, the value is 0.
If 10,201 [Figure] number of RDAREAs in the server [Figure] 5,672,510, the value is 1.
If 5,672,511 [Figure] number of RDAREAs in the server [Figure] 11,334,820, the value is 2.
If 11,334,821 [Figure] number of RDAREAs in the server, the value is 3.

r: [Figure](s - 348) [Figure] 20[Figure] + [Figure]g [Figure] 20[Figure] [Figure] (MAX([Figure]4,096 [Figure] s[Figure],2) - 1)

s: Status file record length

v: 32-bit mode: [Figure](24 + 28 [Figure] ([Figure] + 512) + 32 + 112 [Figure] D) [Figure] g[Figure]
64-bit mode: [Figure](32 + 32 [Figure] ([Figure] + 512) + 32 + 144 [Figure] D) [Figure] g[Figure]

w: 32-bit mode: [Figure]((12 + ([Figure](c [Figure] 8)[Figure] [Figure] 4[Figure]) [Figure] 4) [Figure] z) [Figure] g[Figure]
64-bit mode: [Figure]((12 + ([Figure](c [Figure] 8)[Figure] [Figure] 8[Figure]) [Figure] 8) [Figure] z) [Figure] g[Figure]

x: Value of pd_max_add_dbbuff_shm_no operand

y: Value of pd_max_add_dbbuff_no operand

z: Value obtained by adding the pd_max_add_dbbuff_no operand value to the total number of -i options specified in the pdbuffer operand (if a value other than Y is specified in the pd_dbbuff_modify operand, 0 is used)

A: With the -o option specified for the pdbuffer operand of the system common definition: 1
Without the -o option specified for the pdbuffer operand of the system common definition: 0

B: Total number of RDAREAs specified in the -r and -b options to the pdbuffer operand of the system common definition

C: Total number of RDAREAs containing indexes specified in the -i option to the pdbuffer operand of the system common definition

D: If Y is specified for the pd_dbbuff_modify operand of the system common definition:
  • If the pd_max_add_dbbuff_no operand of the system common definition is specified: e + y
  • If the pd_max_add_dbbuff_no operand of the system common definition is omitted: 1,000
If N is specified for the pd_dbbuff_modify operand of the system common definition: e

#1: For the 64-bit mode, use a value of 3,456.

#2: For the 64-bit mode, use a value of 688.
(b) HiRDB parallel server configuration
Type Formula for S
Unit [Figure][2,056 + 128 [Figure] {14 [Figure] (p - P + q + N) + (p - P + q + r)
+ (25 + 15 [Figure] (p - P) + 7 [Figure] q + 3 [Figure] r) + (s [Figure] 2 + 1) + (N [Figure] 16)
+ (38 + 4 [Figure] (p - P + q + r + N) + d + z + 3 [Figure] (p - P + q + r + N))}] [Figure] j[Figure]
+ [Figure]944 [Figure] j[Figure] + [Figure]4,816 [Figure] j[Figure] + [Figure]40 [Figure] j[Figure]
+ [Figure]308 [Figure] j[Figure] + [Figure]4,000 [Figure] j[Figure] + [Figure]43,536 [Figure] j[Figure]
+ [Figure](16 + 8 [Figure] M) [Figure] j[Figure] + [Figure]16 [Figure] j[Figure]
[Figure] If the unit has a system manager, add:
+ [Figure](L + 16 [Figure] M) [Figure] j[Figure]
[Figure] If you are not using the standby-less system switchover (effects distributed) facility, add:
+ [Figure]32 [Figure] j[Figure]
[Figure] If you are using the standby-less system switchover (effects distributed) facility, add:
+ [Figure][20,480 [Figure] {1 + [Figure]((152 [Figure] f) - (16 [Figure] g) - (80 [Figure] Q) + (8 [Figure] R)) [Figure] 20,476[Figure] + [Figure](4g + 4S) [Figure] 20,480[Figure]}] [Figure] j[Figure]
Front-end server [Figure]128 [Figure] j[Figure] + [Figure]3,280#1 [Figure] j[Figure] + [Figure](592#2 + A [Figure] b) [Figure] j[Figure]
+ [Figure]8,192 [Figure] j[Figure] + [Figure](8,192 - 128) [Figure] j[Figure] [Figure] {[Figure](a + C) [Figure] B[Figure] - 1}
+ [Figure]8,192 [Figure] j[Figure] + [Figure]2,048 [Figure] j[Figure]
+ [Figure]{244 + 64 [Figure] (2 [Figure] e + 7)} [Figure] j[Figure] + [Figure]96 [Figure] j[Figure] + [Figure]32 [Figure] j[Figure]
[Figure] If the pd_log_auto_unload_path operand is specified, add:
+ [Figure]20,848 [Figure] j[Figure]
Dictionary server [Figure]128 [Figure] j[Figure] + [Figure]3,280#1 [Figure] j[Figure] + [Figure](592#2 + A [Figure] b) [Figure] j[Figure]
+ [Figure]8,192 [Figure] j[Figure] + [Figure]8,192 [Figure] j[Figure] [Figure] {[Figure](a + C) [Figure] B[Figure] - 1}
+ [Figure][[Figure]{([Figure]c [Figure] 127[Figure] + 1) [Figure] 2,048} [Figure] 8,192[Figure] [Figure] 8,192] [Figure] j[Figure]
+ [Figure]2,048 [Figure] j[Figure] + [Figure]{244 + 64 [Figure] (2 [Figure] h + 7)} [Figure] j[Figure] + [Figure]96 [Figure] j[Figure]
+ [Figure]{48 + 68 [Figure] (2 [Figure] h + 7)} [Figure] j[Figure]
+ [Figure][20,480 [Figure] {1 + [Figure]((152 [Figure] f) - (16 [Figure] g) - (80 [Figure] Q) + (8 [Figure] R))
[Figure] 20,476[Figure] + [Figure](4g + 4S) [Figure] 20,480[Figure]}] [Figure] j[Figure]
+ [Figure](12 [Figure] c + 4) [Figure] j[Figure] + [Figure]32 [Figure] j[Figure]
+ H
+ [Figure](4 + 16 [Figure] c) [Figure] j[Figure]
[Figure] If the status file record length < 4,096, add:
+ [Figure]MAX{3,400 [Figure] D + 0.7, 1}[Figure] [Figure] MAX([Figure]4,096 [Figure] n[Figure], 2)
[Figure] If 4,096 [Figure] the status file record length < 12,288, add:
+ [Figure]MAX{(3,400 [Figure] [Figure](n - 348) [Figure] 20[Figure]) + 0.7, 1[Figure]
[Figure] If 12,288 [Figure] the status file record length, add:
+ [Figure]MAX{(3,400 [Figure] [Figure](n - 876) [Figure] 20[Figure]) + 0.7, 1}[Figure]
[Figure] If you are using the system switchover facility, add:
+ [Figure]([Figure](256 [Figure] c + 4,096) [Figure] 4,096[Figure] [Figure] 4,096) [Figure] j[Figure]
[Figure] If the pd_log_auto_unload_path operand is specified, add:
+ [Figure]20,848 [Figure] j[Figure]
[Figure] If you specify Y for the pd_dbbuff_modify operand, add:
+ G
Back-end server [Figure]128 [Figure] j[Figure] + [Figure]3,280#1 [Figure] j[Figure] + [Figure](592#2 + A [Figure] b) [Figure] j [Figure]
+ [Figure]8,192 [Figure] j[Figure] + [Figure]8,192 [Figure] j[Figure] [Figure] {[Figure](a + C) [Figure] B[Figure] - 1}
+ [Figure][[Figure]{([Figure]c [Figure] 127[Figure] + 1) [Figure] 2,048} [Figure] 8,192[Figure] [Figure] 8,192] [Figure] j[Figure]
+ [Figure]2,048 [Figure] j[Figure] + [Figure]{244 + 64 [Figure] (2 [Figure] i + 7)} [Figure] j[Figure] + [Figure]96 [Figure] j[Figure]
+ [Figure]{48 + 68 [Figure] (2 [Figure] i + 7)} [Figure] j[Figure] +[Figure](12 [Figure] c + 4) [Figure] j[Figure]
+ [Figure][20,480 [Figure] {1 + [Figure]((152 [Figure] f) - (16 [Figure] g) - (80 [Figure] Q) + (8 [Figure] R))
[Figure] 20,476[Figure] + [Figure](4g + 4S) [Figure] 20,480[Figure]}] [Figure] j[Figure]#3
+ [Figure]32 [Figure] j[Figure] + H + [Figure](4 + 16 [Figure] c) [Figure] j[Figure]
[Figure] If the status file record length < 4,096, add:
+ [Figure]MAX{3,400 [Figure] D + 0.7, 1}[Figure] [Figure] MAX([Figure]4,096 [Figure] n[Figure], 2) [Figure] k
+ [Figure]5,662,310 [Figure] D + 0.7[Figure] [Figure] MAX([Figure]4,096 [Figure] n[Figure], 2) [Figure] m
[Figure] If 4,096 [Figure] the status file record length < 12,288, add:
+ [Figure]MAX{(3,400 [Figure] [Figure](n - 348) [Figure] 20[Figure]) + 0.7, 1}[Figure] [Figure] k
+ [Figure](5,662,310 [Figure] [Figure](n - 348) [Figure] 20[Figure]) + 0.7[Figure] [Figure] m
[Figure] If 12,288 [Figure] the status file record length, add:
+ [Figure]MAX{(3,400 [Figure] [Figure] (n - 876) [Figure] 20[Figure]) + 0.7, 1}[Figure] [Figure] k
+ [Figure](5,662,310 [Figure] [Figure](n - 876) [Figure] 20[Figure]) + 0.7[Figure] [Figure] m
[Figure] When using the system switchover facility, add:
+ [Figure]([Figure](256 [Figure] y + 4,096) [Figure] 4,096[Figure] [Figure] 4,096) [Figure] j[Figure]
[Figure] If you are using the standby-less system switchover (effects distributed) facility, add:
+ [Figure]2,816 [Figure] j[Figure] + [Figure]80 [Figure] j[Figure]
+ [Figure]32 [Figure] j[Figure]
[Figure] If the pd_log_auto_unload_path operand is specified, add:
+ [Figure]20,848 [Figure] j[Figure]
[Figure] If you specify Y for the pd_dbbuff_modify operand, add:
+ G
[Figure] If the HiRDB Staticizer Option has been set up and the pd_max_reflect_process_count operand is specified, add:
+ [Figure]256 [Figure] j[Figure]
+ [Figure](128 + 704) [Figure] j[Figure]
[Figure] If XDS is defined, add:
+ [Figure]32 [Figure] j[Figure]

a: Number of specified pdlogadfg operands

b: Number of specified pdlogadfg -d spd operands

c: Value of pd_max_rdarea_no operand

d: 3
For a HiRDB parallel server configuration on a single server machine, the value is 2.

e: (value of pd_max_users operand + value of pd_max_reflect_process_count operand) + 1
However, if a HiRDB parallel server configuration is used with a single server machine, (value of pd_max_users operand + value of pd_max_reflect_process_count operand)

f: Number of specified pdbuffer operands

g: Number of -i options specified in the pdbuffer operand

h: Value of pd_max_dic_process operand + value of pd_max_reflect_process_count operand

i: Value of pd_max_bes_process operand + value of pd_max_reflect_process_count operand

j: Record length of status file minus 40

k: If the number of RDAREAs in the server [Figure] 3,400, the value is 1.
If 3,401 [Figure] number of RDAREAs in the server [Figure] 6,800, the value is 2.
If 6,801 [Figure] number of RDAREAs in the server, the value is 3.

m: If the number of RDAREAs in the server [Figure] 10,200, the value is 0.
If 10,201 [Figure] number of RDAREAs in the server [Figure] 5,672,510, the value is 1.
If 5,672,511 [Figure] number of RDAREAs in the server [Figure] 11,334,820, the value is 2.
If 11,334,821 [Figure] number of RDAREAs in the server, the value is 3.

n: Status file record length

p: Number of back-end servers in unit

q: 1 if there is a dictionary server in the unit; otherwise, 0

r: 1 if there is a front-end server in the unit; otherwise, 0

s: 1 if there is a system manager in the unit; otherwise, 0

y: When the inner replica facility is used, value of the pd_max_file_no operand
When the inner replica facility is not used, value of the pd_max_rdarea_no operand

z: 1 in the following cases:
  • When there is a system manager in the unit
  • When there is no system manager in the unit and local is specified in the pd_mlg_msg_log_unit operand
0 when there is no system manager in the unit and manager is specified in the pd_mlg_msg_log_unit operand or specification is omitted

A: 736

B: 11

C: 1

D: [Figure](n - 348) [Figure] 20[Figure] + [Figure]j [Figure] 20[Figure] [Figure] (MAX([Figure]4,096 [Figure] n[Figure],2) - 1)

G:
32-bit mode: [Figure](24 + 28 [Figure] (I + 512) + 32 + 112 [Figure] T) [Figure] j[Figure]
64-bit mode: [Figure](32 + 32 [Figure] (I + 512) + 32 + 144 [Figure] T) [Figure] j[Figure]

H:
32-bit mode: [Figure]((12 + ([Figure] (c [Figure] 8)[Figure] [Figure] 4[Figure]) [Figure] 4) [Figure] K) [Figure] j[Figure]
64-bit mode: [Figure]((12 + ([Figure](c [Figure] 8)[Figure] [Figure] 8[Figure]) [Figure] 8) [Figure] K) [Figure] j[Figure]

I: Value of pd_max_add_dbbuff_shm_no operand

J: Value of pd_max_add_dbbuff_no operand

K: Value obtained by adding the pd_max_add_dbbuff_no operand value to the total number of specified -i options in the pdbuffer operand (if a value other than Y is specified in the pd_dbbuff_modify operand, 0 is used)

L: If the pd_system_expand_unit operand is specified: 16
If the pd_system_expand_unit operand is omitted: 0

M: If the pd_system_expand_unit operand is specified: number of units specified in the pd_system_expand_unit operand
If the pd_system_expand_unit operand is omitted: 0

N: If the pd_ha_max_act_guest_servers operand is specified: the value specified for the pd_ha_max_act_guest_servers operand
If the pd_ha_max_act_guest_servers operand is omitted: 0

P: Number of alternate BESs in the unit (alternate BESs when using the standby-less system switchover (1:1) facility)

Q: With the -o option specified for the pdbuffer operand of the system common definition: 1
Without the -o option specified for the pdbuffer operand of the system common definition: 0

R: Total number of RDAREAs specified in the -r and -b options of the pdbuffer operand of the system common definition

S: Total number of RDAREAs containing indexes specified in the -i option of the pdbuffer operand of the system common definition

T: If Y is specified for the pd_dbbuff_modify operand of the system common definition:
  • If the pd_max_add_dbbuff_no operand of the system common definition is specified: f + J
  • If the pd_max_add_dbbuff_no operand of the system common definition is omitted: 1,000
If N is specified for the pd_dbbuff_modify operand of the system common definition: f

#1: For the 64-bit mode, use a value of 3,456.

#2: For the 64-bit mode, use a value of 688.

#3: Do not add this value if you use the standby-less system switchover (effects distributed) facility.