Tuning IDE Hard Disk Performance
You can test the results of your changes by running “hdparm” in performance test mode: [root@deep /]# /sbin/hdparm -t /dev/hda (or hdb, hdc etc).
NOTE: Once you have a set of “hdparm” options, you can put the commands in your “/etc/rc.d/rc.local” file to run it every time you reboot the machine. Also, don’t forget to reboot the server for the options to take effect.
Handled more connections by time with your TCP/IP
This hack just make the time default values for TCP/IP connection lower so that more connections can be handled by time on your TCP/IP protocol. The following will decrease the amount of time your Linux box will try take to finish closing a connection and the amount of time before it will kill a stale connection. This will also turn off some IP extensions that aren’t needed:
The default setup for the TCP/IP parameters we’ll change under Red Hat Linux are:
For the tcp_fin_timeout “180″
For the tcp_keepalive_time “7200″
For the tcp_window_scaling “1″
For the tcp_sack”1″
For the tcp_timestamps “1″