Hi,
在 2025/02/24 21:54, Ming Lei 写道:
Do you run this test without the kernel patch? If I remembered
correctly, ext4 issue the meta IO from jbd2 by default, which is from
root cgroup, and root cgroup can only throttled from cgroup v1.
It passes on v6.14-rc1, does META/SWAP IO only route from cgroup v1?
Of course not, it's just ext4 will issue such IO from root cgroup, and
there is no IO can be throttled here.
You might want to bind jbd2 to the test cgroup as well.
Thanks,
Kuai
static inline bool bio_issue_as_root_blkg(struct bio *bio)
{
return (bio->bi_opf & (REQ_META | REQ_SWAP)) != 0;
}
Thanks,
Ming