pdmemsv (Save memory space)
Function
In a multi-HiRDB system, the pdmemsv command shares part of the libraries under the installation directories in order to save memory space used by the HiRDBs.
Executor
Format
Options
Specifies whether or not memory space is to be saved in a multi-HiRDB system:
- -d
- Delete the memory space saving specification
- -s
- Place the memory space saving specification into effect
When this option is omitted, the command displays whether or not memory space is being saved (whether or not memory space saving has been specified).
Rules
- The pdmemsv command can be executed only while HiRDB is inactive.
- The pdmemsv command must be executed at the server machine containing the single server or the server machine where the system manager is located.
- If the pdsetup command is used to build the HiRDB execution environment in a directory other than the install directory, and then this command is executed, the library in the install directory is shared and memory requirements are reduced. In this case, the existing library is saved in directory $PDDIR/lib/save/. The following install directories exist:
For HiRDB/Single Server: /opt/HiRDB_S/
For HiRDB/Parallel Server: /opt/HiRDB_P/
- When the pdmemsv command is to be executed in order to place in effect or to delete memory space saving, the HiRDB registration in the OS should first be deleted with the pdsetup command (-d specified). However, files needed for execution should not be deleted at this time.
- If the disk on which an installation directory is located cannot be referenced (because of a hardware error, etc.), the error's effects can be eliminated by specifying deletion of the memory space saving specification (-d option).
- When placing memory space saving in effect is specified, all HiRDB systems in the server machine must be of the same version.
- When a HiRDB system is reinstalled, it is important to remember to delete the memory space saving specification. Valid operation cannot be assured when the version is upgraded while the memory space saving specification is in effect.
Notes
- The execution results of the pdmemsv command can be verified by the return code after the command executes or by executing the pdmemsv command (with no options specified). Return code 0 for the pdmemsv command indicates normal termination, and return code 2 indicates abnormal termination (such as an invalid option).
Output format
Memory saving level: level10
- Description
- Displays the memory space saving status.
- hazard
- Error related to memory space saving occurred (in this case, delete memory space saving with the d option, then specify memory space saving with the s option, if necessary)
- level10
- Memory space is being saved
- none
- Memory space is not being saved