mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 19:36:04 +08:00
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 51fc48896c)
Reviewed-by: Toni Saario <toni.saario@qt.io>
This commit is contained in:
9
coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-btrfs-balance.sh
Executable file
9
coin/provisioning/qtci-linux-SLES-15-x86_64/01-disable-btrfs-balance.sh
Executable file
@@ -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
|
||||
Reference in New Issue
Block a user