Skip to content
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

Reduce malloc churn for console calls <=128KiB #18287

Merged
merged 1 commit into from
Dec 5, 2024

Conversation

lhecker
Copy link
Member

@lhecker lhecker commented Dec 4, 2024

This increases the console IO buffer size to retain at least 128KiB as this matches the default buffer size of cat. This avoids allocator churn due to constantly freeing and reallocating buffers. In the future this should ideally use a better suited, cheap allocator.

Closes #18286

@DHowett DHowett merged commit aa5459d into main Dec 5, 2024
20 checks passed
@DHowett DHowett deleted the dev/lhecker/18264-allocator-churn branch December 5, 2024 17:34
DHowett pushed a commit that referenced this pull request Jan 8, 2025
This increases the console IO buffer size to retain at least 128KiB as
this matches the default buffer size of `cat`. This avoids allocator
churn due to constantly freeing and reallocating buffers. In the future
this should ideally use a better suited, cheap allocator.

Closes #18286

(cherry picked from commit aa5459d)
Service-Card-Id: PVTI_lADOAF3p4s4AmhmQzgWLtjY
Service-Version: 1.22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Cherry Picked
Development

Successfully merging this pull request may close these issues.

Increase API buffer cutoff to 128KiB
3 participants