-
Notifications
You must be signed in to change notification settings - Fork 593
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
storage/compacted_index_chunk_reader: fix memory calculation #11138
storage/compacted_index_chunk_reader: fix memory calculation #11138
Conversation
Adjust the memory calculation based on the memory usage, which is the in-memory size of a `compaction::entry`, currently 56 bytes. Do not exceed the max_chunk_memory by calculating how big the container will be on the next insert. Fixes redpanda-data#10311 Signed-off-by: Ben Pope <ben@redpanda.com>
Signed-off-by: Ben Pope <ben@redpanda.com>
most of the ducktape failures have already a ticket, but https://buildkite.com/redpanda/redpanda/builds/30353#0188770b-f994-4fd5-95ac-cbf5f7c83cde
this one seems new, the consumer could not finish in the allotted time |
The timeouts seem to be rpc
Locally I run the test 18 times:
Which is 9 of them in parallel, twice. So they take around 1min each. |
/ci-repeat 1 |
Same failure. |
@abhijat any thoughts on the failure in Should I have some output from minio to investigate? The failure is unrelated to this PR. I raised the failure here: #11151 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thx for this. Makes sense to me. Might have been more straightforward to use circular_buffer_fixed_capacity
instead of tracking the size.
Good point, the use-case is compaction, so I guess we expect to fill the buffer most of the time anyway. Going straight to a fully allocated buffer may significantly reduce pressure on the allocator. Should I rewrite it? |
Only if you have the bandwidth. This is objectively an improvement, so I'm happy for us to merge it. |
I'll merge since the fix is currently self-contained and |
/backport v23.1.x |
Adjust the memory calculation based on the memory usage,
which is the in-memory size of a
compaction::entry
, currently56 bytes. Do not exceed the max_chunk_memory by calculating how
big the container will be on the next insert.
Fixes #10311
Backports Required
Release Notes
Improvements