
Tuning for the Solaris OS
Solaris 10
SolarisTM Dynamic Tracing (DTrace) is a comprehensive dynamic tracing framework for the Solaris Operating System (OS). You can use the DTrace Toolkit to monitor the system. The DTrace Toolkit is available through the OpenSolarisTM project from the DTraceToolkit page (http://www.opensolaris.org/os/community/dtrace/dtracetoolkit/).
Tuning for the Solaris OS
■“Tuning Parameters” on page 95
■“File Descriptor Setting” on page 97
Tuning Parameters
Tuning Solaris TCP/IP settings benefits programs that open and close many sockets. Since the Enterprise Server operates with a small fixed set of connections, the performance gain might not be significant.
The following table shows Solaris tuning parameters that affect performance and scalability benchmarking. These values are examples of how to tune your system for best performance.
TABLE
Parameter | Scope | Default | Tuned Value | Comments |
|
|
|
|
|
rlim_fd_max | /etc/system | 65536 | 65536 | Limit of process open file |
|
|
|
| descriptors. Set to account for |
|
|
|
| expected load (for associated |
|
|
|
| sockets, files, and pipes if any). |
|
|
|
|
|
rlim_fd_cur | /etc/system | 1024 | 8192 |
|
|
|
|
|
|
sq_max_size | /etc/system | 2 | 0 | Controls streams driver queue size; |
|
|
|
| setting to 0 makes it infinite so the |
|
|
|
| performance runs won’t be hit by |
|
|
|
| lack of buffer space. Set on clients |
|
|
|
| too. Note that setting sq_max_size |
|
|
|
| to 0 might not be optimal for |
|
|
|
| production systems with high |
|
|
|
| network traffic. |
|
|
|
|
|
tcp_close_wait_interval | ndd /dev/tcp | 240000 | 60000 | Set on clients too. |
|
|
|
|
|
tcp_time_wait_interval | ndd /dev/tcp | 240000 | 60000 | Set on clients too. |
|
|
|
|
|
Chapter 5 • Tuning the Operating System and Platform | 95 |