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

I/O statistics counters for Tap/RawSocket apps #947

Merged
merged 43 commits into from
Jul 13, 2016

Conversation

eugeneia
Copy link
Member

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' }

lukego and others added 30 commits February 22, 2016 13:35
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
option and support injecting a function to determine the
current time.
# Conflicts:
#	src/core/counter.lua
@kbara kbara self-assigned this Jul 1, 2016
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))
Copy link
Contributor

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.

@kbara
Copy link
Contributor

kbara commented Jul 1, 2016

This has merge conflicts with the packet documentation in README.md. Once those are fixed, I'm happy to merge this.

eugeneia added 3 commits July 4, 2016 14:38
…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
@eugeneia
Copy link
Member Author

eugeneia commented Jul 4, 2016

@kbara merge conflicts with which branch, kbara-next? Current policy would be for upstream (you) to resolve that conflict. If I merged kbara-next into this branch this PR would include all commits in master..kbara-next

@kbara
Copy link
Contributor

kbara commented Jul 4, 2016

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.

kbara pushed a commit to kbara/snabb that referenced this pull request Jul 4, 2016
Fixed packet documentation merge conflict
@kbara kbara added the merged label Jul 4, 2016
lukego added a commit that referenced this pull request Jul 11, 2016
@eugeneia eugeneia merged commit b418f8f into snabbco:master Jul 13, 2016
dpino added a commit to dpino/snabb that referenced this pull request Sep 19, 2017
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.

4 participants