summaryrefslogtreecommitdiff
path: root/fs/gfs2
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2020-10-09 09:28:27 -0400
committerDavid Sterba <dsterba@suse.com>2021-02-08 22:58:59 +0100
commit88a777a6e5272106bdc96b1032d89b0ddc0e526f (patch)
tree717a835899027c6bf53cdf996adfa59244ca181a /fs/gfs2
parent2e294c60497f29ab8791f4b99f348b22d70dd3c3 (diff)
btrfs: implement space clamping for preemptive flushing
Starting preemptive flushing at 50% of available free space is a good start, but some workloads are particularly abusive and can quickly overwhelm the preemptive flushing code and drive us into using tickets. Handle this by clamping down on our threshold for starting and continuing to run preemptive flushing. This is particularly important for our overcommit case, as we can really drive the file system into overages and then it's more difficult to pull it back as we start to actually fill up the file system. The clamping is essentially 2^CLAMP, but we start at 1 so whatever we calculate for overcommit is the baseline. Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/gfs2')
0 files changed, 0 insertions, 0 deletions