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 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
7 changes: 5 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,7 @@ then
exit 1
else
echo "** Installing fio **"
yum install -y fio
yum install -y fio
fi
fi

Expand Down