DragonFly BSD
DragonFly commits List (threaded) for 2012-07
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: tcp: Increase tcp_sosend_agglim from 2 to 3


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 29 Jul 2012 23:46:26 -0700 (PDT)

commit b3f7971467e0ce7934443aab946e11396d9f78e6
Author: Sepherosa Ziehau <sephe@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]