
Thefollowing table shows the operating system tuning for Solaris used when benchmarking for
performanceand scalability. These values are an example of how you might tune your system to
achievethe desired result.
TABLE4–1 TuningSolaris for Performance Benchmarking
Parameter Scope DefaultValue TunedValue Comments
rlim_fd_max /etc/system 65536 65536 Processopen le descriptors limit;
shouldaccount for the expected load
(forthe associated sockets, les, and
pipesif any).
sq_max_size /etc/system 2 0 Controlsstreams driver queue size;
settingto 0 makes it innite so the
performanceruns won’t be hit by lack
ofbuer space. Set on clients too.
Notethat setting sq_max_size to 0
mightnot be optimal for production
systemswith high network trac.
tcp_time_wait_interval ndd /dev/tcp 240000 60000 Seton clients too.
tcp_conn_req_max_q ndd /dev/tcp 128 1024
tcp_conn_req_max_q0 ndd /dev/tcp 1024 4096
tcp_ip_abort_interval ndd /dev/tcp 480000 60000
tcp_keepalive_interval ndd /dev/tcp 7200000 900000 Forhigh trac web sites, lower this
value.
tcp_rexmit_interval_initial ndd /dev/tcp 3000 3000 Ifretransmission is greater than
30-40%,you should increase this
value.
tcp_rexmit_interval_max ndd /dev/tcp 240000 10000
tcp_rexmit_interval_min ndd /dev/tcp 200 3000
tcp_smallest_anon_port ndd /dev/tcp 32768 1024 Seton clients too.
tcp_slow_start_initial ndd /dev/tcp 1 2 Slightlyfaster transmission of small
amountsof data.
tcp_xmit_hiwat ndd /dev/tcp 8129 32768 Toincrease the transmit buer.
tcp_recv_hiwat ndd /dev/tcp 8129 32768 Toincrease the receive buer.
TuningSolarisfor Performance Benchmarking
SunJavaSystem Web Server 7.0 Update 1 Performance Tuning,Sizing, and Scaling Guide •96