All TCP/IP tunning parameters are located under /proc/sys/net/. Here is a list of some important tuning parameters:

/proc/sys/net/core/rmem_default - Receive window size
/proc/sys/net/core/wmem_default - Send window size
/proc/sys/net/core/rmem_max - Maximum Receive Window
/proc/sys/net/core/wmem_max - Maximum Send Window
/proc/sys/net/ipv4/tcp_window_scaling - To enable larger TCP windows

Increasing the amount of memory associated with socket buffers can often improve performance. As the TCP changes its window size dynamically to compensate for network congestion, it uses an initial window size based on rmem_default and wmem_default, and the window will grow till rmem_max,wmem_max and never more than that. If you are using NFS heavily, it is recommanded to set  rmem_default, rmem_max, wmem_default, wmem_max to 262143. This will increase the amount of memory available for socket input queues.

More performance related stuffs @ http://unixfoo.blogspot.com/search/label/performance

0 comments

Disclaimer

All the information presented on this blog is provided on the basis of as is and is meant for reference purpose only without any expressed or implied warranty. Use of the information and its application in any form is sole discretion and responsibility of the user. unixfoo.blogspot.com is not responsible for any damage or loss arising out of use of information presented here. This web site has links to external web sites and unixfoo.blogspot.com is not responsible for the contents at those sites.