perf(tfork): add opt-in residual latency probes- #11 - #7
Open
yiying-zhang wants to merge 59 commits into
Open
Conversation
Stabilize live tfork source freezing
…-main Stabilize single-copy tfork clone path
Rewrite tclone setup for Gensee Crate
Clarify Gensee tclone host setup
Initialize temporary CRIU process UIDs
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
CRIU_TFORK_PROFILE=1Phase A task-loop buckets;Motivation
Earlier profiling left 168.5 ms of the 100-process Phase A loop unassigned and
266–306 ms of Phase B after polling was replaced with futex wakeups. These
probes distinguish real work from synchronization slack without a per-task log
line.
Results
At 100 processes, the first-fork medians assign the 509.805 ms task loop mainly
to core/thread serialization (93.683 ms), page handoff (86.470 ms), parasite
infection (83.064 ms), VMA collection (73.169 ms), stop/thread/cure (40.064
ms), and MM/FS serialization (38.477 ms).
Phase B futex waits total 237.891 ms. The dominant waits are 190.512 ms for the
100-task restore tree and 44.549 ms for namespace preparation. This is useful
work/dependency time, not residual 100 ms polling quantization.
An interleaved overhead check found no measurable Phase A penalty (584.336 ms
enabled versus 588.673 ms disabled; -0.7% noise).
Validation