Skip to contentSkip to conversation

blk-throttle: add burst allowance

RFC PATCH New Khazhismel Kumykov 1 participant 1 message Oct 26, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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.

---
 block/Kconfig        |  11 +++
 block/blk-throttle.c | 185 ++++++++++++++++++++++++++++++++++++++++++++++++---
 2 files changed, 186 insertions(+), 10 deletions(-)
block/Kconfig +11 -0
index 3ab42bbb06d5..16545caa7fc9 100644
@@ -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