From: Tejun Heo <tj@kernel.org>
To: Tiffany Yang <ynaffit@google.com>
Cc: linux-kernel@vger.kernel.org, "John Stultz" <jstultz@google.com>,
"Thomas Gleixner" <tglx@linutronix.de>,
"Stephen Boyd" <sboyd@kernel.org>,
"Anna-Maria Behnsen" <anna-maria@linutronix.de>,
"Frederic Weisbecker" <frederic@kernel.org>,
"Johannes Weiner" <hannes@cmpxchg.org>,
"Michal Koutný" <mkoutny@suse.com>,
"Rafael J. Wysocki" <rafael@kernel.org>,
"Pavel Machek" <pavel@kernel.org>,
"Roman Gushchin" <roman.gushchin@linux.dev>,
"Chen Ridong" <chenridong@huawei.com>,
kernel-team@android.com, "Jonathan Corbet" <corbet@lwn.net>,
"Shuah Khan" <shuah@kernel.org>,
cgroups@vger.kernel.org, linux-doc@vger.kernel.org,
linux-kselftest@vger.kernel.org
Subject: Re: [RFC PATCH v3 1/2] cgroup: cgroup.freeze.stat.local time accounting
Date: Mon, 11 Aug 2025 08:51:37 -1000 [thread overview]
Message-ID: <aJo7udUoWJt_jLzK@slm.duckdns.org> (raw)
In-Reply-To: <20250805032940.3587891-5-ynaffit@google.com>
Hello,
Generally looks good to me. Some comments on cosmetics / interface.
On Mon, Aug 04, 2025 at 08:29:41PM -0700, Tiffany Yang wrote:
...
> + cgroup.freeze.stat.local
This was mentioned before and maybe I missed the following discussions but
given that cgroup.freeze is a part of core cgroup, cgroup.stat.local is
probably the right place. It's not great that cgroup.stat wouldn't be a
superset of cgroup.stat.local but we can add the hierarchical counter later
if necessary.
> + A read-only flat-keyed file which exists in non-root cgroups.
> + The following entry is defined:
> +
> + freeze_time_total
How about just frozen_usec? "_usec" is what we used in cpu.stat for time
stats.
> + Cumulative time that this cgroup has spent between freezing and
> + thawing, regardless of whether by self or ancestor groups.
> + NB: (not) reaching "frozen" state is not accounted here.
> +
> + Using the following ASCII representation of a cgroup's freezer
> + state, ::
It's a bit odd to include credit in a doc file. Maybe move it to the
description or add Co-developed-by: tag?
Thanks.
--
tejun
next prev parent reply other threads:[~2025-08-11 18:51 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-05 3:29 [RFC PATCH v3 0/2] cgroup: Track time in cgroup v2 freezer Tiffany Yang
2025-08-05 3:29 ` [RFC PATCH v3 1/2] cgroup: cgroup.freeze.stat.local time accounting Tiffany Yang
2025-08-11 18:51 ` Tejun Heo [this message]
2025-08-14 1:30 ` Tiffany Yang
2025-08-14 15:54 ` Michal Koutný
2025-08-05 3:29 ` [RFC PATCH v3 2/2] cgroup: selftests: Add tests for freezer time Tiffany Yang
2025-08-14 16:18 ` Michal Koutný
2025-08-19 23:05 ` Tiffany Yang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aJo7udUoWJt_jLzK@slm.duckdns.org \
--to=tj@kernel.org \
--cc=anna-maria@linutronix.de \
--cc=cgroups@vger.kernel.org \
--cc=chenridong@huawei.com \
--cc=corbet@lwn.net \
--cc=frederic@kernel.org \
--cc=hannes@cmpxchg.org \
--cc=jstultz@google.com \
--cc=kernel-team@android.com \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=mkoutny@suse.com \
--cc=pavel@kernel.org \
--cc=rafael@kernel.org \
--cc=roman.gushchin@linux.dev \
--cc=sboyd@kernel.org \
--cc=shuah@kernel.org \
--cc=tglx@linutronix.de \
--cc=ynaffit@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®