Skip to content

Commit

Permalink
RHOAIENG-16076: tests(gha): mount the lvm volume with performance fla…
Browse files Browse the repository at this point in the history
…gs (#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?
  • Loading branch information
jiridanek authored Nov 25, 2024
1 parent 6477ed4 commit c8e181a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ci/cached-builds/gha_lvm_overlay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ if [[ ${overprovision_lvm} == 'true' ]]; then
else
sudo mkfs.ext4 -Enodiscard -m0 "/dev/mapper/${VG_NAME}-buildlv"
fi
sudo mount "/dev/mapper/${VG_NAME}-buildlv" "${build_mount_path}"
mkdir -p "${build_mount_path}"
# 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
sudo mount -o defaults,noatime,nodiratime,nobarrier,nodelalloc,data=writeback "/dev/mapper/${VG_NAME}-buildlv" "${build_mount_path}"
sudo chown -R "${build_mount_path_ownership}" "${build_mount_path}"

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

0 comments on commit c8e181a

Please sign in to comment.