Skip to content

work around auto_da_alloc heuristic in CI runners #82099

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -80,6 +80,9 @@ jobs:
- name: collect CPU statistics
run: src/ci/scripts/collect-cpu-stats.sh
if: success() && !env.SKIP_JOB
- name: remount root filesystem
run: src/ci/scripts/tune-rootfs.sh
if: success() && !env.SKIP_JOB
- name: show the current environment
run: src/ci/scripts/dump-environment.sh
if: success() && !env.SKIP_JOB
@@ -441,6 +444,9 @@ jobs:
- name: collect CPU statistics
run: src/ci/scripts/collect-cpu-stats.sh
if: success() && !env.SKIP_JOB
- name: remount root filesystem
run: src/ci/scripts/tune-rootfs.sh
if: success() && !env.SKIP_JOB
- name: show the current environment
run: src/ci/scripts/dump-environment.sh
if: success() && !env.SKIP_JOB
@@ -548,6 +554,9 @@ jobs:
- name: collect CPU statistics
run: src/ci/scripts/collect-cpu-stats.sh
if: success() && !env.SKIP_JOB
- name: remount root filesystem
run: src/ci/scripts/tune-rootfs.sh
if: success() && !env.SKIP_JOB
- name: show the current environment
run: src/ci/scripts/dump-environment.sh
if: success() && !env.SKIP_JOB
4 changes: 4 additions & 0 deletions src/ci/github-actions/ci.yml
Original file line number Diff line number Diff line change
@@ -137,6 +137,10 @@ x--expand-yaml-anchors--remove:
run: src/ci/scripts/collect-cpu-stats.sh
<<: *step

- name: remount root filesystem
run: src/ci/scripts/tune-rootfs.sh
<<: *step

- name: show the current environment
run: src/ci/scripts/dump-environment.sh
<<: *step
15 changes: 15 additions & 0 deletions src/ci/scripts/tune-rootfs.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -euo pipefail
IFS=$'\n\t'

source "$(cd "$(dirname "$0")" && pwd)/../shared.sh"

if isLinux && [[ $(findmnt -n /) =~ "ext4" ]] ; then
# noauto_da_alloc since auto_da_alloc causes sync IO for some common file creation patters
# lazytime avoids sync IO when (rel)atime updates are applied
# nodiscard because the ext4 doesn't support async discard (unlike xfs or btrfs)
sudo mount -oremount,lazytime,nodiscard,noauto_da_alloc /

mount
fi