-
Notifications
You must be signed in to change notification settings - Fork 299
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
[wip] snabb top --yang: dump RFC7223 interface stats as JSON #886
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
b34c3ee
engine: Set shm path to "app/$name"
lukego 94ff234
Amendments to #766:
eugeneia aac0c8c
Merge PR #766 (engine: Set shm path to "app/$name") into yang
eugeneia fad0f43
core.counter: Qualify counter names using `shm.resolve'.
eugeneia 7ed4ed0
snabb top: add `--app' option to print app counters.
eugeneia eb9005b
snabb top: unlink own shm tree to avoid clutter.
eugeneia 5fbe0d6
vhost_user: Add RFC 7223 app counters.
eugeneia 8bb3215
Intel_app: Add RFC 7223 app counters.
eugeneia 7a55478
snabb top: Add --link parameter to list link counters.
eugeneia dde5da2
core.app: Put app counters under "counters/<app>", update snabb top.
eugeneia 924ff4e
lib.json: Import JSON4Lua 1.0.0, include encode functionality.
eugeneia 8e34093
lib.macaddress: Support numeric initialization; add method to get num…
eugeneia 5f9efd2
core.link: Create “discontinuity-time” counters.
eugeneia 7b39148
snabb top: add `--yang' option to print YANG model as JSON.
eugeneia 8984741
snabb top --yang: Represent uint64_t as decimal string.
eugeneia ee00d16
[core.lib] Generalize `timer' to optionally accept 'repeating'
eugeneia 45490b8
Revert "Intel_app: Add RFC 7223 app counters."
eugeneia f0ed10b
intel_app: expose per-pciaddress statistics in `counters/<pciaddress>'.
eugeneia aca8064
Merge branch 'master' into yang-local
eugeneia c186591
lib.protocol.ethernet: Add n_mcast, branch-free Multicast predicate.
eugeneia b09e843
Fix for f0ed10b: require macaddress module.
eugeneia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it safe to introduce this potentially unbiased branch onto the "fast path" for Virtio-net?
The risk I see is that on a workload with 50/50 mix of unicast/multicast traffic you will take the penalty of both a LuaJIT side-trace and also a CPU branch-misprediction half of the time. This could be significant and we don't currently have performance test coverage for such a workload.
One alternative would be to write this branch-free (using arithmetic, bitwise operators, and min/max). Sketch:
This way the same instructions would execute every time and only the values would change.