]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd/bluestore: Actually wait until completion in write_sync 26909/head
authorVitaliy Filippov <vitalif@yourcmc.ru>
Wed, 6 Mar 2019 23:01:18 +0000 (02:01 +0300)
committerVitaliy Filippov <vitalif@yourcmc.ru>
Tue, 12 Mar 2019 12:02:27 +0000 (15:02 +0300)
commitc703cf9a7632cbd9f17e148ef203509549a28571
tree1330633ba1543ad4f9c7ddf212aeafa905adf868
parentf6fd7b158b2b6500dfa6b0ddc142acec6d7ba67d
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>
src/os/bluestore/KernelDevice.cc