git: tcp/sack: Optimize scoreboard block allocation
Sepherosa Ziehau
sephe at crater.dragonflybsd.org
Fri Apr 13 00:37:13 PDT 2012
commit 01d244e6599942128c17736a308b66ad33222926
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date: Fri Apr 13 15:30:26 2012 +0800
tcp/sack: Optimize scoreboard block allocation
Allocate SACK scoreboard block only if we can't extend the existing
one's right edge (end).
This commit could avoid ~70% SACK scoreboard block allocation on
leaf.dragonflybsd.org (11528032 updating, 8353353 reused) according
to the "netstat -s -f inet -p tcp" output as of today. On my testing
sites, this commit could avoid 30%~50% SACK scoreboard block allocation.
Summary of changes:
sys/netinet/tcp_sack.c | 85 ++++++++++++++++++++++++++++--------------------
1 files changed, 50 insertions(+), 35 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/01d244e6599942128c17736a308b66ad33222926
--
DragonFly BSD source repository
More information about the Commits
mailing list