Skip to content
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

include 'fio' for filesystem performance benchmarking #4871

Merged
merged 2 commits into from
Oct 9, 2023
Merged
Show file tree
Hide file tree
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
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,12 @@ dist/host-openssl.tar.gz:
mkdir -p dist
tar cf - -C build packages/host/openssl | gzip > dist/host-openssl.tar.gz

dist/host-fio.tar.gz:
mkdir -p build/packages/host/fio
bin/save-manifest-assets.sh "host-fio" packages/host/fio/Manifest $(CURDIR)/build/packages/host/fio
mkdir -p dist
tar cf - -C build packages/host/fio | gzip > dist/host-fio.tar.gz

dist/host-longhorn.tar.gz:
mkdir -p build/packages/host/longhorn
bin/save-manifest-assets.sh "host-longhorn" packages/host/longhorn/Manifest $(CURDIR)/build/packages/host/longhorn
Expand Down
4 changes: 4 additions & 0 deletions packages/host/fio/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
yum fio
yum8 fio
yumol fio
apt fio
19 changes: 19 additions & 0 deletions scripts/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -720,6 +720,7 @@ function path_add() {

function install_host_dependencies() {
install_host_dependencies_openssl
install_host_dependencies_fio
}

function install_host_dependencies_openssl() {
Expand All @@ -740,6 +741,24 @@ function install_host_dependencies_openssl() {
install_host_archives "${DIR}/packages/host/openssl" openssl
}

function install_host_dependencies_fio() {
if commandExists "fio"; then
return
fi

if is_rhel_9_variant ; then
yum_ensure_host_package fio
return
fi

if [ "$AIRGAP" != "1" ] && [ -n "$DIST_URL" ]; then
local package="host-fio.tar.gz"
package_download "${package}"
tar xf "$(package_filepath "${package}")" --no-same-owner
fi
install_host_archives "${DIR}/packages/host/fio" fio
}

function maybe_read_kurl_config_from_cluster() {
# if KURL_INSTALL_DIRECTORY_FLAG is set, use the value from the flag
if [ -z "$KURL_INSTALL_DIRECTORY_FLAG" ]; then
Expand Down
Loading