Opensolaris: Difference between revisions
From Bashlinux
Jump to navigationJump to search
Content deleted Content added
No edit summary |
|||
| Line 1: | Line 1: | ||
__NOTOC__ |
__NOTOC__ |
||
== TCP Tunning == |
== TCP Tunning == |
||
Linux, FreeBSD, Windows, and OSX take care about the buffer size and TCP autotuning. In Solaris we have to set `setsockopt` call in both sides, sender and receiver to set optimal buffer size. |
Linux, FreeBSD, Windows, and OSX take care about the buffer size and TCP autotuning. In Solaris we have to set `setsockopt` call in both sides, sender and receiver to set optimal buffer size. |
||
To get such value we take `RTT` from ping, and then multiplied by the `bandwidth` we have: |
To get such value we take `RTT` from ping, and then multiplied by the `bandwidth` we have: |
||
<pre><nowiki> |
|||
BUFFER SIZE = Bandwidth * RTT |
BUFFER SIZE = Bandwidth * RTT |
||
</nowiki></pre> |
|||
[[http://www.pathrate.org|pathrate]] is a good tool which can be used to get the `Bandwidth` value. |
[[http://www.pathrate.org|pathrate]] is a good tool which can be used to get the `Bandwidth` value. |
||
Revision as of 02:50, 3 June 2015
TCP Tunning
Linux, FreeBSD, Windows, and OSX take care about the buffer size and TCP autotuning. In Solaris we have to set `setsockopt` call in both sides, sender and receiver to set optimal buffer size. To get such value we take `RTT` from ping, and then multiplied by the `bandwidth` we have:
BUFFER SIZE = Bandwidth * RTT
[[1]] is a good tool which can be used to get the `Bandwidth` value.