Skip to content

Commit

Permalink
Merge pull request #87 from pablomh/patch-2
Browse files Browse the repository at this point in the history
Let `fio` deal with the IO file removal
  • Loading branch information
pablomh authored Mar 25, 2024
2 parents 0a9f32a + 0859cab commit 5ef059a
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions storage-benchmark
Original file line number Diff line number Diff line change
Expand Up @@ -38,22 +38,13 @@ testlocation(){
echo ""
echo "************* Running READ test via fio:"
echo ""
fio --name=read-test --rw=read --size="$FILEGB"G --directory=$TESTDIRECTORY
echo ""
echo "************* Removing test files."
rm -f "$TESTDIRECTORY"/*
fio --name=read-test --rw=read --size="$FILEGB"G --directory=$TESTDIRECTORY --unlink=1
echo ""
echo "************* Running WRITE test via fio:"
fio --name=write-test --rw=write --size="$FILEGB"G --directory=$TESTDIRECTORY
echo ""
echo "************* Removing test files."
rm -f "$TESTDIRECTORY"/*
fio --name=write-test --rw=write --size="$FILEGB"G --directory=$TESTDIRECTORY --unlink=1
echo ""
echo "************* Running Random READ/WRITE test via fio:"
fio --name=randrw-test --rw=randrw --size="$FILEGB"G --directory=$TESTDIRECTORY --rwmixread=80
echo ""
echo "************* Removing test files."
rm -f "$TESTDIRECTORY"/*
fio --name=randrw-test --rw=randrw --size="$FILEGB"G --directory=$TESTDIRECTORY --rwmixread=80 --unlink=1
echo ""
echo "Test complete! There is still a directory located : $TESTDIRECTORY that you"
echo "will need to remove to run this test again."
Expand Down

0 comments on commit 5ef059a

Please sign in to comment.