
Tuning for Linux platforms
cputime | unlimited |
filesize | unlimited |
datasize | unlimited |
stacksize | 8192 kbytes |
coredumpsize | 0 kbytes |
memoryuse | unlimited |
descriptors | 1024 |
memorylocked | unlimited |
maxproc | 8146 |
openfiles | 1024 |
The openfiles and descriptors show a limit of 1024. To increase the limit to 65535 for all users, edit /etc/security/limits.conf as root, and modify or add the nofile setting (number of file) entries:
* | soft | nofile | 65535 |
* | hard | nofile | 65535 |
The character “*” is a wildcard that identifies all users. You could also specify a user ID instead.
Then edit /etc/pam.d/login and add the line:
session required /lib/security/pam_limits.so
On Red Hat, you also need to edit /etc/pam.d/sshd and add the following line:
session required /lib/security/pam_limits.so
On many systems, this procedure will be sufficient. Log in as a regular user and try it before doing the remaining steps. The remaining steps might not be required, depending on how pluggable authentication modules (PAM) and secure shell (SSH) are configured.
Virtual Memory
To change virtual memory settings, add the following to /etc/rc.local:
echo 100 1200 128 512 15 5000 500 1884 2 > /proc/sys/vm/bdflush
For more information, view the man pages for bdflush.
For HADB settings, refer to Chapter 6, “Tuning for
Chapter 5 • Tuning the Operating System and Platform | 101 |