From: Tejun Heo <tj@kernel.org>
To: Tao Cui <cuitao@kylinos.cn>
Cc: hannes@cmpxchg.org, mkoutny@suse.com, cgroups@vger.kernel.org
Subject: Re: [PATCH 0/3] cgroup/rdma: add rdma.peak and rdma.events[.local]
Date: Tue, 12 May 2026 07:49:05 -1000 [thread overview]
Message-ID: <8545cad8e29f27e927e76c7bbe1334ea@kernel.org> (raw)
In-Reply-To: <20260512031719.273507-1-cuitao@kylinos.cn>
Hello,
The list below is from an AI-assisted review with some input from me.
* Patches 2 and 3 don't extend the rpool-free condition in
uncharge_cg_locked() and rdmacg_resource_set_max() to the new event
counters, so a "set limit -> hit limit -> uncharge to 0 -> write
'max max'" sequence frees the rpool and zeros the counts.
* rdmacg_event_locked() creates rpools in ancestors of over_cg via
get_cg_rpool_locked() just to host event counters. Those rpools have
usage_sum==0, num_max_cnt==max, peak==0, so the next real uncharge
through any such ancestor frees them.
* Patch 3 says failcnt covers "this cgroup (or its descendants)" but
the code only increments the directly-requesting cgroup. Either the
description or the propagation is wrong.
* rdma.events / rdma.events.local print "mlx4_0 hca_handle.max 5
hca_object.max 0 " (trailing space). That doesn't match any of the
formats in Documentation/admin-guide/cgroup-v2.rst. rdma.current and
rdma.max are nested-keyed; the new files should be too:
"mlx4_0 hca_handle.max=5 hca_object.max=0".
* Please document rdma.peak / rdma.events / rdma.events.local in
Documentation/admin-guide/cgroup-v2.rst.
* "failcnt" is cgroup-v1 vocabulary; pids.events.local uses
"fork_fail" for the same role.
* Event counters are atomic64_t but all updates are under
rdmacg_mutex. Plain u64 with READ_ONCE on the read side would do.
* Patch 1 reflows an unrelated comment ("No user of the rpool ...");
please drop the churn.
Thanks.
--
tejun
next prev parent reply other threads:[~2026-05-12 17:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 3:17 [PATCH 0/3] cgroup/rdma: add rdma.peak and rdma.events[.local] Tao Cui
2026-05-12 3:17 ` [PATCH 1/3] cgroup/rdma: add rdma.peak for per-device peak usage tracking Tao Cui
2026-05-12 3:17 ` [PATCH 2/3] cgroup/rdma: add rdma.events to track resource limit exhaustion Tao Cui
2026-05-12 3:17 ` [PATCH 3/3] cgroup/rdma: add rdma.events.local for per-cgroup allocation failure attribution Tao Cui
2026-05-12 17:49 ` Tejun Heo [this message]
2026-05-13 1:51 ` [PATCH 0/3] cgroup/rdma: add rdma.peak and rdma.events[.local] Tao Cui
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=8545cad8e29f27e927e76c7bbe1334ea@kernel.org \
--to=tj@kernel.org \
--cc=cgroups@vger.kernel.org \
--cc=cuitao@kylinos.cn \
--cc=hannes@cmpxchg.org \
--cc=mkoutny@suse.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.