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

Update storage-benchmark #88

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Changes from 2 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
11 changes: 9 additions & 2 deletions storage-benchmark
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ fi

RAMGB=`grep MemTotal /proc/meminfo | awk '{s+=$2} END {print s / 1000000}'`
# Convert to integer
RAMGB=`printf "%.0f\n" "$RAMGB"`
# The current way gives an error: not a numbe
# RAMGB=`printf "%.0f\n" "$RAMGB"`
# alternative tested on RHEL 8:
RAMGB=`echo $RAMGB|awk -F . '{print $1}'`
jgkootstra marked this conversation as resolved.
Show resolved Hide resolved
FILEGB="$(($RAMGB * 2))"
TESTDIRECTORY=$TESTPATH/storage-benchmark

Expand Down Expand Up @@ -111,7 +114,11 @@ then
exit 1
else
echo "** Installing fio **"
yum install -y fio
# this fails if foreman-maintain packages lock if applied
# yum install -y fio
#
# alternative:
foreman-maintain packages install fio -y
jgkootstra marked this conversation as resolved.
Show resolved Hide resolved
fi
fi

Expand Down