aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorKemeng Shi <[email protected]>2022-12-05 19:57:02 +0800
committerJens Axboe <[email protected]>2022-12-05 13:44:27 -0700
commit84aca0a7e039c8735abc0f89f3f48e9006c0dfc7 (patch)
tree2c558db44b8ff430c08d41a8f92f3789e7eb99d6 /tools/perf/scripts/python/event_analyzing_sample.py
parentf56019aef353576f43f945fdd065858145090582 (diff)
blk-throttle: Fix that bps of child could exceed bps limited in parent
Consider situation as following (on the default hierarchy): HDD | root (bps limit: 4k) | child (bps limit :8k) | fio bs=8k Rate of fio is supposed to be 4k, but result is 8k. Reason is as following: Size of single IO from fio is larger than bytes allowed in one throtl_slice in child, so IOs are always queued in child group first. When queued IOs in child are dispatched to parent group, BIO_BPS_THROTTLED is set and these IOs will not be limited by tg_within_bps_limit anymore. Fix this by only set BIO_BPS_THROTTLED when the bio traversed the entire tree. There patch has no influence on situation which is not on the default hierarchy as each group is a single root group without parent. Acked-by: Tejun Heo <[email protected]> Signed-off-by: Kemeng Shi <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions