DragonFly BSD
DragonFly commits List (threaded) for 2011-11
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

git: sendfile: Use asynchronized pru_send when ever possible


From: Sepherosa Ziehau <sephe@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 17 Nov 2011 06:05:54 -0800 (PST)

commit 084009e28b58577006b6b58af0e8dc60ef7413bc
Author: Sepherosa Ziehau <sephe@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]