Thread (20 messages) 20 messages, 7 authors, 2025-07-30

Re: [PATCH v3] memcg: expose socket memory pressure in a cgroup

From: Michal Koutný <mkoutny@suse.com>
Date: 2025-07-23 08:38:08
Also in: cgroups, linux-mm

On Tue, Jul 22, 2025 at 01:11:05PM -0700, Shakeel Butt [off-list ref] wrote:
quoted
quoted
1 second is the current implementation and it can be more if the memcg
remains in memory pressure. Regarding usefullness I think the periodic
stat collectors (like cadvisor or Google's internal borglet+rumbo) would
be interested in scraping this interface.
I think the cumulative counter suggested above is better at least.
It is tied to the underlying implementation. If we decide to use, for
example, PSI in future, what should this interface show?
Actually, if it was exposed as cummulative time under pressure (not
cummulative events), that's quite similar to PSI.

My curiosity is whether this can be useful to some responsive actions
(hence it's worth watching with high frequency or even create
notification events) or rather like post-hoc examination or low
frequency adjustments (reason for cummulative). I.e. what can this
signal to the userspace?

Michal

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help