File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments