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

use recycler for packetbatch allocation #4381

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lijunwangs
Copy link

Problem

It is found that the packet coalescer packet_batch_sender in quic streamer is lagging behind the streamer's ingestion of packets under load testing. And one of the costly operations are malloc for new PacketBatch.

Summary of Changes

Use PacketBatchRecycler to reduce the malloc cost.

Fixes #

use recycler for packetbatch allocation
@lijunwangs
Copy link
Author

CPU usage for the coalescer without the recycler:

Screenshot 2025-01-09 at 4 10 31 PM

With the recycler:

Screenshot 2025-01-09 at 4 59 16 PM

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.

1 participant