Dennis Zhou
a230930084
btrfs: calculate discard delay based on number of extents
...
An earlier patch keeps track of discardable_extents. These are
undiscarded extents managed by the free space cache. Here, we will use
this to dynamically calculate the discard delay interval.
There are 3 rate to consider. The first is the target convergence rate,
the rate to discard all discardable_extents over the
BTRFS_DISCARD_TARGET_MSEC time frame. This is clamped by the lower
limit, the iops limit or BTRFS_DISCARD_MIN_DELAY (1ms), and the upper
limit, BTRFS_DISCARD_MAX_DELAY (1s). We reevaluate this delay every
transaction commit.
Reviewed-by: Josef Bacik <josef@toxicpanda.com >
Signed-off-by: Dennis Zhou <dennis@kernel.org >
Reviewed-by: David Sterba <dsterba@suse.com >
Signed-off-by: David Sterba <dsterba@suse.com >
2020-01-20 16:40:59 +01:00
..
2020-01-20 16:40:55 +01:00
2019-04-29 19:02:44 +02:00
2019-11-18 12:46:52 +01:00
2019-11-18 12:46:52 +01:00
2019-07-30 18:25:12 +02:00
2019-07-01 13:34:53 +02:00
2020-01-20 16:40:57 +01:00
2020-01-20 16:40:58 +01:00
2019-09-09 14:59:19 +02:00
2019-07-02 12:30:55 +02:00
2019-11-18 17:51:46 +01:00
2020-01-20 16:40:52 +01:00
2018-04-12 16:29:46 +02:00
2020-01-20 16:40:54 +01:00
2019-11-18 12:46:59 +01:00
2019-12-13 14:09:25 +01:00
2020-01-20 16:40:59 +01:00
2019-11-18 17:51:46 +01:00
2019-07-04 17:26:17 +02:00
2019-11-18 12:46:51 +01:00
2018-10-15 17:23:33 +02:00
2019-09-09 14:59:18 +02:00
2019-07-04 17:26:17 +02:00
2019-11-18 12:46:52 +01:00
2019-11-18 12:46:52 +01:00
2019-04-29 19:02:50 +02:00
2020-01-20 16:40:59 +01:00
2020-01-20 16:40:59 +01:00
2020-01-20 16:40:57 +01:00
2020-01-20 16:40:55 +01:00
2019-11-18 12:46:52 +01:00
2018-04-12 16:29:46 +02:00
2020-01-20 16:40:55 +01:00
2020-01-20 16:40:55 +01:00
2019-11-18 23:43:44 +01:00
2019-11-18 23:43:44 +01:00
2019-11-18 12:46:47 +01:00
2020-01-20 16:40:59 +01:00
2020-01-20 16:40:54 +01:00
2020-01-20 16:40:55 +01:00
2020-01-20 16:40:59 +01:00
2020-01-20 16:40:59 +01:00
2019-11-18 17:51:51 +01:00
2019-11-18 17:51:51 +01:00
2019-09-09 14:59:16 +02:00
2020-01-20 16:40:57 +01:00
2018-04-12 16:29:46 +02:00
2020-01-20 16:40:57 +01:00
2020-01-20 16:40:55 +01:00
2019-12-09 17:56:06 +01:00
2019-11-18 17:51:50 +01:00
2019-11-18 12:46:49 +01:00
2019-11-18 12:46:59 +01:00
2020-01-20 16:40:57 +01:00
2019-11-18 12:46:50 +01:00
2020-01-20 16:40:54 +01:00
2020-01-20 16:40:54 +01:00
2018-04-12 16:29:51 +02:00
2020-01-20 16:40:55 +01:00
2018-04-20 19:18:16 +02:00
2019-11-18 12:46:55 +01:00
2019-04-29 19:02:54 +02:00
2020-01-20 16:40:50 +01:00
2019-11-18 17:51:51 +01:00
2019-11-18 12:47:00 +01:00
2019-07-01 13:34:58 +02:00
2018-04-12 16:29:46 +02:00
2019-11-18 17:51:51 +01:00
2019-10-03 15:00:56 +02:00
2019-04-29 19:02:49 +02:00
2020-01-20 16:40:54 +01:00
2020-01-08 14:44:24 +01:00
2020-01-20 16:40:57 +01:00
2019-12-13 14:10:46 +01:00
2018-04-12 16:29:46 +02:00
2020-01-20 16:40:52 +01:00
2019-11-18 17:51:46 +01:00
2019-09-09 14:59:16 +02:00
2020-01-20 16:40:57 +01:00
2020-01-20 16:40:59 +01:00
2020-01-20 16:40:50 +01:00
2019-11-18 17:51:51 +01:00
2019-11-18 12:46:54 +01:00
2020-01-20 16:40:56 +01:00
2019-04-29 19:02:39 +02:00
2019-02-25 14:13:27 +01:00
2020-01-20 16:40:51 +01:00
2019-04-29 19:02:41 +02:00
2018-04-12 16:29:51 +02:00
2018-04-12 16:29:46 +02:00
2019-12-13 14:10:45 +01:00
2020-01-20 16:40:57 +01:00
2020-01-20 16:40:49 +01:00
2019-06-17 16:37:17 +02:00
2019-04-29 19:02:44 +02:00
2019-11-18 12:46:59 +01:00
2019-11-18 12:46:59 +01:00