git: ip: Set ip_porthash_trycount based on the # of netisrs.

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Sun Dec 24 05:17:50 PST 2017


commit 9bc6665cf4749003a69eeee66e2e7f8f265253aa
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Sun Dec 24 13:04:15 2017 +0800

    ip: Set ip_porthash_trycount based on the # of netisrs.
    
    This helps on the machine w/ relative large # of netisrs.  It cuts
    > 40% IPIs (160K/s -> 93K/s), and increases the connect rate a bit
    (602K/s -> 618K/s).

Summary of changes:
 sys/netinet/in_pcb.c   | 3 ++-
 sys/netinet/ip_input.c | 2 ++
 sys/netinet/ip_var.h   | 1 +
 3 files changed, 5 insertions(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/9bc6665cf4749003a69eeee66e2e7f8f265253aa


-- 
DragonFly BSD source repository


More information about the Commits mailing list