git: kernel - Add feature to allow sendbuf_auto to decrease the buffer size

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Jul 16 00:14:30 PDT 2014


commit b0c17823535bd3d45a21243e2c384e3c187b76da
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Jul 16 00:07:58 2014 -0700

    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.

Summary of changes:
 sys/netinet/tcp_output.c | 56 ++++++++++++++++++++++++++++++++++--------------
 1 file changed, 40 insertions(+), 16 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/b0c17823535bd3d45a21243e2c384e3c187b76da


-- 
DragonFly BSD source repository


More information about the Commits mailing list