Skip to content

Commit

Permalink
Merge pull request #12385 from simondeziel/faster-fses
Browse files Browse the repository at this point in the history
github: tune ext4 for speed and reclaim some space
  • Loading branch information
tomponline authored Oct 13, 2023
2 parents 81376bd + ad72da0 commit 3338982
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,31 @@ jobs:
backend: dir

steps:
- name: Performance tuning
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
# disable dpkg from calling sync()
echo "force-unsafe-io" | sudo tee /etc/dpkg/dpkg.cfg.d/force-unsafe-io
- name: Reclaim some space
run: |
# This was inspired from https://github.com/easimon/maximize-build-space
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 3338982

Please sign in to comment.