git: ipdemux: Better initial so_port distribution for non-power-of-2 ncpus

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Wed Oct 28 18:33:28 PDT 2015


commit 5cbeb1a5fcf2c044fa27ac7f2f8d9c1fa4074aa4
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Tue Oct 27 20:40:24 2015 +0800

    ipdemux: Better initial so_port distribution for non-power-of-2 ncpus
    
    The measured effect of this change on 2-ways E5-2600v2 with Intel 82599
    (10Gbe) using tools/kq_connect_client -u, i.e. UDP socket/connect/send/
    close before initiating a TCP connection:
    - Connect rate increases by ~15Kconns/s; we are now doing 315Kconns/s.
    - This also improves tools/kq_connect_client w/o -u a little bit.

Summary of changes:
 sys/netinet/ip_demux.c | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/5cbeb1a5fcf2c044fa27ac7f2f8d9c1fa4074aa4


-- 
DragonFly BSD source repository



More information about the Commits mailing list