git: sendfile: Use asynchronized pru_send when ever possible

Sepherosa Ziehau sephe at crater.dragonflybsd.org
Thu Nov 17 06:07:03 PST 2011


commit 084009e28b58577006b6b58af0e8dc60ef7413bc
Author: Sepherosa Ziehau <sephe at dragonflybsd.org>
Date:   Thu Nov 17 21:42:29 2011 +0800

    sendfile: Use asynchronized pru_send when ever possible
    
    On Phenom 9550 (4 core, 2.2GHz):
    8 parallel netperf -H 127.0.0.1 -t TCP_SENDFILE -P0 (4 runs, unit: Mbps)
    
    old  10509.48  12364.60  11930.55  11104.94
    new  21031.34  20165.39  19888.42  19896.47
    
    This give 70% ~ 90% performance improvement

Summary of changes:
 sys/kern/uipc_syscalls.c |    4 ++--
 sys/sys/socketops.h      |   12 ++++++++++++
 2 files changed, 14 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/084009e28b58577006b6b58af0e8dc60ef7413bc


-- 
DragonFly BSD source repository





More information about the Commits mailing list