]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/bluestore: Actually wait until completion in write_sync 28574/head
authorVitaliy Filippov <vitalif@yourcmc.ru>
Wed, 6 Mar 2019 23:01:18 +0000 (02:01 +0300)
committerNathan Cutler <ncutler@suse.com>
Sat, 15 Jun 2019 09:36:24 +0000 (11:36 +0200)
commit47cd1afa7ba1a7f303b1e949d569c52d6b1a6995
treefd7b9dbe010164e2ce6fefaf435f643a91dae6f4
parent9537302815ff3671565a82bcb0123af125ba3165
osd/bluestore: Actually wait until completion in write_sync

This function is only used by RocksDB WAL writing so it must sync data.

This fixes #18338 and thus allows to actually set `bluefs_preextend_wal_files`
to true, gaining +100% single-thread write iops in disk-bound (HDD or bad SSD) setups.
To my knowledge it doesn't hurt performance in other cases.
Test it yourself on any HDD with `fio -ioengine=rbd -direct=1 -bs=4k -iodepth=1`.

Issue #18338 is easily reproduced without this patch by issuing a `kill -9` to the OSD
while doing `fio -ioengine=rbd -direct=1 -bs=4M -iodepth=16`.

Fixes: https://tracker.ceph.com/issues/18338 https://tracker.ceph.com/issues/38559
Signed-off-by: Vitaliy Filippov <vitalif@yourcmc.ru>
(cherry picked from commit c703cf9a7632cbd9f17e148ef203509549a28571)

Conflicts:
src/os/bluestore/KernelDevice.cc
- mimic has a single variable "fd_buffered" where master has an array "fd_buffereds"
src/os/bluestore/KernelDevice.cc