]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
os/bluestore: limit read-amp on overwrite 9828/head
authorSage Weil <sage@redhat.com>
Mon, 20 Jun 2016 19:22:51 +0000 (15:22 -0400)
committerSage Weil <sage@redhat.com>
Mon, 20 Jun 2016 19:57:29 +0000 (15:57 -0400)
commit93c164a5d4a8bdd961a6ce9eb5f94eeaca752ca2
tree3359dd760c9e6ec47f11b246d83b058fa5951bbb
parent024e0ab6a25216697d0bab7942d2b47cfc687e85
os/bluestore: limit read-amp on overwrite

If we are doing a small overwrite over a blob with a large chunk size
(say, due to a large csum order), we are better off writing into a new
allocation than doing a large read/modify/write.  If the read amp will be
more than min_alloc_size, skip the read entirely and write into a new
blob.

Signed-off-by: Sage Weil <sage@redhat.com>
src/os/bluestore/BlueStore.cc