Skip to content

Commit edae5e8

Browse files
author
Chris Lumnah
committed
adjust IOType Logic
1 parent 9f4b1af commit edae5e8

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

MISC/Run-diskspdTests.ps1

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -158,14 +158,8 @@ function Start-DiskspdTest{
158158
foreach ($Volume in $Volumes){
159159
foreach ($IOType in $IOTypes){
160160
switch ($IOType){
161-
"read" {
162-
$WriteTest = 0
163-
$arguments = "-c$($DataFileSize) -w$($WriteTest) -t$($Threads) -d$($TestDuration) -o$($IODepth) -b$($ReadBlockSize) -Z$($EntropySize) -W20 -Rxml -si -L $($Volume.Name)iotest.dat"
164-
}
165-
"write" {
166-
$WriteTest = 100
167-
$arguments = "-c$($DataFileSize) -w$($WriteTest) -t$($Threads) -d$($TestDuration) -o$($IODepth) -b$($WriteBlockSize) -Z$($EntropySize) -W20 -Rxml -si -L $($Volume.Name)iotest.dat"
168-
}
161+
"read" {$WriteTest = 0}
162+
"write" {$WriteTest = 100}
169163
}
170164
foreach($IODepth in $IODepths){
171165
#region timestamp output file
@@ -174,7 +168,16 @@ function Start-DiskspdTest{
174168
#endregion
175169

176170
Write-Progress -Activity "Executing DiskSpd Tests..." -Status "Executing Test $TestNumber of $TestCount" -PercentComplete ( ($TestNumber / ($TestCount)) * 100 )
177-
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+
}
178181

179182
# Write-Output "diskspd.exe $arguments"
180183

0 commit comments

Comments
 (0)