Re: [PATCH v3] mm: vmpressure: don't count proactive reclaim in vmpressure

From: Shakeel Butt
Date: Thu Jun 30 2022 - 11:02:34 EST


On Thu, Jun 30, 2022 at 1:30 AM Yosry Ahmed <yosryahmed@xxxxxxxxxx> wrote:
>
> vmpressure is used in cgroup v1 to notify userspace of reclaim
> efficiency events, and is also used in both cgroup v1 and v2 as a signal
> for memory pressure for networking, see
> mem_cgroup_under_socket_pressure().
>
> Proactive reclaim intends to probe memcgs for cold memory, without
> affecting their performance. Hence, reclaim caused by writing to
> memory.reclaim should not trigger vmpressure.
>
> Signed-off-by: Yosry Ahmed <yosryahmed@xxxxxxxxxx>

Acked-by: Shakeel Butt <shakeelb@xxxxxxxxxx>