]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rgw: disable prefetch in rgw_file 44170/head
authorKajetan Janiak <kajetan.janiak@gmail.com>
Wed, 18 Nov 2020 10:42:07 +0000 (11:42 +0100)
committerCory Snyder <csnyder@iland.com>
Wed, 1 Dec 2021 19:56:56 +0000 (14:56 -0500)
commit9e16aca13d62b7eea66d1ae608d956a3961e3f8a
tree710f6160f298bb630b0774fc3b54b6bd5b8cb435
parentfe63bec3382a149b52666f29358580c48ad8772b
rgw: disable prefetch in rgw_file

Each call to rgw_read (rgw_file.cc) invokes three calls to RGWRados::get_obj_state with s->prefetch_data=true. It results in great read amplification. If length argument in rgw_read call is smaller than rgw_max_chunk_size, then the amplification is threefold.

Signed-off-by: Kajetan Janiak <kjaniak@cloudferro.com>
(cherry picked from commit f915e21e5a1baf6030c1407b3058d4f58c638df9)

Conflicts:
src/rgw/rgw_op.cc

Cherry-pick notes:
- Octopus sets prfetch data flag through Rados method vs. method on object
src/rgw/rgw_file.h
src/rgw/rgw_op.cc