Repository navigation
OSD: EC recovery zero detect - #63408
Conversation
b85e348 to
2209980
Compare
2209980 to
2098098
Compare
2098098 to
0d44f33
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
We have reached agreement about how to implement this. I will update the design once I have a tested commit ready. |
0d44f33 to
c07486a
Compare
c07486a to
10664a4
Compare
|
@rzarzynski I have refactored this completely:
|
rzarzynski
left a comment
There was a problem hiding this comment.
Basically LGTM-with-some-questions.
For this will need upgrade testing.
There was a problem hiding this comment.
nit: the space before auto.
There was a problem hiding this comment.
I think it's unnecessary. The zero deduplication switched out from operating at the abstract Message in favor of concrete messages (like MOSDOp) to leverage versioning already available there. data_included seems even better as it can be backward compatible universally, regardless of versioning.
There was a problem hiding this comment.
I have removed the comment.
There was a problem hiding this comment.
nit: putting some spaces within the ternary operator would help humans.
There was a problem hiding this comment.
Hmm, ISET suggest a constant, not a template parameter. How about IntervalSetT?
There was a problem hiding this comment.
No need to use this rather costly call; bufferlist can be iterated by buffer pointers it stores:
for (const auto& bp : bl.buffers()) {
// ...
}There was a problem hiding this comment.
Ah... I have been looking for an interface that does this. Obvious now you point it out.
There was a problem hiding this comment.
Yeah, zero-bptr is not writeable. The bl 0dedup PR brings ptr_ro type to express that through the type system. Hopefully we'll be able to delegate this check to... compilers.
There was a problem hiding this comment.
I think we might actually want to make use of the the zero-buffer in some plugins. For now, its certainly true that if we pass a zero buffer to a plugin, it will panic due to the mprotect.
There was a problem hiding this comment.
Is the entire change in minimum_to_decode() nothing more than a refactoring?
There was a problem hiding this comment.
I can't remember why it was needed, but this is about making the test harness implementation closer to common plugins like ISA-L
10664a4 to
79d0203
Compare
79d0203 to
9489cdb
Compare
9489cdb to
5550b72
Compare
…is_zero_fast() Signed-off-by: Radoslaw Zarzynski <[email protected]> Signed-off-by: Alex Ainscow <[email protected]>
Signed-off-by: Radoslaw Zarzynski <[email protected]>
Signed-off-by: Alex Ainscow <[email protected]>
5550b72 to
06658fd
Compare
|
jenkins test make check |
2 similar comments
|
jenkins test make check |
|
jenkins test make check |
|
@aainscow: it's merged! If it's intended for T, we need a backport. |
Optimised EC already performs "sparse writes":
The problem is that when recovering a missing shard from coding, we cannot tell the difference between a 4k extent containing zeros to an unmapped 4k region. This is a major issue because the size of the data on the OSDs will increase significantly when being recovered.
To solve the space issue, this PR plans to convert any recovered 4k buffer to be "unmapped" at the backend.
There are two techniques that could be employed here:
This PR implements the FIRST of these as it entirely solves the space issue and we will leave the second as a backfill performance enhancement for the future.
I want to put this in after fixing a number of EC bugs, so as it is easier to test, however, it has caused some concern, specifically in conjunction with @rzarzynski 's zero buffer PR.
Tracker: https://tracker.ceph.com/issues/72368
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. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition