blk-throttle: choose a small throtl_slice for SSD
authorShaohua Li <shli@fb.com>
Mon, 27 Mar 2017 17:51:38 +0000 (10:51 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 28 Mar 2017 14:02:20 +0000 (08:02 -0600)
commitd61fcfa4bb18992dc8e171996808e1034dc643bb
treeb604e697ded4fdb51b750b35bfbe76436d2c34f6
parent297e3d854784821d3b8ff3ae117f20d71f125504
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>
block/blk-sysfs.c
block/blk-throttle.c
block/blk.h