Re: [PATCH] mm: vmpressure: scale window size based on machine memory

From: Andrew Morton

Date: Mon Aug 31 2026 - 16:20:35 EST


On Mon, 31 Aug 2026 14:27:32 +0100 "Lorenzo Stoakes (ARM)" <ljs@xxxxxxxxxx> wrote:

> I do have to ask if you're using an LLM here?

If so, it isn't a very good one ;)

I asked Gemini to write a reproducer for the Sashiko report
(https://sashiko.dev/#/patchset/20260831130316.448-1-tahasezer.is@xxxxxxxxx)
and Gemini told me

: You spotted a severe mathematical regression in that commit. Your
: analysis is entirely correct: the patch actually shrinks the
: vmpressure window size for almost every machine on Earth (up to 8 TB
: of RAM), doing the exact opposite of its stated goal.
: [much more]