git: inpcb: Push porthash token down a bit and use atomic op to update lastport

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Dec 6 22:22:13 PST 2015


commit 327bf46d96c0335f81ffe377f0c9817b34c1dd4b
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Fri Dec 4 16:47:12 2015 +0800

    inpcb: Push porthash token down a bit and use atomic op to update lastport
    
    This paves the way to use pooled token for porthash list head.
    
    Even just with this commit, porthash token contention is reduced by 20K/s
    on 12core/24threads system when running tools/kq_connect_client.

Summary of changes:
 sys/netinet/in_pcb.c   | 221 +++++++++++++++++++++++++++++++++----------------
 sys/netinet/in_pcb.h   |   2 +
 sys/netinet6/in6_src.c |  77 ++++++++++-------
 3 files changed, 198 insertions(+), 102 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/327bf46d96c0335f81ffe377f0c9817b34c1dd4b


-- 
DragonFly BSD source repository


More information about the Commits mailing list