iocost_monitor: improve it by adding iocg wait_ms
authorChengming Zhou <zhouchengming@bytedance.com>
Fri, 4 Aug 2023 06:50:39 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Aug 2023 21:43:03 +0000 (15:43 -0600)
commit68392b002023cb6dadd3d5044268470a7201b313
treed923119dabb765dfa1b6994138bee24614e22e82
parent8e93c1acd15e6a754c19ef12f6e69641f37e267a
iocost_monitor: improve it by adding iocg wait_ms

The iocg can have three throttled metrics: wait, debt, delay. This patch
add missing wait_ms to IocgStat to show the latest wait_ms of iocg.

As we are here, group iocg usage percents "inflt%" and "usage%" together,
and group iocg throttled metrics "wait", "debt" and "delay" together.

Effect after changes:

nvme0n1 RUN  per=50.0ms cur_per=177105.713:v1053528.587 busy= +0 vrate=135.00%:270.00% params=ssd_dfl(CQ)
                          active    weight      hweight% inflt% usage%    wait    debt   delay
InterfererGroup0             *   100/  100  54.28/  9.09   0.34  24.07    0.00    0.00    0.00
interfered                   *    84/ 1000  45.72/ 90.91   0.48  41.09    0.00    0.00    0.00

Signed-off-by: Chengming Zhou <zhouchengming@bytedance.com>
Acked-by: Tejun Heo <tj@kernel.org>
Link: https://lore.kernel.org/r/20230804065039.8885-3-chengming.zhou@linux.dev
Signed-off-by: Jens Axboe <axboe@kernel.dk>
tools/cgroup/iocost_monitor.py