Skip to content

Commit 79af57b

Browse files
author
Chris Lumnah
authored
Update baseline scripts (#194)
* updated threads from 8 to 16 * adjusted block size to match rubrik * adjust IOType Logic * updated parameter positions
1 parent e147651 commit 79af57b

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

MISC/Run-diskspdTests.ps1

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,12 +95,15 @@ param (
9595
$DataFileSize = "5G",
9696

9797
[Parameter(Mandatory=$false,Position=5)]
98-
$BlockSize = "1M",
99-
98+
$ReadBlockSize = "1M",
99+
100100
[Parameter(Mandatory=$false,Position=6)]
101-
$Threads = 8,
101+
$WriteBlockSize = "4M",
102102

103103
[Parameter(Mandatory=$false,Position=7)]
104+
$Threads = 16,
105+
106+
[Parameter(Mandatory=$false,Position=8)]
104107
$ThrottleLimit = 2
105108
)
106109
#region Variables
@@ -114,7 +117,8 @@ function Start-DiskspdTest{
114117
$diskspdPath,
115118
$DataFileSize,
116119
$Threads,
117-
$BlockSize,
120+
$ReadBlockSize,
121+
$WriteBlockSize,
118122
$EntropySize,
119123
$OutPath
120124
)
@@ -164,7 +168,16 @@ function Start-DiskspdTest{
164168
#endregion
165169

166170
Write-Progress -Activity "Executing DiskSpd Tests..." -Status "Executing Test $TestNumber of $TestCount" -PercentComplete ( ($TestNumber / ($TestCount)) * 100 )
167-
$arguments = "-c$($DataFileSize) -w$($WriteTest) -t$($Threads) -d$($TestDuration) -o$($IODepth) -b$($BlockSize) -Z$($EntropySize) -W20 -Rxml -si -L $($Volume.Name)iotest.dat"
171+
switch ($IOType){
172+
"read" {
173+
$WriteTest = 0
174+
$arguments = "-c$($DataFileSize) -w$($WriteTest) -t$($Threads) -d$($TestDuration) -o$($IODepth) -b$($ReadBlockSize) -Z$($EntropySize) -W20 -Rxml -si -L $($Volume.Name)iotest.dat"
175+
}
176+
"write" {
177+
$WriteTest = 100
178+
$arguments = "-c$($DataFileSize) -w$($WriteTest) -t$($Threads) -d$($TestDuration) -o$($IODepth) -b$($WriteBlockSize) -Z$($EntropySize) -W20 -Rxml -si -L $($Volume.Name)iotest.dat"
179+
}
180+
}
168181

169182
# Write-Output "diskspd.exe $arguments"
170183

@@ -187,13 +200,13 @@ foreach ($Computer in $ComputerName){
187200
$InvokeCommand = @{
188201
ComputerName = $Computer
189202
ScriptBlock = ${Function:Start-DiskspdTest}
190-
ArgumentList = $Computer, $TestDuration,$diskspdPath, $DataFileSize, $Threads, $BlockSize, $EntropySize, $OutPath
203+
ArgumentList = $Computer, $TestDuration,$diskspdPath, $DataFileSize, $Threads, $ReadBlockSize, $WriteBlockSize, $EntropySize, $OutPath
191204
ThrottleLimit = $ThrottleLimit
192205
}
193206
}else{
194207
$InvokeCommand = @{
195208
ScriptBlock = ${Function:Start-DiskspdTest}
196-
ArgumentList = $Computer,$TestDuration,$diskspdPath, $DataFileSize, $Threads, $BlockSize, $EntropySize, $OutPath
209+
ArgumentList = $Computer,$TestDuration,$diskspdPath, $DataFileSize, $Threads, $ReadBlockSize, $WriteBlockSize, $EntropySize, $OutPath
197210
}
198211
}
199212
Invoke-Command @InvokeCommand

MISC/Run-iPerfTest.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ foreach($RubrikNode in $RubrikNodes){
6868
Write-Host "Running .\iperf.exe -c $($RubrikNode.ipAddress) -i 5 -t 60 -w 1M"
6969
.\iperf.exe -c $RubrikNode.ipAddress -i 5 -t 60 -w 1M > "iperf_$($HostName)_to_$($RubrikNode.ipAddress)_1MB_1_Thread.txt"
7070

71-
Write-Host "Running .\iperf.exe -c $($RubrikNode.ipAddress) -i 5 -t 60 -w 1M -P 8"
71+
Write-Host "Running .\iperf.exe -c $($RubrikNode.ipAddress) -i 5 -t 60 -w 1M -P 16"
7272
.\iperf.exe -c $RubrikNode.ipAddress -i 5 -t 60 -w 1M -P 8 > "iperf_$($HostName)_to_$($RubrikNode.ipAddress)_1MB_8_Threads.txt"
7373
}
7474
3 {
@@ -78,7 +78,7 @@ foreach($RubrikNode in $RubrikNodes){
7878
Write-Host "Running .\iperf3.exe -c $($RubrikNode.ipAddress) -i 5 -t 60 -w 1M"
7979
.\iperf3.exe -c $RubrikNode.ipAddress -i 5 -t 60 -w 1M > "iperf_$($HostName)_to_$($RubrikNode.ipAddress)_1MB_1_Thread.txt"
8080

81-
Write-Host "Running .\iperf3.exe -c $($RubrikNode.ipAddress) -i 5 -t 60 -w 1M -P 8 "
81+
Write-Host "Running .\iperf3.exe -c $($RubrikNode.ipAddress) -i 5 -t 60 -w 1M -P 16 "
8282
.\iperf3.exe -c $RubrikNode.ipAddress -i 5 -t 60 -w 1M -P 8 > "iperf_$($HostName)_to_$($RubrikNode.ipAddress)_1MB_8_Threads.txt"
8383
}
8484
}

0 commit comments

Comments
 (0)