git: tcp/sack: Further optimize scoreboard block allocation

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Fri Apr 13 01:41:54 PDT 2012


commit 006af0db0565624558c5eb83879018f6f2569bf1
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Fri Apr 13 16:34:51 2012 +0800

    tcp/sack: Further optimize scoreboard block allocation
    
    Use one slot freed SACK scoreboard cache.
    
    30minutes tests are conducted on a heavy congested real-life network path;
    the new statistics:
    
      31254 SACK scoreboard updates
          2 overflows
          0 failures
          13392 records reused
          12703 records fast allocated
    
    Before this commit, ~42% allocations are avoided (reused); after this commit,
    ~83% allocations are avoided (reused + fast allocated).

Summary of changes:
 sys/netinet/tcp_sack.c |   51 +++++++++++++++++++++++++++++++++++------------
 sys/netinet/tcp_subr.c |    2 +-
 sys/netinet/tcp_var.h  |    3 ++
 usr.bin/netstat/inet.c |    1 +
 4 files changed, 43 insertions(+), 14 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/006af0db0565624558c5eb83879018f6f2569bf1


-- 
DragonFly BSD source repository





More information about the Commits mailing list