-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update IOR tests * add IOR config files * add IOR config files * rename sc and pvc for IOR * ior test * update IOR scripts * Add script read-ior-output.sh * remove unnecessary ml lables
- Loading branch information
Showing
14 changed files
with
319 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2022 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# | ||
# Shell script to run MPI/IOR cluster | ||
# | ||
repo="$(git rev-parse --show-toplevel)/test/ior" | ||
|
||
resultsPath="$repo" | ||
iorConfigArray=$(ls $repo/test-config-files) | ||
clientPerNodeArray=(64 128) | ||
|
||
for config in $iorConfigArray | ||
do | ||
for clientPerNode in ${clientPerNodeArray[@]} | ||
do | ||
fileName=${config}_${clientPerNode} | ||
echo $fileName | ||
|
||
files=$(ls $resultsPath/results*/$fileName) | ||
for f in $files | ||
do | ||
str=$(cat $f | tail -n 3 | head -n 1) | ||
strArray=($str) | ||
write=${strArray[3]} | ||
|
||
str=$(cat $f | tail -n 2 | head -n 1) | ||
strArray=($str) | ||
read=${strArray[3]} | ||
|
||
echo -e $write ' \t ' $read | ||
done | ||
done | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
#!/bin/bash | ||
|
||
# Copyright 2022 The Kubernetes Authors. | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# | ||
# Shell script to run MPI/IOR cluster | ||
# | ||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
|
||
repo="$(git rev-parse --show-toplevel)/test/ior" | ||
|
||
skipSetup=${1:-"false"} | ||
|
||
if [[ "$skipSetup" == "false" ]]; | ||
then | ||
echo "Removing IOR pods" | ||
kubectl delete -f $repo/pod.yaml --ignore-not-found | ||
sleep 15 | ||
|
||
echo "Creating IOR pods" | ||
kubectl apply -f $repo/pod.yaml | ||
sleep 15 | ||
|
||
echo "Setup IOR pods" | ||
$repo/setup_ior_aks.sh | ||
sleep 15 | ||
fi | ||
|
||
pod1=$(kubectl get po --no-headers | grep "ior" | awk '{print $1}' | head -n 1) | ||
pod2=$(kubectl get po --no-headers | grep "ior" | awk '{print $1}' | tail -n 1) | ||
|
||
resultsDirectory="results$(date +%s)" | ||
mkdir $repo/$resultsDirectory | ||
|
||
echo "$(date -u) Starting IOR execution, find test results in directory $repo/$resultsDirectory" | ||
|
||
clientPerNode=64 | ||
echo "$(date -u) executing IOR cases for $clientPerNode client per node" | ||
|
||
sleep 60 | ||
testcase="bw_n_to_n_rnd_buffered" | ||
echo "$(date -u) executing $testcase" | ||
kubectl exec -it $pod1 -- mpirun --hostfile /app/host_file --map-by node -np $clientPerNode ior -o /azurelustre/test_file -f /app/$testcase 2>&1 >> "$repo/$resultsDirectory/${testcase}_${clientPerNode}" | ||
|
||
sleep 60 | ||
testcase="bw_n_to_n_rnd_direct" | ||
echo "$(date -u) executing $testcase" | ||
kubectl exec -it $pod2 -- mpirun --hostfile /app/host_file --map-by node -np $clientPerNode ior -o /azurelustre/test_file -f /app/$testcase 2>&1 >> "$repo/$resultsDirectory/${testcase}_${clientPerNode}" | ||
|
||
sleep 60 | ||
testcase="bw_n_to_n_seq_buffered" | ||
echo "$(date -u) executing $testcase" | ||
kubectl exec -it $pod1 -- mpirun --hostfile /app/host_file --map-by node -np $clientPerNode ior -o /azurelustre/test_file -f /app/$testcase 2>&1 >> "$repo/$resultsDirectory/${testcase}_${clientPerNode}" | ||
|
||
sleep 60 | ||
testcase="bw_n_to_n_seq_direct" | ||
echo "$(date -u) executing $testcase" | ||
kubectl exec -it $pod2 -- mpirun --hostfile /app/host_file --map-by node -np $clientPerNode ior -o /azurelustre/test_file -f /app/$testcase 2>&1 >> "$repo/$resultsDirectory/${testcase}_${clientPerNode}" | ||
|
||
sleep 60 | ||
testcase="iops_n_to_1_rnd_buffered" | ||
echo "$(date -u) executing $testcase" | ||
kubectl exec -it $pod1 -- mpirun --hostfile /app/host_file --map-by node -np $clientPerNode ior -o /azurelustre/test_file -f /app/$testcase 2>&1 >> "$repo/$resultsDirectory/${testcase}_${clientPerNode}" | ||
|
||
sleep 60 | ||
testcase="iops_n_to_1_rnd_direct" | ||
echo "$(date -u) executing $testcase" | ||
kubectl exec -it $pod2 -- mpirun --hostfile /app/host_file --map-by node -np $clientPerNode ior -o /azurelustre/test_file -f /app/$testcase 2>&1 >> "$repo/$resultsDirectory/${testcase}_${clientPerNode}" | ||
|
||
sleep 60 | ||
testcase="iops_n_to_n_rnd_buffered" | ||
echo "$(date -u) executing $testcase" | ||
kubectl exec -it $pod1 -- mpirun --hostfile /app/host_file --map-by node -np $clientPerNode ior -o /azurelustre/test_file -f /app/$testcase 2>&1 >> "$repo/$resultsDirectory/${testcase}_${clientPerNode}" | ||
|
||
sleep 60 | ||
testcase="iops_n_to_n_rnd_direct" | ||
echo "$(date -u) executing $testcase" | ||
kubectl exec -it $pod2 -- mpirun --hostfile /app/host_file --map-by node -np $clientPerNode ior -o /azurelustre/test_file -f /app/$testcase 2>&1 >> "$repo/$resultsDirectory/${testcase}_${clientPerNode}" | ||
|
||
echo "$(date -u) Finished IOR execution" |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
IOR START | ||
api=POSIX | ||
blockSize=4g | ||
filePerProc=1 | ||
fsync=1 | ||
interTestDelay=5 | ||
multiFile=1 | ||
randomOffset=1 | ||
readFile=1 | ||
repetitions=3 | ||
transferSize=4m | ||
useO_DIRECT=0 | ||
writeFile=1 | ||
RUN | ||
IOR STOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
IOR START | ||
api=POSIX | ||
blockSize=4g | ||
filePerProc=1 | ||
fsync=1 | ||
interTestDelay=5 | ||
multiFile=1 | ||
randomOffset=1 | ||
readFile=1 | ||
repetitions=3 | ||
transferSize=4m | ||
useO_DIRECT=1 | ||
writeFile=1 | ||
RUN | ||
IOR STOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
IOR START | ||
api=POSIX | ||
blockSize=4g | ||
filePerProc=1 | ||
fsync=1 | ||
interTestDelay=5 | ||
multiFile=1 | ||
readFile=1 | ||
repetitions=3 | ||
transferSize=4m | ||
useO_DIRECT=0 | ||
writeFile=1 | ||
RUN | ||
IOR STOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
IOR START | ||
api=POSIX | ||
blockSize=4g | ||
filePerProc=1 | ||
fsync=1 | ||
interTestDelay=5 | ||
multiFile=1 | ||
readFile=1 | ||
repetitions=3 | ||
transferSize=4m | ||
useO_DIRECT=1 | ||
writeFile=1 | ||
RUN | ||
IOR STOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
IOR START | ||
api=POSIX | ||
blockSize=4m | ||
filePerProc=0 | ||
fsync=1 | ||
interTestDelay=5 | ||
multiFile=1 | ||
randomOffset=1 | ||
readFile=1 | ||
repetitions=3 | ||
transferSize=4k | ||
useO_DIRECT=0 | ||
writeFile=1 | ||
RUN | ||
IOR STOP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
IOR START | ||
api=POSIX | ||
blockSize=4m | ||
filePerProc=0 | ||
fsync=1 | ||
interTestDelay=5 | ||
multiFile=1 | ||
randomOffset=1 | ||
readFile=1 | ||
repetitions=3 | ||
transferSize=4k | ||
useO_DIRECT=1 | ||
writeFile=1 | ||
RUN | ||
IOR STOP |
Oops, something went wrong.