Securing and Optimizing Linux:RedHat Edition | All about OS

Tuning IDE Hard Disk Performance

Категория: Securing and Optimizing

• To adjust the new TCP/IP values, type the following commands on your terminal:
Under Red Hat Linux 6.1
[root@deep /]# echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout [root@deep /]# echo 1800 >/proc/sys/net/ipv4/tcp_keepalive_time [root@deep /]# echo 0 > /proc/sys/net/ipv4/tcp_window_scaling [root@deep /]# echo 0 > /proc/sys/net/ipv4/tcp_sack [root@deep /]# echo 0 > /proc/sys/net/ipv4/tcp_timestamps
NOTE: Execute the above commands and put them in your 7etc/rc.d/rc.local” file so you don’t need to type them again each time your system reboots.
Under Red Hat Linux 6.2
Edit the 7etc/sysctl.conf file and add the following lines:
# Decrease the time default value for tcp_fin_timeout connection
net.ipv4.tcp_fin_timeout = 30
# Decrease the time default value for tcp_keepalive_time connection
net.ipv4.tcp_keepalive_time = 1800
# Turn off the tcp_window_scaling
net.ipv4.tcp_window_scaling = 0
# Turn off the tcp_sack
net.ipv4.tcp_sack = 0
# Turn off the tcp_timestamps
net.ipv4.tcp_timestamps = 0
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 ]

Страниц: 1 2 3

« The “noatime” attribute
Configuring and Building a secure, optimized Kernels »