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

Yo dawg i heard you like ringbufs #1620

Merged
merged 3 commits into from
Feb 16, 2024
Merged

Conversation

cbiffle
Copy link
Collaborator

@cbiffle cbiffle commented Feb 15, 2024

The final commit is the relevant one, description copied below. The other two commits are cleanups on the way there.


Our ability to debug #1613 was hampered by the control-plane-agent
ringbuf being overwritten, on average, every 1.5 seconds. This adds a
secondary ringbuf that only holds "important" events -- specifically,
commands received from the network that affect the host.

Unfortunately due to the BSP structure in the agent right now, this
required copy-pasting a change into three files. Fixing that appears
difficult.

These modules were importing ringbuf_entry_root as ringbuf_entry, which
was super confusing because ringbuf_entry has features that
ringbuf_entry_root doesn't pass through! So there I was attempting to
use ringbuf_entry! and getting inexplicable compile failures.

I don't think saving five characters is worth that.
Whoever added the _root variant deliberately left out support for named
ringbufs. No idea why. Fixed.
@cbiffle cbiffle force-pushed the yo-dawg-i-heard-you-like-ringbufs branch 2 times, most recently from 895245f to d92e965 Compare February 15, 2024 00:17
Copy link
Contributor

@jgallagher jgallagher left a comment

Choose a reason for hiding this comment

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

LGTM, thanks! Sorry you had to file these forms in triplicate.

task/control-plane-agent/src/main.rs Show resolved Hide resolved
Our ability to debug #1613 was hampered by the control-plane-agent
ringbuf being overwritten, on average, every 1.5 seconds. This adds a
secondary ringbuf that only holds "important" events -- specifically,
commands received from the network that affect the host.

Unfortunately due to the BSP structure in the agent right now, this
required copy-pasting a change into three files. Fixing that appears
difficult.

Fixes #1615.
@cbiffle cbiffle force-pushed the yo-dawg-i-heard-you-like-ringbufs branch from d92e965 to 2451d90 Compare February 16, 2024 18:05
@cbiffle cbiffle merged commit 37ed81c into master Feb 16, 2024
83 checks passed
@cbiffle cbiffle deleted the yo-dawg-i-heard-you-like-ringbufs branch February 16, 2024 18:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants