git: tcp: Increase tcp_sosend_agglim from 2 to 3

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Jul 29 23:46:26 PDT 2012


commit b3f7971467e0ce7934443aab946e11396d9f78e6
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Mon Jul 30 14:36:52 2012 +0800

    tcp: Increase tcp_sosend_agglim from 2 to 3
    
    This change makes better use of TSO.
    
    When 2 is used, most of the large TCP segments' size are 2*MSS or 3*MSS.
    When 3 is used, most of the large TCP segments' size are 4*MSS or 5*MSS.
    
    The math is quite simple, given 1448B segment size:
    2 == 4096B == 2 segments
    3 == 6144B == 4 segments
    
    Increasing it to a higher value improves single full speed stream's CPU
    utilization, but does not have much effect on multiple streams'.

Summary of changes:
 sys/netinet/tcp_input.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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


-- 
DragonFly BSD source repository





More information about the Commits mailing list