iocost_monitor: print vrate inuse along with base_vrate
authorChengming Zhou <zhouchengming@bytedance.com>
Fri, 4 Aug 2023 06:50:38 +0000 (14:50 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 8 Aug 2023 21:43:03 +0000 (15:43 -0600)
commit8e93c1acd15e6a754c19ef12f6e69641f37e267a
treecffb584c5b5f70b7590f98ff30a3b8442e03a7e6
parent2eae9c4912b6cfdfadcd4fa8ac26879e18a504a1
iocost_monitor: print vrate inuse along with base_vrate

The real vrate iocost inuse is not base_vrate, but the atomic vtime_rate.
We need iocost_monitor tool to display this real vrate that iocost use,
to check if the boosted compensated vrate is normal.

Effect after change:

nvme0n1 RUN  per=50.0ms cur_per=172116.580:v1040587.433 busy= +0 \
vrate=135.00%:270.00% params=ssd_dfl(CQ)
                ^
                |
         this is real vrate inuse

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