-
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
I/O statistics counters for Tap/RawSocket apps #947
Conversation
Set the shared memory path (shm.path) to a private namespace for each app with prefix "app/$name". This means that apps can create shm objects such as counters and by default these will appear in a local namespace for that app.
- Use "apps/" instead of "app/" for uniformity - Set shm path to "apps/$name" when calling `app:stop' too - Unlink "apps/$name" after `app:stop' using `shm.unlink' - Add a test case to core.app selftest
# Conflicts: # src/core/app.lua
…eric representation.
option and support injecting a function to determine the current time.
This reverts commit 8bb3215.
# Conflicts: # src/core/counter.lua
This reverts commit 924ff4e.
This reverts commit e9f5dda.
# Conflicts: # src/apps/intel/intel10g.lua # src/core/app.lua
self.tdt = band(self.tdt + 1, num_descriptors - 1) | ||
end | ||
self.txdesc[self.tdt].address = memory.virtual_to_physical(p.data) | ||
self.txdesc[self.tdt].options = bor(p.length, txdesc_flags, lshift(p.length+0ULL, 46)) |
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.
In future patches, I'd like comments or defined constants explaining numbers like that 46.
This has merge conflicts with the packet documentation in README.md. Once those are fixed, I'm happy to merge this. |
…dicate." Reason: its actually slower than the initial naive version. This reverts commit c186591. # Conflicts: # src/apps/vhost/vhost_user.lua
# Conflicts: # src/apps/vhost/vhost_user.lua # src/lib/protocol/README.md
@kbara merge conflicts with which branch, |
It has merge conflicts with kbara-next, due to the documentation patch that you also wrote (on packet structure) and which has been upstreamed. I'll resolve the conflict if you'd prefer not to. |
Fixed packet documentation merge conflict
Decouple alarms declaration
Depends on #931. Coverage of Solarflare and Intel1G apps is coming in a separate PR (waiting for Solarflare test hardware and completion of #897).
Besides adding statistics counters[1] to the Tap and RawSocket apps, this also adds counting of broadcast packets to vhost_user.
1:
provided_counters = { 'type', 'dtime', 'rxbytes', 'rxpackets', 'rxmcast', 'rxbcast', 'txbytes', 'txpackets', 'txmcast', 'txbcast' }