From: Jason Gunthorpe <jgg@ziepe.ca>
To: Tao Cui <cuitao@kylinos.cn>
Cc: tj@kernel.org, hannes@cmpxchg.org, mkoutny@suse.com,
leon@kernel.org, linux-rdma@vger.kernel.org,
cgroups@vger.kernel.org
Subject: Re: [RFC PATCH rdma-next 0/5] cgroup/rdma: add per-type resource accounting for QP, MR and MR memory
Date: Mon, 25 May 2026 10:43:14 -0300 [thread overview]
Message-ID: <20260525134314.GI7702@ziepe.ca> (raw)
In-Reply-To: <20260525055506.2002985-1-cuitao@kylinos.cn>
On Mon, May 25, 2026 at 01:55:01PM +0800, Tao Cui wrote:
> Currently the RDMA cgroup only tracks two aggregate counters:
> hca_handle and hca_object. This is too coarse for real-world
> deployment: a tenant can exhaust all HCA objects by creating nothing
> but QPs, while the administrator has no way to impose separate limits
> on QP count, MR count, or the cumulative memory registered through
> MRs.
This was a deliberate choice.
> - qp - Queue Pair count
> - mr - Memory Region count
> - mr_mem - Cumulative MR memory size in bytes
I would agree to mr_mem as a reasonable extension, but not splitting
out objects to finer grains. There are endless objects we don't want a
100 different cgroup knobs, it is not usable.
Jason
next prev parent reply other threads:[~2026-05-25 13:43 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-25 5:55 [RFC PATCH rdma-next 0/5] cgroup/rdma: add per-type resource accounting for QP, MR and MR memory Tao Cui
2026-05-25 5:55 ` [RFC PATCH rdma-next 1/5] cgroup/rdma: extend charge/uncharge API with s64 amount parameter Tao Cui
2026-05-25 5:55 ` [RFC PATCH rdma-next 2/5] cgroup/rdma: add QP per-type resource counting Tao Cui
2026-05-25 5:55 ` [RFC PATCH rdma-next 3/5] cgroup/rdma: add MR " Tao Cui
2026-05-25 5:55 ` [RFC PATCH rdma-next 4/5] cgroup/rdma: add MR memory size " Tao Cui
2026-05-25 5:55 ` [RFC PATCH rdma-next 5/5] cgroup/rdma: update cgroup resource list for QP, MR and MR_MEM Tao Cui
2026-05-25 13:43 ` Jason Gunthorpe [this message]
2026-05-27 11:28 ` [RFC PATCH rdma-next 0/5] cgroup/rdma: add per-type resource accounting for QP, MR and MR memory Tao Cui
2026-05-27 13:34 ` Jason Gunthorpe
2026-05-28 7:55 ` Tao Cui
2026-05-28 13:06 ` Jason Gunthorpe
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=20260525134314.GI7702@ziepe.ca \
--to=jgg@ziepe.ca \
--cc=cgroups@vger.kernel.org \
--cc=cuitao@kylinos.cn \
--cc=hannes@cmpxchg.org \
--cc=leon@kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=mkoutny@suse.com \
--cc=tj@kernel.org \
/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