Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor tuning update.

...

The first two settings are Linux's default socket buffer sizes.  I've found setting this to roughly my "average object size" as reported by "traffic_top" has helped significantly.  For me that value is 48K64K.

The next two settings are Linux's maximum socket buffer size.  I've found setting this relative to my client's link speed has helped.  For me, the link speed is 50Mbps, thus 2MB works out pretty well.

...

Code Block
net.core.rmem_default=4915265536
net.core.wmem_default=4915265536
net.core.rmem_max=2097152
net.core.wmem_max=2097152
net.ipv4.tcp_rmem=4096 4915265536 2097152
net.ipv4.tcp_wmem=4096 4915265536 2097152
net.ipv4.tcp_low_latency=1

...