btrfsmaintenance/0002-sysconfig-reduce-default-balance-usage-thresholds-fa.patch
David Sterba 49700386d0 Accepting request 684484 from home:jeff_mahoney:branches:filesystems
- Document and adjust balance thresholds and periods (FATE#325529 jsc#SLE-3188).
  * README: document impact of balance + quota groups
  * sysconfig: reduce default balance usage thresholds
  * sysconfig: document using systemd.time(7) for frequency of operations
  * btrfsmaintenance-refresh-cron.sh: validate periods for cron-based systems
- Remove python dependency (FATE#326736 jsc#SLE-4130).
  * btrfs-defrag-plugin: remove dependency on zypp-plugin-python
- Added patches:
  * 0001-README-document-impact-of-balance-quota-groups.patch
  * 0002-sysconfig-reduce-default-balance-usage-thresholds-fa.patch
  * 0003-sysconfig-document-using-systemd.time-7-for-frequenc.patch
  * 0004-btrfsmaintenance-refresh-cron.sh-validate-periods-fo.patch
  * 0005-btrfs-defrag-plugin-remove-dependency-on-zypp-plugin.patch
- Added source:
  * btrfs-defrag-plugin.sh
- Removed patch:
  * python3-support-bsc1070322.diff

OBS-URL: https://build.opensuse.org/request/show/684484
OBS-URL: https://build.opensuse.org/package/show/filesystems/btrfsmaintenance?expand=0&rev=44
2019-03-18 17:09:34 +00:00

57 lines
2.1 KiB
Diff

From 194fd3a02f686737ae7d266d72d35a3418a5903b Mon Sep 17 00:00:00 2001
From: Jeff Mahoney <jeffm@suse.com>
Date: Fri, 25 Jan 2019 13:29:20 -0500
Subject: sysconfig: reduce default balance usage thresholds
References: fate#325529 jsc#SLE-3188
In the early days of btrfs, the only way to clean up empty block groups
was to perform a balance operation to coalesce block groups that were
mostly free and release the newly empty block groups.
Since then, btrfs cleans up empty block groups automatically so the need
for regular aggressive balancing has been reduced substantially. Since
workload shifts could still produce ENOSPC issues, we still want to
perform a periodic balance but we can do it much less aggressively.
---
sysconfig.btrfsmaintenance | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/sysconfig.btrfsmaintenance b/sysconfig.btrfsmaintenance
index 4088254..5a34c83 100644
--- a/sysconfig.btrfsmaintenance
+++ b/sysconfig.btrfsmaintenance
@@ -52,18 +52,18 @@ BTRFS_BALANCE_PERIOD="weekly"
## Path: System/File systems/btrfs
## Type: string
-## Default: "1 5 10 20 30 40 50"
+## Default: "5 10"
#
# The usage percent for balancing data block groups.
#
# Note: default values should not disturb normal work but may not reclaim
# enough block groups. If you observe that, add higher values but beware that
# this will increase IO load on the system.
-BTRFS_BALANCE_DUSAGE="1 5 10 20 30 40 50"
+BTRFS_BALANCE_DUSAGE="5 10"
## Path: System/File systems/btrfs
## Type: string
-## Default: "1 5 10 20 30"
+## Default: "3"
#
# The usage percent for balancing metadata block groups. The values are also
# used in case the filesystem has mixed blockgroups.
@@ -71,7 +71,7 @@ BTRFS_BALANCE_DUSAGE="1 5 10 20 30 40 50"
# Note: default values should not disturb normal work but may not reclaim
# enough block groups. If you observe that, add higher values but beware that
# this will increase IO load on the system.
-BTRFS_BALANCE_MUSAGE="1 5 10 20 30"
+BTRFS_BALANCE_MUSAGE="3"
## Path: System/File systems/btrfs
## Type: string
--
2.16.4