Re: [RFC PATCH v2] cgroup: Track time in cgroup v2 freezer
From: Tiffany Yang
Date: Tue Jul 22 2025 - 18:41:24 EST
Tejun Heo <tj@xxxxxxxxxx> writes:
On Thu, Jul 17, 2025 at 09:52:38PM +0800, Chen Ridong wrote:
> With the given implementation (and use scenario), this'd better exposed
> in
> cgroup.freeze.stat.local
>
Would it be possible to add this field to either cgroup.event or
cgroup.stat?
Since the frozen status is already tracked in cgroup.event, this
placement would maintain better
cohesion with existing metrics.
This is just a suggestion.
Yeah, given that the freezer is an integral part of cgroup core, using
cgroup.stat[.local] probably makes more sense.
Thanks.
One of the reasons I avoided cgroup.stat was because I interpreted its
purpose to be for exposing cgroup metadata (i.e., descendants and
descendants per subsystem), and I didn't think this value fit in neatly.
It doesn't seem like there currently exists a cgroup.stat.local, but if
that is the preferred location for this accounting, I could create one
and print it there!
--
Tiffany Y. Yang