]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
bluestore: print aio in batch
authorKefu Chai <kchai@redhat.com>
Fri, 10 Nov 2017 08:00:24 +0000 (16:00 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 11 Nov 2017 16:51:38 +0000 (00:51 +0800)
commit67c6f768add46d92d9403ca6b7709b892d8a686d
tree547539f12f40748df1ceaf7e835cae4478fa9835
parent9ef5f20bf41e53a93445275e28c2be56c22d668f
bluestore: print aio in batch

KernelDevice::aio_{submit,write,read}() are critical paths. calling
cct->_conf->subsys.should_gather() multi-times is not optimal. the
downside of this issue is that if the aio is printed, the size of
buffer in PrebufferedStreambuf could be large if the number of iov is
large, that could be a heavy load to the memory subsystem.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/os/bluestore/KernelDevice.cc
src/os/bluestore/aio.cc
src/os/bluestore/aio.h