]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: Do not sent PDWs if read count > k
authorAlex Ainscow <aainscow@uk.ibm.com>
Fri, 1 Aug 2025 14:09:58 +0000 (15:09 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 17 Sep 2025 08:43:26 +0000 (09:43 +0100)
commitcf3dc4ac300b20d07ea4f6870ceda32336f6ee41
tree00e68bcda8a320a88a78ce7fb01ec373ce46216f
parent1a91c3d5f35b22e1fbcf8509d25c96d684301a80
osd: Do not sent PDWs if read count > k

The main point of PDW (as currently implemented) is to reduce the amount
of reading performed by the primary when preparing for a read-modify-write (RMW).

It was making the assumption that if any recovery was required by a
conventional RMW, then a PDW is always better. This was an incorrect assumption
as a conventional RMW performs at most K reads for any plugin which
supports PDW. As such, we tweak this logic to perform a conventional RMW
if the PDW is going to read k or more shards.

This should improve performance in some minor areas.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
(cherry picked from commit cffd10f3cc82e0aef29209e6e823b92bdb0291ce)
src/osd/ECTransaction.cc