O'Reilly logo

Mastering NGINX by Dimitri Aivaliotis

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix D. Persisting Solaris Network Tunings

In Chapter 8, Troubleshooting Techniques, we saw how to change different network tuning parameters for different operating systems. This appendix details what is necessary to persist these changes under Solaris 10 and above.

The following script is what is actually run by the Service Management Framework (SMF) to set the network parameters with ndd. Save it as /lib/svc/method/network-tuning.sh and make it executable, so that it can be run at any time on the command line to test:

# vi /lib/svc/method/network-tuning.sh

The following snippet is the content of the /lib/svc/method/network-tuning.sh file:

#!/sbin/sh
# Set the following values as desired
ndd -set /dev/tcp tcp_max_buf 16777216
ndd -set /dev/tcp ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required