]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore/BlueFS: ignore flush when buffer is small
authorSage Weil <sage@redhat.com>
Mon, 21 Dec 2015 20:07:44 +0000 (15:07 -0500)
committerSage Weil <sage@redhat.com>
Fri, 1 Jan 2016 18:07:20 +0000 (13:07 -0500)
commit1605e04d6504f2d30be83f7cfdd9141b819fb35d
treec45bdf95ec2015ebd8d8b86a508aff90f18289e6
parent5e4d3d291ec8021586baa939b17848d6e22513aa
os/bluestore/BlueFS: ignore flush when buffer is small

Rocksdb does a flush after every append, each of which is often
less than a full block.  This is very inefficient when our
_flush() will send that to disk (and block).

Avoid this most of the time by ignoring small flush requests
entirely, unless the force flag is set (e.g., by fsync).

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/config_opts.h
src/os/bluestore/BlueFS.cc
src/os/bluestore/BlueFS.h