Nonstop Database, HiRDB Version 9 Installation and Design Guide
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. The following table provides guidelines for Linux kernel parameter values.
Table 20-4 Guidelines for the Linux kernel parameter values
| Kernel parameter | Guideline for value | Example of option settings file# |
|---|---|---|
| hard nofile | Specify 8,192. | /etc/security/limits.conf |
| soft nofile | There is no need to specify this value because it will be set by HiRDB. | -- |
| fs.file-max | MAX{1,600, 320 Specify at least the value obtained in the above formula by adding one of the following: value of pd_max_users + value of pd_max_reflect_process_count (D + 3 D: Total the values found by executing the following formulas for each server in the unit. Back-end server value of pd_max_bes_process + value of pd_max_reflect_process_count Dictionary server value of pd_max_dic_process + value of pd_max_reflect_process_count If the pd_max_bes_process or pd_max_dic_process operand is omitted, perform this calculation using the pd_max_users value. If the unit has multiple back-end servers, perform this calculation for each back-end server. E: 16 (number of lock-release wait threads) 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.conf |
| threads-max | Specify at least MAX((value of pd_max_server_process + 20), 576). | /proc/sys/kernel/threads-max |
| msgmnb | See 20.1 Estimating HP-UX OS parameter values, under msgmnb formula. Specify at least the value obtained. However, for a multi-HiRDB configuration, specify the largest of the values obtained for the HiRDB systems. | /proc/sys/kernel/msgmnb |
| 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 20.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 20.5 Estimating the sizes of message queues and semaphores. Add the values obtained. The recommended value is 1,024 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 20.5 Estimating the sizes of message queues and semaphores. Add the values obtained. The recommended value is 7,200 or greater. | Parameter 2 in /proc/sys/kernel/sem |
| shmmax | Specify at least MAX(p + q, r, s, t), and at least 200,000,000. 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 the value of shmmax obtained here or less in the SHMMAX operand of the HiRDB system definition. |
/proc/sys/kernel/shmmax |
| shmmni | Specify a value of 2,000 or greater.
|
/proc/sys/kernel/shmmni |
| 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 |
For the Linux version, values specified in settings files such as xinetd.conf for the extended Internet service daemon (hereafter, xinetd) must be adjusted when the daemon is started. For that reason, specify the following values in the settings file parameters. When a calculated value is smaller than the default for that parameter, you do not need to change the parameter.
For details about xinetd and xinetd.conf, see the OS documentation.
To set for shell service, specify the following values for the first argument (connections processed per second) of the cps attribute.
With the settings for shell service, specify value set in (a) 2 in the instances attribute (the maximum value that the service can concurrently execute).
All Rights Reserved. Copyright (C) 2012, 2015, Hitachi, Ltd.