LINUXMIND.DEVTHE GNU/LINUX WORLD

Sashiko 0.9.5 adds an AI performance review stage for kernel patches

Flat editorial vector illustration of an AI assistant reviewing a stack of kernel patches beside a rising performance gauge, on a cream background

Sashiko, the AI code-review assistant that Google’s engineers maintain for the Linux kernel, has grown a new pair of eyes — one that watches for performance regressions instead of correctness bugs. Version 0.9.5 landed on Friday, 21 November 2026, and the headline addition is an optional performance specialist review stage that slots into the patch-review pipeline the tool already runs. The premise is refreshingly honest about how the kernel actually breaks: the changes that quietly cost you frames or milliseconds are almost never labelled “performance work”. They are ordinary cleanups, bug fixes and struct layout tweaks that look harmless and get merged without a benchmark attached to them.

What the new stage actually does

The stage is opt-in and works in both the daemon and the local sashiko review modes, reachable through the --stages performance and --cheap flags. When it runs, it performs what the developers call second-order side-effect tracing: it walks callers and the larger structures that embed a changed object one or two hops outward, using repository tooling rather than intuition. The rules deliberately forbid the convenient dismissals — “this critical section is short”, “this teardown path runs cold”, “a correctness mechanism implies the throughput is fine” — because those are exactly the rationalisations that let a real regression slip past review.

It is also picky about what it inspects. The performance pass is scheduled for non-trivial C, Rust, or header and struct changes, and skips pure documentation, comments and ID tables. The point is to spend the model’s attention where a genuine throughput or latency cliff can actually hide.

The benchmark numbers

The team validated the stage with a controlled A/B test against a balanced suite called benchmark_performance.json: 40 commits split evenly between 20 known upstream regressions and 20 soak-verified clean commits. Run with gemini-4-argon at high effort, the results were:

  • Positive detection: 3/20 (15.0%) at baseline, climbing to 14/20 (70.0%) — a 55-point gain, with 9 of the 11 net-new wins originating solely from the performance stage.
  • Neutral clean rate: 11/20 (55.0%) to 12/20 (60.0%), with no new false positives and total unmatched findings easing from 52 to 51.
  • Resource overhead: +11.0% median input tokens, 91.4% of which were cache hits, while median per-commit duration actually dropped by 3.1%.

The token figure is the one that decides whether maintainers keep it switched on. A double-digit rise in input tokens sounds steep until you see that nine tenths of it is cached; wall-clock time did not get worse, it got marginally better.

What changes for you

You will not install Sashiko unless you review kernel patches for a living. The benefit reaches ordinary users indirectly and slowly, and that is exactly the point: every regression this stage catches on the mailing list is one that never reaches a stable release, never lands in your distribution’s update, and never turns a smooth desktop into one that stutters after a point release. Kernel performance regressions are notoriously hard to attribute once they ship, precisely because the commit that caused them rarely mentions performance. Catching them at review time, where the culprit is a single patch and the fix is cheap, is the whole game.

It also fits a wider pattern worth watching. Sashiko 0.9.4, out on 18 November, added an experimental patch-series design assessment; 0.9.5 adds performance. The tool is being layered steadily upward, from “does this code have a bug” toward “is this change good engineering”. Whether that trims maintainer load or simply adds another automated voice to an already noisy mailing list is genuinely open — and given how wary several kernel developers have become about AI patch volume, it is being watched closely.

For now the story is modest and useful: one silent slowdown per release cycle that never happens is a win nobody has to notice.

Fuentes: Phoronix (phoronix.com/news/Sashiko-AI-Performance-Review), Sashiko v0.9.5 release notes (github.com/sashiko-dev/sashiko), FOSS Wire (fosswire.org).




Leave a Reply

Your email address will not be published. Required fields are marked *