Repository navigation
crimson/os/seastore: realize lazy read in split overwrite with overwrite refactor - #51179
Conversation
|
@myoungwon this is the overwrite PR I referred in #50419 Also see the original discussion in #45519 (comment) |
d53fdad to
33e82ea
Compare
Thanks. I'll take a close look at this. |
| length = this->ptr->length(); | ||
| } | ||
|
|
||
| /// no buffer extent, for lazy read |
There was a problem hiding this comment.
(Irrelavent to this PR) Looks RetiredExtentPlaceholder can be simplifed and be merged with the lazy read feature.
There was a problem hiding this comment.
Perhaps the extent state in this case would be CLEAN_INCOMPLETE.
There was a problem hiding this comment.
yes indeed, will do this later.
There was a problem hiding this comment.
Perhaps the extent state in this case would be CLEAN_INCOMPLETE.
Probably not worthing it after a second thought, because we should also introduce CLEAN_EXISTING_INCOMPLETE in that case.
cyx1231st
left a comment
There was a problem hiding this comment.
The direction makes sense to me!
The overall suggestions are:
- Use the unambiguous names such as original/remap/overwrite paddr/laddr/len
- Do deep copy to bl/bptr only when necessary, the only case seems to be at the duplicate-for-write time.
Fixing the readability issues is necessary for the next round of review.
Thanks for review, I will solve these issues soon! |
|
Sorry, my review might be slow due to Ceph deduplication paper work which has been accepted by USENIX ATC'23. |
thanks, it doesn't matter~ |
84d79a8 to
2d8ef7c
Compare
|
jenkins test make check |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
26eb69b to
22f65c0
Compare
22f65c0 to
7ba5aed
Compare
d9e1938 to
4bfaacd
Compare
|
@cyx1231st refactor finished~ |
4bfaacd to
535f5f8
Compare
separate buffer length and data length, since no buffer extent is allowed Signed-off-by: Xinyu Huang <[email protected]>
535f5f8 to
55af3be
Compare
|
@cyx1231st all addressed~ |
cab6925 to
9e67286
Compare
|
jenkins test docs |
cyx1231st
left a comment
There was a problem hiding this comment.
LGTM except for the comments
Signed-off-by: Xinyu Huang <[email protected]>
Signed-off-by: Xinyu Huang <[email protected]>
Signed-off-by: Xinyu Huang <[email protected]>
…ite refactor Signed-off-by: Xinyu Huang <[email protected]>
…uplicate_for_write Beacuse exist clean extent shares buffer with original clean extent. Signed-off-by: Xinyu Huang <[email protected]>
…k_space_free to avoid misuse of buffer length and data length when there is a no actual data extent Signed-off-by: Xinyu Huang <[email protected]>
Signed-off-by: Xinyu Huang <[email protected]>
Signed-off-by: Xinyu Huang <[email protected]>
Signed-off-by: Xinyu Huang <[email protected]>
9e67286 to
9d973ef
Compare
|
jenkins test api |
|
jenkins test docs |
athanatos
left a comment
There was a problem hiding this comment.
Seems reasonable to me!
this PR:
This is the first PR for fully split overwrite lazy read implementation.
This PR reduce once read when remapping an extent, but there is an another redundant read in original logic for the same extent before remapping in unaligned scenario, so this pr just bring a 38.1% improvement for comprehensive performance in overwrite for now.
The solution is to split left/right extent to small prepend extent before overwrite.
I am working on this and will realize this in next PR.
Separate remap, insert, retire logic in overwrite.
Separate remapping in multiple extents and remapping in one extent for new transaction manager interface
remap_pinandoverwrite_pin.test
no performance regression in other situation.
The same test config as #45519
rand write to full image:
*updated test result of latest push
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows