This section describes the procedures for estimating the Linux kernel parameter values (or kernel parameter values). If kernel parameter values are too small, HiRDB may not function correctly. Table 21-4 shows the guidelines for the Linux kernel parameter values.
Table 21-4 Guidelines for the Linux kernel parameter values
Kernel parameter | Guideline for value | Example of option settings file* |
---|---|---|
NR_OPEN | Specify at least MAX(1344,value of pd_max_open_fds, n). | /etc/security/limits.confnofile |
NR_FILE | Specify at least MAX{1600, 320![]() ![]() ![]() ![]() ![]() ![]() If the value determined from this formula exceeds the system maximum, use the system maximum value. | /proc/sys/fs/file-max |
nproc | Specify at least (value of pd_max_server_process + e, 512). If the value required by another program running on the server machine is greater than this value, use that value. | /etc/security/limits.confnproc |
threads-max | Specify at least MAX((value of pd_max_server_process + 20) ![]() | /proc/sys/kernel/threads-max |
MSGMNI | Specify the number of message queue identifiers required by all programs that are run on the server machine. For details about the number of message queue identifiers required by HiRDB, see 21.5 Estimating the sizes of message queues and semaphores. Add the values obtained. | /proc/sys/kernel/msgmni |
SEMMNI | Specify the number of semaphore identifiers required by all programs that are run on the server machine. For details about the number of semaphore identifiers required by HiRDB, see 21.5 Estimating the sizes of message queues and semaphores. Add the values obtained. The recommended value is 1024 or greater. | Parameter 4 in /proc/sys/kernel/sem |
SEMMNS | Specify the number of semaphores required by all programs that are run on the server machine. For details about the number of semaphores required by HiRDB, see 21.5 Estimating the sizes of message queues and semaphores. Add the values obtained. The recommended value is 7200 or greater. | Parameter 2 in /proc/sys/kernel/sem |
SHMMAX | Specify at least MAX(p + q, r, s, t), and at least 200000000. If the global buffer dynamic update facility is used, consider the size of the global buffers to be added; if there is a possibility that the size of the added part will become greater than the specified value, specify the anticipated size of the added part. Specify in the HiRDB system definition's SHMMAX operand a value no greater than the value for shmmax determined here. | /proc/sys/kernel/shmmax |
SHMMNI | Specify a value of 2000 or greater. If the global buffer dynamic update facility is used, add the following value. Add 1 when the security audit facility is used.
| /proc/sys/kernel/shmmni |
SHMSEG | Specify a value of 240 or greater. If the global buffer dynamic update facility is used, add the maximum value of the pd_max_add_dbbuff_shm_no operand specified in each server definition. Also, add 1 when the security audit facility is used. | /proc/sys/kernel/shmseg |
SHMALL | Specify the value obtained by adding the size of shared memory required for other programs running on the same server machine to si, which is the size of shared memory allocated by HiRDB on the server. | /proc/sys/kernel/shmall |
With the Linux version, if the extended internet service daemon (referred to hereafter as xinetd) is active, the values set in its settings file xinetd.conf may require adjustment. Therefore, we recommend that you adjust parameters in the settings file.
For details about xinetd and xinetd.conf, see the OS documentation.