Skip to content

Commit 9f4b1af

Browse files
author
Chris Lumnah
committed
adjusted block size to match rubrik
1 parent 176d056 commit 9f4b1af

File tree

1 file changed

+18
-8
lines changed

1 file changed

+18
-8
lines changed

MISC/Run-diskspdTests.ps1

Lines changed: 18 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,13 @@ param (
9595
$DataFileSize = "5G",
9696

9797
[Parameter(Mandatory=$false,Position=5)]
98-
$BlockSize = "1M",
98+
$ReadBlockSize = "1M",
99+
100+
[Parameter(Mandatory=$false,Position=5)]
101+
$WriteBlockSize = "4M",
99102

100103
[Parameter(Mandatory=$false,Position=6)]
101-
$Threads = 8,
104+
$Threads = 16,
102105

103106
[Parameter(Mandatory=$false,Position=7)]
104107
$ThrottleLimit = 2
@@ -114,7 +117,8 @@ function Start-DiskspdTest{
114117
$diskspdPath,
115118
$DataFileSize,
116119
$Threads,
117-
$BlockSize,
120+
$ReadBlockSize,
121+
$WriteBlockSize,
118122
$EntropySize,
119123
$OutPath
120124
)
@@ -154,8 +158,14 @@ function Start-DiskspdTest{
154158
foreach ($Volume in $Volumes){
155159
foreach ($IOType in $IOTypes){
156160
switch ($IOType){
157-
"read" {$WriteTest = 0}
158-
"write" {$WriteTest = 100}
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+
}
159169
}
160170
foreach($IODepth in $IODepths){
161171
#region timestamp output file
@@ -164,7 +174,7 @@ function Start-DiskspdTest{
164174
#endregion
165175

166176
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"
177+
168178

169179
# Write-Output "diskspd.exe $arguments"
170180

@@ -187,13 +197,13 @@ foreach ($Computer in $ComputerName){
187197
$InvokeCommand = @{
188198
ComputerName = $Computer
189199
ScriptBlock = ${Function:Start-DiskspdTest}
190-
ArgumentList = $Computer, $TestDuration,$diskspdPath, $DataFileSize, $Threads, $BlockSize, $EntropySize, $OutPath
200+
ArgumentList = $Computer, $TestDuration,$diskspdPath, $DataFileSize, $Threads, $ReadBlockSize, $WriteBlockSize, $EntropySize, $OutPath
191201
ThrottleLimit = $ThrottleLimit
192202
}
193203
}else{
194204
$InvokeCommand = @{
195205
ScriptBlock = ${Function:Start-DiskspdTest}
196-
ArgumentList = $Computer,$TestDuration,$diskspdPath, $DataFileSize, $Threads, $BlockSize, $EntropySize, $OutPath
206+
ArgumentList = $Computer,$TestDuration,$diskspdPath, $DataFileSize, $Threads, $ReadBlockSize, $WriteBlockSize, $EntropySize, $OutPath
197207
}
198208
}
199209
Invoke-Command @InvokeCommand

0 commit comments

Comments
 (0)