Sun Microsystems 820434310 Server User Manual


 
Network Interface
To ensure that the network interface is operating in full duplex mode, add the following entry
into /etc/rc.local:
mii-tool -F 100baseTx-FD eth0
where eth0 is the name of the network interface card (NIC).
Disk I/O Settings
To tune disk I/O performance for non SCSI disks
Test the disk speed.
Use this command:
/sbin/hdparm -t /dev/hdX
Enable direct memory access (DMA).
Use this command:
/sbin/hdparm -d1 /dev/hdX
Check the speedagain using the hdparm command.
Given that DMA is not enabled by default, the transfer rate might have improved considerably.
In order to do this at every reboot, add the /sbin/hdparm -d1 /dev/hdX line to
/etc/conf.d/local.start, /etc/init.d/rc.local, or whatever the startup script is called.
For information on SCSI disks, see:
System Tuning for Linux Servers — SCSI.
TCP/IP Settings
To tune the TCP/IP settings
Add thefollowing entry to /etc/rc.local
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout
echo 60000 > /proc/sys/net/ipv4/tcp_keepalive_time
echo 15000 > /proc/sys/net/ipv4/tcp_keepalive_intvl
echo 0 > /proc/sys/net/ipv4/tcp_window_scaling
1
2
3
1
TuningforLinuxplatforms
SunGlassFishEnterpriseServer2.1PerformanceTuningGuide January2009102