]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: default to sparse-reads for any IO operation over 64K 20208/head
authorJason Dillaman <dillaman@redhat.com>
Thu, 19 Oct 2017 17:52:56 +0000 (13:52 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 31 Jan 2018 16:31:38 +0000 (11:31 -0500)
commitc1c43110ef683b7a1f8dbb7136ad44b31943fe5a
treea4fcd12367f131be9c60380289c622546e82d88f
parentcec71d94ffd0b86caee5524d2346b1d66f19869e
librbd: default to sparse-reads for any IO operation over 64K

Testing BlueStore against both HDDs and OSDs with fully allocated
and sparse-allocated objects shows a performance improvement with
sparse-read between 32K and 64K.

Fixes: http://tracker.ceph.com/issues/21849
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 251658471eab6d8cd968d678922bab437f72a9c7)
src/common/options.cc
src/librbd/ImageCtx.cc
src/librbd/ImageCtx.h
src/librbd/io/ImageRequest.cc
src/librbd/io/ObjectRequest.cc
src/librbd/io/ObjectRequest.h
src/test/librbd/CMakeLists.txt
src/test/librbd/io/test_mock_ImageRequest.cc
src/test/librbd/io/test_mock_ObjectRequest.cc [new file with mode: 0644]