btrfs-progs: send: increase size of transfer buffer
authorDavid Sterba <dsterba@suse.com>
Wed, 2 Nov 2016 12:27:45 +0000 (13:27 +0100)
committerDavid Sterba <dsterba@suse.com>
Wed, 9 Nov 2016 12:47:31 +0000 (13:47 +0100)
commit76fc07e3a6cdcb825859d833c83af16a34343f0b
tree0f23444ed001cd33e54b246f78d3c46a4eca6b07
parent88edac358c1fbaaf28dccc9c0aa139577cdde6db
btrfs-progs: send: increase size of transfer buffer

4K is quite small, increase it to 64K. This reduces number of
context switches and calls to read. Kernel sends us about 50K of data
per read, so increasing the buffer further does not make any
improvement.

Example run on tests/cli-tests/004-send-parent-multi-subvol:
4K:
  - ~800 context switches
  - ~5000 calls to read

64K:
  - ~450 context switches
  - ~500 calls to read

Signed-off-by: David Sterba <dsterba@suse.com>
cmds-send.c