Skip to content

Conversation

@PlagueCZ
Copy link
Contributor

@PlagueCZ PlagueCZ commented Apr 8, 2025

Implemented the mentioned equation to compute packet pool size.

Tested in OSC with telementry monitoring available packets via echo "/mempool/info,mbuf_pool" | dpdk-telemetry.py.

Changes are in line with the issue description:

  • 1024 packets per active port are removed from the pool and only released after the port is closed by removing a VM
  • available packets oscillate by a few hundred there and back, consistent with bursts and caching and internal queues

Fixes #665

@github-actions github-actions bot added size/S enhancement New feature or request labels Apr 8, 2025
Copy link
Collaborator

@guvenc guvenc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I conquer to decrease the memory footprint without losing functionality based on test results and the calculation you presented.

Could you please also rebase to main ?

@PlagueCZ PlagueCZ force-pushed the feature/mempool_size_computation branch from 1455c90 to 965d181 Compare April 15, 2025 11:34
@PlagueCZ PlagueCZ marked this pull request as ready for review April 15, 2025 11:34
@PlagueCZ PlagueCZ requested a review from a team as a code owner April 15, 2025 11:34
@guvenc guvenc merged commit 965d181 into main Apr 15, 2025
6 checks passed
@guvenc guvenc deleted the feature/mempool_size_computation branch April 15, 2025 17:27
@github-project-automation github-project-automation bot moved this to Done in Roadmap Apr 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Better packet pool size computation

4 participants