Project

General

Profile

Actions

Feature #63341

closed
ID ID

improve rbd_diff_iterate2() performance in fast-diff mode

Feature #63341: improve rbd_diff_iterate2() performance in fast-diff mode

Added by Ilya Dryomov about 3 years ago. Updated over 1 year ago.

Status:
Resolved
Priority:
High
Assignee:
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
pacific,quincy,reef
Reviewed:
Affected Versions:
Pull request ID:
Tags (freeform):
Fixed In:
v19.0.0-794-g5cbc4d7e7de
Released In:
v19.2.0~888
Upkeep Timestamp:
2025-07-11T21:10:50+00:00

Description

It's very inefficient for use cases where a big byte range is iterated over externally and rbd_diff_iterate2() is invoked effectively on individual objects or use cases where the byte range is small to begin with:

- diff is performed on the entire image no matter how small the byte range is, unused results just get discarded before returning
- intermediate snapshot object maps are loaded even when diffing against the beginning of time (fromsnapname == NULL)
- HEAD object map is loaded even when exclusive lock is held

https://gitlab.com/qemu-project/qemu/-/issues/1026


Related issues 4 (0 open — 4 closed)

Blocked by rbd - Bug #53897: diff-iterate can report holes when diffing against the beginning of time (fromsnapname == NULL)ResolvedIlya Dryomov

Actions
Copied to rbd - Backport #64106: quincy: improve rbd_diff_iterate2() performance in fast-diff modeResolvedIlya Dryomov

Actions
Copied to rbd - Backport #64107: reef: improve rbd_diff_iterate2() performance in fast-diff modeResolvedIlya Dryomov

Actions
Copied to rbd - Backport #64108: pacific: improve rbd_diff_iterate2() performance in fast-diff modeResolvedIlya Dryomov

Actions

ID Updated by Ilya Dryomov about 3 years ago Actions #1

Ilya Dryomov wrote:

- intermediate snapshot object maps are loaded even when diffing against the beginning of time (fromsnapname == NULL)

This is tied to https://tracker.ceph.com/issues/53897 and requires resolution there. Otherwise results in fast-diff mode wouldn't match those in list-snaps ("slow") mode.

ID Updated by Ilya Dryomov about 3 years ago Actions #2

  • Blocked by Bug #53897: diff-iterate can report holes when diffing against the beginning of time (fromsnapname == NULL) added

ID Updated by Ilya Dryomov almost 3 years ago Actions #3

  • Status changed from In Progress to Fix Under Review
  • Backport set to pacific,quincy,reef
  • Pull request ID set to 55127

ID Updated by Ilya Dryomov almost 3 years ago Actions #4

  • Status changed from Fix Under Review to Pending Backport

UB Updated by Upkeep Bot almost 3 years ago Actions #5

  • Copied to Backport #64106: quincy: improve rbd_diff_iterate2() performance in fast-diff mode added

UB Updated by Upkeep Bot almost 3 years ago Actions #6

  • Copied to Backport #64107: reef: improve rbd_diff_iterate2() performance in fast-diff mode added

UB Updated by Upkeep Bot almost 3 years ago Actions #7

  • Copied to Backport #64108: pacific: improve rbd_diff_iterate2() performance in fast-diff mode added

UB Updated by Upkeep Bot almost 3 years ago Actions #9

While running with --resolve-parent, the script "backport-create-issue" noticed that all backports of this issue are in status "Resolved" or "Rejected".

ID Updated by Ilya Dryomov almost 3 years ago Actions #10

  • Status changed from Pending Backport to Resolved

UB Updated by Upkeep Bot over 1 year ago Actions #11

  • Merge Commit set to 5cbc4d7e7de80ed994f45eeb10d8d29b060b2480
  • Fixed In set to v19.0.0-794-g5cbc4d7e7de
  • Released In set to v19.2.0~888
  • Upkeep Timestamp set to 2025-07-11T21:10:50+00:00
Actions

Also available in: PDF Atom