Skip to content

Commit

Permalink
github: tune ext4 for speed and reclaim some space
Browse files Browse the repository at this point in the history
ceph's mon was complaining about low free space in the
rootfs.

Signed-off-by: Simon Deziel <simon.deziel@canonical.com>
  • Loading branch information
simondeziel committed Oct 13, 2023
1 parent bc4d31a commit 014d4af
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,27 @@ jobs:
name: Code tests
runs-on: ubuntu-22.04
steps:
- name: Tune ext4 for performance
run: |
set -eux
# optimize ext4 FSes for performance, not reliability
for fs in $(findmnt --noheading --type ext4 --list --uniq | awk '{print $1}'); do
# nombcache and data=writeback cannot be changed on remount
sudo mount -o remount,noatime,barrier=0,commit=6000 "${fs}"
done
- name: Reclaim some space
run: |
set -eux
df -h /
# dotnet
sudo rm -rf /usr/share/dotnet
# android
sudo rm -rf /usr/local/lib/android
# haskell
sudo rm -rf /opt/ghc
df -h /
- name: Checkout
uses: actions/checkout@v4

Expand Down

0 comments on commit 014d4af

Please sign in to comment.