[PATCH] blkcg: update iocost_coef_gen.py to use io_uring

From: Jeff Layton

Date: Wed Jun 24 2026 - 10:51:16 EST


Recently I found myself having to benchmark some rather fast disks for
iocost, but the old iocost_coef_gen.py script couldn't generate enough
throughput to saturate it. Make it use io_uring instead.

Cc: Tejun Heo <tj@xxxxxxxxxx>
Cc: linux-block@xxxxxxxxxxxxxxx
Signed-off-by: Jeff Layton <jlayton@xxxxxxxxxx>
---
tools/cgroup/iocost_coef_gen.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/cgroup/iocost_coef_gen.py b/tools/cgroup/iocost_coef_gen.py
index df17a2ae80e5..41f93f4536cc 100644
--- a/tools/cgroup/iocost_coef_gen.py
+++ b/tools/cgroup/iocost_coef_gen.py
@@ -91,7 +91,7 @@ def run_fio(testfile, duration, iotype, iodepth, blocksize, jobs):

eta = 'never' if args.quiet else 'always'
outfile = tempfile.NamedTemporaryFile()
- cmd = (f'fio --direct=1 --ioengine=libaio --name=coef '
+ cmd = (f'fio --direct=1 --ioengine=io_uring --name=coef '
f'--filename={testfile} --runtime={round(duration)} '
f'--readwrite={iotype} --iodepth={iodepth} --blocksize={blocksize} '
f'--eta={eta} --output-format json --output={outfile.name} '

---
base-commit: 840ef6c78e6a2f694b578ecb9063241c992aaa9e
change-id: 20260624-iocost-a196820cc049

Best regards,
--
Jeff Layton <jlayton@xxxxxxxxxx>