Skip to content

perf: handle first AUX mmap on redirected events - #961

Merged
RyanTheTide merged 2 commits into
integration/aurorafrom
perf/redirected-aux-mmap
Nov 10, 2026
Merged

RyanTheTide merged 2 commits into
integration/aurorafrom
perf/redirected-aux-mmap

Conversation

@joshuaswarren

Copy link
Copy Markdown
Contributor

[Joshua's agent] Stacked on #948; this PR is a separate follow-up and should be reviewed after its base.

A redirected event can begin with mmap_count == 0 while sharing another event's ring. Its first AUX mmap currently increments that zero refcount, producing a warning and saturation. Initialize the first count and use full close for a failed first AUX map. Existing redirected AUX behavior is preserved.

The expanded, registered source-level host harness fails nine redirected checks on base 5355437 and passes after this change (selected runner 1/1; 37 result lines including two probes). A focused arm64 kernel/events/core.o build passed. These are single-threaded host-model tests with stubbed kernel plumbing, not kernel runtime or hardware results. Cross-user/mm accounting and the pre-existing shared user-page behavior remain separate concerns.

Draft pending Chris's review, Joshua's personal DCO sign-off and the normal maintainer process.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

[Joshua's agent] @chriskearney, could you review the redirected-event first-AUX mmap lifecycle, refcount initialization, failure cleanup and compatibility at head ab2bf62? The PR is stacked on #948; the extended source-level harness fails nine redirect checks on the base and passes after this change. These are single-threaded host-model tests, not kernel runtime or hardware evidence. Human DCO remains pending.

@joshuaswarren

Copy link
Copy Markdown
Contributor Author

@chriskearney could you review this PR? It is stacked on #948 (head 02152b1, the same commits with the sign-off added) and changes only the first AUX mmap handling for redirected events. Head: 77d5714. #948 has its sign-off and a reviewer note; its host-tests run is still pending, so this PR stays in draft until that run is in.

@joshuaswarren
joshuaswarren force-pushed the perf/mmap-alias-accounting-squash branch from 02152b1 to 37c5cb7 Compare November 8, 2026 16:39
@RyanTheTide
RyanTheTide changed the base branch from perf/mmap-alias-accounting-squash to integration/aurora November 10, 2026 04:13
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]>
Initialize the first redirected AUX mmap count without incrementing a zero refcount, and use full close when that AUX map fails. Extend the source-level host harness with redirected AUX lifecycles and realistic saturated-refcount behavior.

The unmodified stacked base fails nine redirect checks; the fixed source passes the registered host-runner selection. A focused arm64 core.o compile passed. These are single-threaded host-model tests, not booted-kernel or hardware validation.

Assisted-by: LLM
Signed-off-by: Joshua Warren <[email protected]>
@joshuaswarren
joshuaswarren force-pushed the perf/redirected-aux-mmap branch from 5682eed to cf0c7ee Compare November 10, 2026 06:53
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

Rebased onto integration/aurora at 064054d (post-#948 merge) - head is now cf0c7ee. One commit (perf: avoid charging mmap aliases twice) dropped in the rebase: its change is already in the base. Reviews requested again.

@RyanTheTide
RyanTheTide marked this pull request as ready for review November 10, 2026 07:25
@RyanTheTide
RyanTheTide merged commit 38014bb into integration/aurora Nov 10, 2026
1 check failed
@joshuaswarren

Copy link
Copy Markdown
Contributor Author

Status after merge: host-tests was red on the merged head cf0c7ee, and the cause was mine. While rebasing I resolved a conflict in the host-test runner's mutation list by union, which put the removed wrong-base mutation back into the pmu-rtc entry. The pmu-rtc script no longer accepts it, so the run failed with "invalid choice: 'wrong-base'". #1426 (ccbfa49) already removed that line, and host-tests on integration/aurora at 346e751 passed at 07:38Z. This PR needs no further change. The perf lifecycle test also passes on that base.

@RyanTheTide
RyanTheTide deleted the perf/redirected-aux-mmap branch November 16, 2026 05:11
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.

2 participants