blk-throttle: add burst allowance
Subsystems (2)
RFC PATCH 1/1 blk-throttle: add burst allowance
Allows configuration additional bytes or ios before a throttle is triggered. Slice end is extended to cover expended allowance recovery time.
Usage would be e.g. per device to allow users to take up to X bytes/ios at full speed, but be limited to Y bps/iops with sustained usage.
Signed-off-by Khazhismel Kumykov <[email protected]>
--- block/Kconfig | 11 +++ block/blk-throttle.c | 185 ++++++++++++++++++++++++++++++++++++++++++++++++--- 2 files changed, 186 insertions(+), 10 deletions(-)
block/Kconfig +11 -0
@@ -127,6 +127,17 @@ config BLK_DEV_THROTTLING_LOW Note, this is an experimental interface and could be changed someday. +config BLK_DEV_THROTTLING_BURST + bool "Block throttling .burst allowance interface" + depends on BLK_DEV_THROTTLING + default n + ---help--- + Add .burst allowance for block throttling. Burst allowance allows for + additional unthrottled usage, while still limiting speed for sustained + usage. + + If in doubt, say N. + config BLK_CMDLINE_PARSER bool "Block device command line partition parser" default n
block/blk-throttle.c +175 -10
279 lines not on this page · raw message
Signature · 1 line
2.15.0.rc2.357.g7e34df9404-goog