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 Shares:
Leave a Reply

Your email address will not be published. Required fields are marked *

You May Also Like
Read More

AIX tips

How to find the processors on an AIX server? [root@unixfoo-aix /]# lsdev -C -c processor -S aproc0 Available…
Read More

Linux performance tuning – vm.swappiness

vm.swappiness takes a value between 0 and 100 to change the balance between swapping applications and freeing cache. At 100, the kernel will always prefer to find inactive pages and swap them out