Re: [PATCH 1/4] mm: vmpressure: scale sampling window with machine size

From: Lorenzo Stoakes (ARM)

Date: Wed Jul 22 2026 - 05:05:53 EST


On Wed, Jul 22, 2026 at 10:07:53AM +0200, Michal Hocko wrote:
> On Wed 15-07-26 20:06:41, deepakraog wrote:
> > The vmpressure window size was fixed at 512 pages (SWAP_CLUSTER_MAX * 16).
> > Scale it at boot from total memory and CPU count using the same fls-based
> > formula as vmstat per-zone thresholds, clamped between 128 and 2048 pages.
>
> This is not giving us any rationale why this is needed or desirable.

Agreed, the series are all somewhat corrupted here (seemingly some patches
missing + not sent to the same list of people, unrelated stuff in the same
series, etc.).

I replied to the v2 of this ([0]), in general this is essentially the same thing
submitted by a previous person ([1]), and Deepak acked that ([2]) and agreed
that this isn't worth pursuing.

Cheers, Lorenzo

[0]:https://lore.kernel.org/linux-mm/aljYxLusTzZkTfnH@lucifer/
[1]:https://lore.kernel.org/all/20260227221555.29969-1-mcq@xxxxxxxxxxx/
[2]:https://lore.kernel.org/all/20260716134938.42495-1-gaikwad.dcg@xxxxxxxxx/

>
> --
> Michal Hocko
> SUSE Labs