diff options
author | Jeremy Allison <jra@samba.org> | 2014-04-09 09:50:46 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-04-10 19:49:07 +0200 |
commit | f5a3d74264abb25009e73b1b35d62db34fa62343 (patch) | |
tree | cfd4920132af516deec1f33bf0e777847b7bcd15 /source3/smbd/reply.c | |
parent | 88ba81140eb98494fb48ac29b9450e582ceaf10d (diff) | |
download | samba-f5a3d74264abb25009e73b1b35d62db34fa62343.tar.gz samba-f5a3d74264abb25009e73b1b35d62db34fa62343.tar.xz samba-f5a3d74264abb25009e73b1b35d62db34fa62343.zip |
s3: smbd: Performance optimization for RECVFILE.
Based on work proposed by Jones <jones.kstw@gmail.com>.
Removes set_blocking()/set_unblocking() fcntl
calls around RECVFILE on the non-blocking socket.
Instead uses RECVFILE in a loop, and only drops
back to set_blocking()/set_unblocking() once
RECVFILE returns -1/EAGAIN/EWOULDBLOCK.
From the samba-technical list:
------------------------------------------------
The iometer 512b sequential write shows following result,
Before applying this patch: 75333 IOps
After applying this patch: 82691 IOps
------------------------------------------------
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/smbd/reply.c')
0 files changed, 0 insertions, 0 deletions