diff options
author | Heikki Halmet <heikki.halmet@qt.io> | 2020-09-15 14:09:40 +0300 |
---|---|---|
committer | Heikki Halmet <heikki.halmet@qt.io> | 2020-09-24 11:26:14 +0300 |
commit | b7f18fd9a163f8b34b816808461aa791ef0c46f9 (patch) | |
tree | 56206b2b152177d4e91f3a2529e27325a831a16e | |
parent | 3240e1713d348599cfabd7deda19079f5629d793 (diff) |
Provisioning: Disable btrfs balance jobs
Btrfs use lot's of CPU while running
Task-number: QTQAINFRA-3919
Change-Id: I08b89b57c92d90f752dde76375711e61ed173c2c
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
(cherry picked from commit 51fc48896c058198cc20d83b72a2a6373be6a22f)
-rwxr-xr-x | coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-btrfs-balance.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-btrfs-balance.sh b/coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-btrfs-balance.sh new file mode 100755 index 00000000..a0126cb2 --- /dev/null +++ b/coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-btrfs-balance.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +set -ex + +# Stops the balance job if one is running at the moment. This is a very expensive thing to run and causes major slow down. +sudo systemctl stop btrfs-balance.service + +# This will disable btrfs balance job scheduling. +sudo sed -i 's/BTRFS_BALANCE_PERIOD="weekly"/BTRFS_BALANCE_PERIOD="none"/g' /etc/sysconfig/btrfsmaintenance |