The “bdflush” parameters
[root@deep /]# echo “32768″ >/proc/sys/fs/inode-max
Add the above commands to the 7etc/rc.d/rc.local” script file and you’ll not have to type it again the next time your server reboots.
Under Red Hat Linux 6.2
Edit the 7etc/sysctl.conf file and add the following line:
# Improve the number of inodes opened fs.inode-max = 32768
You must restart your network for the change to take effect. The command to restart the network is the following:
• To restart all network devices manually on your system, use the following command: [root@deep /]# /etc/rc.d/init.d/network restart
Setting network parameters [ OK ]
Bringing up interface lo [ OK ]
Bringing up interface ethO [ OK ]
Bringing up interface eth1 [ OK ]
NOTE: If you regularly run out of inodes, you should increase this value. Don’t forget that the value you enter for the “inode-max” parameter depends of the “file-max” value. A file server or web server needs a lot of opened inodes.
The “ulimit’ parameter
Linux itself has a “Max Processes” per user limit. This feature allows us to control the number of processes an existing user on the server may be authorized to have. To improve performance, we can safely set the limit of processes for the super-user “root” to be unlimited.
Edit the .bashrc file (vi /root/.bashrc) and add the following line: ulimit -u unlimited
You must exit and re-login from your terminal for the change to take effect. To verify that you are ready to go, make sure that when you type as root the command ulimit -a on your terminal, it shows “unlimited” next to max user processes.
[root@deep /]# ulimit -a
core fi le size (blocks) 1000000
data seg size (kbytes) unlimited
file size (blocks) unlimited
max memory size (kbytes) unlimited
stack size (kbytes) 8192
cpu time (seconds) unlimited
max user processes unlimited «this line.
pipe size (512 bytes) 8
open files 1024
virtual memory (kbytes) 2105343
NOTE: You may also do ulimit -u unlimited at the command prompt instead of adding it to the 7root/.bashrc” file.