Skip to content

packet recv allocations#55

Merged
vladimir-ea merged 2 commits into
mainfrom
ve/allocations
May 27, 2026
Merged

packet recv allocations#55
vladimir-ea merged 2 commits into
mainfrom
ve/allocations

Conversation

@vladimir-ea
Copy link
Copy Markdown
Collaborator

some changes to reduce allocator pressure:

  • use MiMalloc: this allocator use TSLABs for small allocations which is a good fit for tiles
  • clear BytesMut buffers in RxBatch before trying to reclaim memory - previously reclaim was always failing because of the uncleared buffer so we were allocating always. Now this path allocates hardly ever
  • change ordering of socket recv and p2p spin - possibly reduces number of recv packets being held in quinn-proto

Base automatically changed from ve/tcache_consumers to main May 27, 2026 08:52
@vladimir-ea vladimir-ea merged commit 8820ce3 into main May 27, 2026
2 checks passed
@vladimir-ea vladimir-ea deleted the ve/allocations branch May 27, 2026 12:34
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