Skip to content

Add 32k and 64k size classes to adaptive allocator (#15799)#15800

Merged
normanmaurer merged 1 commit into
4.1from
adapt_41
Oct 28, 2025
Merged

Add 32k and 64k size classes to adaptive allocator (#15799)#15800
normanmaurer merged 1 commit into
4.1from
adapt_41

Conversation

@normanmaurer
Copy link
Copy Markdown
Member

Motivation:
I've gotten allocation profile data from "a large e-commerce application", which has sizable allocation volume at 32 KiB and 64 KiB, with very little in between that isn't covered by the existing size classes.

Modification:
Add 32 KiB and 64 KiB size classes to the adaptive allocator. Make the adaptiveChunkMustDeallocateOrReuseWthBufferRelease test more size-class agnostic.

Result:
Nearly 50% memory usage reduction in this e-commerce application use case, according to the allocation pattern simulator for the 1024 live buffers case, which brings adaptive on par with the pooled allocator for this use case.

Motivation:
I've gotten allocation profile data from "a large e-commerce
application", which has sizable allocation volume at 32 KiB and 64 KiB,
with very little in between that isn't covered by the existing size
classes.

Modification:
Add 32 KiB and 64 KiB size classes to the adaptive allocator. Make the
adaptiveChunkMustDeallocateOrReuseWthBufferRelease test more size-class
agnostic.

Result:
Nearly 50% memory usage reduction in this e-commerce application use
case, according to the allocation pattern simulator for the 1024 live
buffers case, which brings adaptive on par with the pooled allocator for
this use case.
@normanmaurer normanmaurer added this to the 4.1.129.Final milestone Oct 28, 2025
@normanmaurer normanmaurer merged commit 220a5b1 into 4.1 Oct 28, 2025
18 checks passed
@normanmaurer normanmaurer deleted the adapt_41 branch October 28, 2025 13:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants