Repository navigation
common: Make buffer::list::rebuild_aligned_size_and_memory correctly handle zero-sized buffers - #69023
Conversation
bill-scales
left a comment
There was a problem hiding this comment.
rebuild_aligned_size_and_memory certainly was not dealing with zero length buffers correctly, this appears to be the most likely (only?) reason why this function failed to create a single contiguous buffer when called with max_buffers = 1.
It doesn't really explain why we had a zero length buffer in the list, but as long as this is a very rare scenario perhaps we don't care, especially as this is in the legacy EC code.
|
This PR has been added to wip-yuri4-testing-20260603.222947-main. |
4db1532 to
b66073c
Compare
|
Retesting this since the old results got stale and there is a new force-push. Apologies for the delay- it will be prioritized. |
|
@aainscow is it related to the changes? |
|
Adding DNM re: above comment, but @aainscow feel free to remove and merge if you deem the test failure unrelated. Otherwise, we can retest this if it requires more changes. Also, appears there actually was a regression? https://tracker.ceph.com/issues/78658#note-1 cc @lee-j-sanders |
|
jenkins test classic perf |
…handle zero-sized buffers Prior to this fix, if there was a zero-sized bufferptr in a bufferlist, then rebuild_aligned_size_and_memory would not honour the max_buffers parameter. This change causes rebuild_aligned_size_and_memory to drop any zero-sized buffer when doing the rebuild. There is a recreate test, although this might be a little delicate, as it relies on a quirk of buffer::list::append to generate the zero length buffers. AI assistance used for creating test only. Fixes: https://tracker.ceph.com/issues/76466 Signed-off-by: Alex Ainscow <[email protected]> Assisted-by: IBM-Bob
b66073c to
845b447
Compare
|
jenkins test classic perf |
2 similar comments
|
jenkins test classic perf |
|
jenkins test classic perf |
|
comparitive_performance_report_260729_053612.pdf This performance comparison of 4k random writes and 1MB random writes with librbd on Replica-3 that there is not a performance regression introduced by this PR. The slight difference in 4k random writes is run to run variance and not a concern |
|
jenkins test classic perf |
|
I have removed DNM, because further performance test have shown that this does not have a real performance regression. A re-run showed the same thing. |
|
jenkins test make check arm64 |
@ljflores That failure looks like a test issue and is not related to my change. |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
Prior to this fix, if there was a zero-sized bufferptr in a bufferlist, then rebuild_aligned_size_and_memory would not honour the max_buffers parameter.
This change causes rebuild_aligned_size_and_memory to drop any zero-sized buffer when doing the rebuild.
There is a recreate test, although this might be a little delicate, as it relies on a quirk of buffer::list::append to generate the zero length buffers.
Fixes: https://tracker.ceph.com/issues/76466
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 DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.