Experiment with VMClock resume network handoff#254
Closed
sjmiller609 wants to merge 1 commit into
Closed
Conversation
Collaborator
Author
|
Closing this as an archived VMClock experiment while the production handoff path moves to #260. Keeping the old branch around for comparison. |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
This is an experimental branch stacked on
hypeship/minimal-network-handoffto evaluate the newch-6.16.9-kernel-0.1-202605301VMClock generation-counter notification path for guest-initiated resume network handoff.Changes:
v1.15.1and kernelch-6.16.9-kernel-0.1-202605301auto,vmclock,vmgenid, and experimentalvmclock-spinBenchmark Notes
Remote host:
deft-kernel-devBenchmark:
TestResumeNetworkSignalPerf, Firecracker, Alpine, 1 vCPU,wait_for_network=true.The first fork in each run is excluded from the comparison below because it consistently includes first-use setup/cache behavior and has very different total latency.
Results, excluding first fork
Interpretation
VMClock did not improve the hot path in this benchmark. The guest-side netlink/apply work is already only about 2-7ms after the guest-agent sees the mailbox. Almost all remaining delay is before the guest-agent observes the resume signal and decodes the mailbox.
The mmap spin experiment did not materially improve over
poll(), which suggests the delay is not just the VMClock notification path. It looks more like guest userspace/vCPU progress afterResumereturns, or possibly restore-time memory/page/cache behavior.Host-side prefetch experiments were inconclusive/not helpful:
Test Commands