From: Tejun Heo <tj@kernel.org>
To: Fengnan Chang <changfengnan@bytedance.com>
Cc: "Christian Brauner" <brauner@kernel.org>,
"Shakeel Butt" <shakeel.butt@linux.dev>,
"Jens Axboe" <axboe@kernel.dk>, "Christoph Hellwig" <hch@lst.de>,
"Josef Bacik" <josef@toxicpanda.com>,
"Johannes Weiner" <hannes@cmpxchg.org>,
"Michal Hocko" <mhocko@kernel.org>,
"Roman Gushchin" <roman.gushchin@linux.dev>,
"Michal Koutný" <mkoutny@suse.com>,
cgroups@vger.kernel.org, linux-block@vger.kernel.org
Subject: Re: Per-bio cost of BLK_CGROUP=y, measured after 7693e1350b06 ("memcg: make MEMCG select BLK_CGROUP")
Date: Thu, 03 Dec 2026 06:43:05 -1000 [thread overview]
Message-ID: <ea1978d9f6f03867c696b2c56f793008@kernel.org> (raw)
In-Reply-To: <20261203130234.3718286-1-changfengnan@bytedance.com>
Hello, Fengnan.
On Thu, Dec 03, 2026 at 01:02:34PM +0000, Fengnan Chang wrote:
> - Is this per-bio cost of BLK_CGROUP=y expected and known?
That's not great. blkcg shouldn't add noticeable overhead when it's not in
active use.
> We have been working on reducing this per-bio overhead without
> reverting the commit. Removing most of it takes a series of roughly
> 8-9 patches across blk-cgroup, percpu-refcount and the block merge
> path, and it is still being tested.
It'd be really great if each improvement comes with before and after
benchmarks, so that how much overhead each one removes is clear and can be
weighed against whatever complications it brings.
Thanks.
--
tejun
prev parent reply other threads:[~2026-12-03 16:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-03 13:02 Per-bio cost of BLK_CGROUP=y, measured after 7693e1350b06 ("memcg: make MEMCG select BLK_CGROUP") Fengnan Chang
2026-12-03 16:43 ` Tejun Heo [this message]
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=ea1978d9f6f03867c696b2c56f793008@kernel.org \
--to=tj@kernel.org \
--cc=axboe@kernel.dk \
--cc=brauner@kernel.org \
--cc=cgroups@vger.kernel.org \
--cc=changfengnan@bytedance.com \
--cc=hannes@cmpxchg.org \
--cc=hch@lst.de \
--cc=josef@toxicpanda.com \
--cc=linux-block@vger.kernel.org \
--cc=mhocko@kernel.org \
--cc=mkoutny@suse.com \
--cc=roman.gushchin@linux.dev \
--cc=shakeel.butt@linux.dev \
/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