Scalable Database Server, HiRDB Version 8 Installation and Design Guide

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

16.2.1 Memory allocation

Figure 16-2 shows the memory allocation for each unit of a HiRDB/Parallel Server.

Figure 16-2 Memory allocation for each unit of a HiRDB/Parallel Server

[Figure]

Table 16-6 provides the details of the shared memories for a unit of a HiRDB/Parallel Server.

Table 16-6 HiRDB/Parallel Server shared memory details per unit

Item Type of shared memory
Unit controller shared memory Global buffer shared memory Utility shared memory Security audit information buffer shared memory Inter-process memory communication shared memory
Purpose System control Global buffers Communication between the unit controller and utilities Security audit information buffer Client-server inter-process communication
Processes All HiRDB processes Back-end servers, dictionary servers Utility processes Front-end servers Front-end servers, client processes
Number of segments 1
  • When the global buffer dynamic update facility is not used: 1-16#1
  • When the global buffer dynamic update facility is used:
    32-bit mode: 1-516#1
    64-bit mode: 1-1,016#1
1 1 Number of clients connected using the PDIPC=MEMORY environment variable (0-2000) [Figure] 2
Maximum value per segment See Table 16-7 Size of memory required for each unit of a HiRDB/Parallel Server. Value of the shmmax operating parameter must be equal to or greater than the calculation value. Divide the segment by the SHMMAX operand value. Value of the shmmax operating parameter must be equal to or greater than the SHMMAX operand value. See Table 16-7 Size of memory required for each unit of a HiRDB/Parallel Server. Value of the shmmax operating parameter must be equal to or greater than the calculation value. See Table 16-7 Size of memory required for each unit of a HiRDB/Parallel Server. Value of the shmmax operating parameter must be equal to or greater than the calculation value. See Table 16-7 Size of memory required for each unit of a HiRDB/Parallel Server. Value of the shmmax operating parameter must be equal to or greater than the calculation value.
Allocation conditions None There must be a global buffer definition Specify pd_utl_exec_mode=1 Specify the pd_aud_file_name operand as the HiRDB file system area name for the audit trail. There are clients connected using the PDIPC=MEMORY environment variable
Creation timing At unit activation (including standby unit activation when the rapid system switchover facility is used)
  • At server activation (including standby unit activation when the rapid system switchover facility is used)
  • When pdbufmod -k {add|upd} is executed
When utilities are executed When a front-end server starts up When client and server are connected
Deletion timing At next unit activation (including standby unit activation when the rapid system switchover facility is used)
  • When pdbufmod -k del is executed
  • For normal termination or planned termination: When the server is terminated
  • For forced termination, abnormal termination, or termination of standby unit when the rapid system switchover facility is used: When the unit is next activated
10 minutes after the utility terminates When a front-end server quits When client and server are disconnected
Indication by pdls -d mem Indicated Indicated Indicated Indicated Not indicated
SHM-OWNER of pdls -d mem MANAGER Server name UTILITY AUDDEF Not indicated
Related operands
  • pd_shmpool_attribute
  • pd_dic_shmpool_size
  • pd_bes_shmpool_size

  • pd_dbbuff_attribute
  • pd_dbbuff_modify
  • pdbuffer
  • SHMMAX

  • pd_utl_exec_mode

  • Operands related to the security audit facility#2

  • PDIPC
  • PDSENDMEMSIZE
  • PDRECVMEMSIZE
Remarks [Figure] [Figure] Can be created only when pd_utl_exec_mode=1 (when pd_utl_exec_mode=0, the relevant space is allocated in the unit controller shared memory). [Figure] [Figure]

Legend:
[Figure]: Not applicable.

#1: Number of global buffers allocated per back-end server or dictionary server.

#2: For details, see the manual HiRDB Version 8 System Definition.