diff options
author | Shaohua Li <shli@fb.com> | 2017-03-27 13:51:38 -0400 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-03-28 10:02:20 -0400 |
commit | d61fcfa4bb18992dc8e171996808e1034dc643bb (patch) | |
tree | b604e697ded4fdb51b750b35bfbe76436d2c34f6 /block/blk-sysfs.c | |
parent | 297e3d854784821d3b8ff3ae117f20d71f125504 (diff) |
blk-throttle: choose a small throtl_slice for SSD
The throtl_slice is 100ms by default. This is a long time for SSD, a lot
of IO can run. To make cgroups have smoother throughput, we choose a
small value (20ms) for SSD.
Signed-off-by: Shaohua Li <shli@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index b315e62cc914..7f090dd15ca6 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c | |||
@@ -906,6 +906,8 @@ int blk_register_queue(struct gendisk *disk) | |||
906 | 906 | ||
907 | blk_wb_init(q); | 907 | blk_wb_init(q); |
908 | 908 | ||
909 | blk_throtl_register_queue(q); | ||
910 | |||
909 | if (q->request_fn || (q->mq_ops && q->elevator)) { | 911 | if (q->request_fn || (q->mq_ops && q->elevator)) { |
910 | ret = elv_register_queue(q); | 912 | ret = elv_register_queue(q); |
911 | if (ret) { | 913 | if (ret) { |