Once you get the server and workstations setup, and you begin to increase the size of the network, you may need to perform some tuning of the server.
The following items may need to be tuned:
By default, the maximum number of files that can be opened is set to 4096. You can check what the max is on your system by running:
cat /proc/sys/fs/file-max
It will report what the limit is.
You can change this limit by echoing a new value into that file, like this:
echo 8192 >/proc/sys/fs/file-max
This will change the limit immediately. A reboot of the server
is NOT necessary.
You should put this command in the /etc/rc.d/rc.local file so that it runs each time the server is rebooted.
By default, the maximum number of open inodes is 16384. You can check what the max is on your system by running:
cat /proc/sys/fs/inode-max
It will report what the limit is.
You can change this limit by echoing a new value into that file, like this:
echo 32768 >/proc/sys/fs/inode-max
This will change the limit immediately. A reboot of the server
is NOT necessary.
You should put this command in the /etc/rc.d/rc.local file so that it runs each time the server is rebooted.
On Redhat 6.0, and in kernels downloaded from kernel.org, the limit on the total number of processes is 512, and the limit on the number of tasks per user is half of that.
Since Redhat 6.1, using the standard redhat supplied kernel, the total number of process is 2560, and the max per user is 2048.
If you need to increase the limits, you will need to modify
the /usr/src/linux/include/tasks.h
file. The
parameters to change are NR_TASKS and MAX_TASKS_PER_USER.
In all cases, the maximum value for these parameters is 4092 ( 4090 if APM is enabled ).
If you change these parameters, you will need to build a new kernel.