sendfile: Use asynchronized pru_send when ever possible
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 17 Nov 2011 13:42:29 +0000 (21:42 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Thu, 17 Nov 2011 13:53:11 +0000 (21:53 +0800)
commit084009e28b58577006b6b58af0e8dc60ef7413bc
tree3f52abe1f04686e812d52a455c368849e542326c
parent2ef7b2934f0ad75b7e928a8aac957d1d3a62c99a
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
sys/kern/uipc_syscalls.c
sys/sys/socketops.h