summaryrefslogtreecommitdiff
path: root/include/trace/events/iocost.h
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2020-09-01 21:52:43 +0300
committerJens Axboe <axboe@kernel.dk>2020-09-02 04:38:32 +0300
commit97eb19751f155903489f8d42ea658ace2c59faf7 (patch)
tree5d4ce20a78bf7c88412f25f3eec19a49b519fc79 /include/trace/events/iocost.h
parentda437b95db83106319d337a5859e6dfb464b085a (diff)
downloadlinux-97eb19751f155903489f8d42ea658ace2c59faf7.tar.xz
blk-iocost: add absolute usage stat
Currently, iocost doesn't collect or expose any statistics punting off all monitoring duties to drgn based iocost_monitor.py. While it works for some scenarios, there are some usability and data availability challenges. For example, accurate per-cgroup usage information can't be tracked by vtime progression at all and the number available in iocg->usages[] are really short-term snapshots used for control heuristics with possibly significant errors. This patch implements per-cgroup absolute usage stat counter and exposes it through io.stat along with the current vrate. Usage stat collection and flushing employ the same method as cgroup rstat on the active iocg's and the only hot path overhead is preemption toggling and adding to a percpu counter. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include/trace/events/iocost.h')
0 files changed, 0 insertions, 0 deletions