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

git: tcp/sack: Further optimize scoreboard block allocation


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Fri, 13 Apr 2012 01:41:54 -0700 (PDT)

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



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