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

Interlink: optimize rebalance #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eugeneia
Copy link
Member

@eugeneia eugeneia commented Dec 7, 2018

Optimizes the slow loops that rebalance the packet freelists. This change might not be worth the code: while it significantly reduces the latency of rebalancing operations (as observed using the timeline) in micro benchmarks, it does not have measurable impact on more realistic benchmarks like Vita’s test.snabb, likely due to the fact that duplex packet flow avoids most of the need to rebalance freelists at all.

Notably, when testing this change using Vita’s test.snabb a performance regression was observed, possibly due to 8f5569b (alignment?). Have do dig into that in case this optimization becomes relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant