]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
blk-throttle: make throtl_slice tunable
authorShaohua Li <shli@fb.com>
Mon, 27 Mar 2017 17:51:37 +0000 (10:51 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 28 Mar 2017 14:02:20 +0000 (08:02 -0600)
commit297e3d854784821d3b8ff3ae117f20d71f125504
tree1909a3ce719f5a434d4e4e7584424b3559738be0
parent06cceedcca67a93ac7f7aa93bbd9980c7496d14e
blk-throttle: make throtl_slice tunable

throtl_slice is important for blk-throttling. It's called slice
internally but it really is a time window blk-throttling samples data.
blk-throttling will make decision based on the samplings. An example is
bandwidth measurement. A cgroup's bandwidth is measured in the time
interval of throtl_slice.

A small throtl_slice meanse cgroups have smoother throughput but burn
more CPUs. It has 100ms default value, which is not appropriate for all
disks. A fast SSD can dispatch a lot of IOs in 100ms. This patch makes
it tunable.

Since throtl_slice isn't a time slice, the sysfs name
'throttle_sample_time' reflects its character better.

Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Documentation/block/queue-sysfs.txt
block/blk-sysfs.c
block/blk-throttle.c
block/blk.h