]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
msg: prefetch data when doing recv() 2457/head
authorYehuda Sadeh <yehuda@inktank.com>
Thu, 12 Dec 2013 17:14:16 +0000 (09:14 -0800)
committerSage Weil <sage@redhat.com>
Thu, 11 Sep 2014 22:46:51 +0000 (15:46 -0700)
commit0e0a8d4e6a2fe790ea82b3e8596d576d49f07ace
tree28e717881d0ca22fb9a4ab82a0a634d6aa085d10
parent8d3f13540bc8fc6b75746a09e7ea266c44ac5091
msg: prefetch data when doing recv()

Since that when we're reading the header we do lot's of small IOs, we
can really benefit from doing bigger reads.
Set a limit on the buffer size, so that it should mainly affect header
reads and not the actual data transfer of large IOs.

Signed-off-by: Yehuda Sadeh <yehuda@inktank.com>
src/common/config_opts.h
src/msg/Pipe.cc
src/msg/Pipe.h