kernel - Add feature to allow sendbuf_auto to decrease the buffer size
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 16 Jul 2014 07:07:58 +0000 (00:07 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 16 Jul 2014 07:13:24 +0000 (00:13 -0700)
commitb0c17823535bd3d45a21243e2c384e3c187b76da
tree44d9595a2eaa2e2a4291ef6c860885f586c5087c
parentcfb360d8bbe9d8e418568a700ec597308a585f0b
kernel - Add feature to allow sendbuf_auto to decrease the buffer size

* sysctl net.inet.tcp.sendbuf_auto (defaults to 1) is now able to
  decrease the tcp buffer size as well as increase it.

* Inflight bwnd data is used to determine how much to decrease the
  buffer.  Inflight is enabled by default.  If you disable it
  with (net.inet.tcp.inflight_enable=0), sendbuf_auto will not
  be able to adjust buffer sizes down.

* Set net.inet.tcp.sendbuf_min (default 32768) to set the floor for
  any downward adjustment.

* Set net.inet.tcp.sendbuf_auto=2 to disable the decrease feature.
sys/netinet/tcp_output.c