On Tue, Jul 22, 2025 at 01:11:05PM -0700, Shakeel Butt wrote: > > > 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