Re: [PATCH RFC] mm: memcontrol: add cgroup v2 interface to read memory watermark

From: Tejun Heo
Date: Sat Jun 15 2019 - 12:25:11 EST


On Sat, Jun 15, 2019 at 04:20:04PM +0800, Xi Ruoyao wrote:
> Introduce a control file memory.watermark showing the watermark
> consumption of the cgroup and its descendants, in bytes.
>
> Signed-off-by: Xi Ruoyao <xry111@xxxxxxxxxxxxxxxx>

Memory usage w/o pressure metric isn't all that useful and reporting
just the historical maximum of memory.current can be outright
misleading. The use case of determining maximum amount of required
memory is legit but it needs to maintain sustained positive pressure
while taking measurements. There are efforts on this front, so let's
not merge this one for now.

Nacked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

--
tejun