Skip to content

Commit c8e181a

Browse files
authored
RHOAIENG-16076: tests(gha): mount the lvm volume with performance flags (#781)
I did not actually benchmark this, and the speed of the disk does not matter much, but since I found a guide and the suggested options look reasonable, then, why not?
1 parent 6477ed4 commit c8e181a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ci/cached-builds/gha_lvm_overlay.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ if [[ ${overprovision_lvm} == 'true' ]]; then
6464
else
6565
sudo mkfs.ext4 -Enodiscard -m0 "/dev/mapper/${VG_NAME}-buildlv"
6666
fi
67-
sudo mount "/dev/mapper/${VG_NAME}-buildlv" "${build_mount_path}"
67+
mkdir -p "${build_mount_path}"
68+
# https://www.alibabacloud.com/help/en/ecs/use-cases/mount-parameters-for-ext4-file-systems?spm=a2c63.p38356.help-menu-25365.d_5_10_12.48ce3be5RixoUB#8e740ed072m5o
69+
sudo mount -o defaults,noatime,nodiratime,nobarrier,nodelalloc,data=writeback "/dev/mapper/${VG_NAME}-buildlv" "${build_mount_path}"
6870
sudo chown -R "${build_mount_path_ownership}" "${build_mount_path}"
6971

7072
# if build mount path is a parent of $GITHUB_WORKSPACE, and has been deleted, recreate it

0 commit comments

Comments
 (0)