]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
os/newstore: avoid sync append for small ios
authorSage Weil <sage@redhat.com>
Wed, 29 Apr 2015 18:52:55 +0000 (11:52 -0700)
committerSage Weil <sage@redhat.com>
Tue, 1 Sep 2015 17:39:42 +0000 (13:39 -0400)
commite89b2474b7cda97ee83819f9ed834215ba3ca7b0
tree36254a0180cec5e647aabc20d341c452ae65d9b3
parent668c2777158bf08888c67921210a796a80686e56
os/newstore: avoid sync append for small ios

An append is expensive in terms of latency (write, fdatasync, kv commit),
while a wal write is just the kv commit and the write and fdatasync are
async.  For small IOs doing the wal may improve performance.

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