Repository navigation
perf: avoid charging mmap aliases twice - #948
Conversation
|
[Joshua's agent] Added 5355437 to register perf-mmap-alias-lifecycle-tests.py in tools/asahi/run-host-tests.py: the runner rejected the unregistered file (exit 2 before), then ran it successfully (1/1 PASS after). Kernel hunks are unchanged, so Chris can re-check just this commit. |
5355437 to
02152b1
Compare
|
Update on this PR (for the reviewer). What changed since #947 (head e2bf3e2):
Status: still a draft. The host-tests run has not started on the new head yet; I will update this thread when it does. #961 is stacked on this PR; its head is 77d5714. |
|
Host tests were run locally on head 02152b1 (GitHub Actions is currently disabled for this repository, so the hosted workflow did not run). Command (the CI workflow's test step, in a worktree at 02152b1): Full-suite numbers, run in the same session under the same environment: Environment caveat: the local host is not the CI image. Deviations from Triage: every test whose result differed between the two trees was rerun three times per tree. No failure is attributable to this PR:
Logs retained locally with per-run output for every rerun iteration. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
A/B verdict table (follow-up to the earlier host-tests comment). Method: the 13 tests whose results ever differed between the parent tree and this PR's head were each run 10 more times per tree on one host, interleaved (parent first, then the PR, alternating, 10 rounds). No other variable changed between the paired runs. The four tb-dp/tiled-split mutant names are sub-verdicts of their parent
Verdict: no test fails more on the PR at p < 0.05. The largest skew toward the PR (resume-order, 5 vs 1) has p = 0.141 two-sided (0.070 one-sided). Every differing test fails on both trees at similar rates; the causes are host-environment (see the companion issue), not this PR. This PR's own test, perf-mmap-alias-lifecycle-tests, passed in every run on both trees. |
|
Flaky-host-tests report (the environment causes behind the flaky rows in the table above), filed as a discussion since this repo has issues disabled: #1044 |
Charge normal-ring and AUX pages only on first allocation. Repeated aliases share the existing charge; the final close releases it once. A failed alias mapping previously left an extra per-user charge. Add a source-level host regression for duplicate and failed aliases, metadata-only rings, limit splitting and alternate close orders. Against the exact base the harness reports 16 failing alias cases; on this tree it passes 26/26. A focused x86-64 core.o build passed. This is single- user, single-mm, single-threaded host testing with stubbed kernel plumbing; it is not runtime or hardware validation. Fixes: 0c8a4e4 ("perf/core: Further simplify perf_mmap()") Assisted-by: LLM Signed-off-by: Joshua Warren <[email protected]>
Register the alias lifecycle harness so the host-test runner executes it instead of rejecting the unregistered file. Verified with the runner before and after registration. Assisted-by: LLM Signed-off-by: Joshua Warren <[email protected]>
02152b1 to
37c5cb7
Compare
|
[Joshua's agent] The base moved, so this branch had conflicts. I rebased onto integration/aurora
|
Replacement for #947, retained as the review thread. The first unsigned squash commit 85b4a97 has tree 375a6a354713d4fb957965e797e986365b888b4b, identical to reviewed #947 head e2bf3e2. Follow-up commit 5355437 registers its host test; current head tree 3065bc736d68e1e92a0dc644304a03912ff7f322 is therefore not identical to #947. Both commits are unsigned; Joshua must personally review and add DCO sign-off.
The actual host runner rejected the missing registration before the fix and ran the selected harness after it: 1/1 passed, with 26/26 lifecycle cases. The harness stubs kernel plumbing and is single-user, single-mm, single-threaded; this is not runtime or hardware validation. Existing cross-user AUX and cross-mm ownership issues are separate.
Draft pending review of the new head, Joshua's sign-off, and normal maintainer process.