Skip to content

Commit 0e153ae

Browse files
author
Manika Dhiman
committed
added feedback
1 parent 21d9d34 commit 0e153ae

File tree

2 files changed

+23
-36
lines changed

2 files changed

+23
-36
lines changed

azure-stack/hci/manage/diskspd-overview.md

Lines changed: 23 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -23,57 +23,44 @@ Now you know what DISKSPD is, but when should you use it? DISKSPD has a difficul
2323

2424
## Quick start: install and run DISKSPD
2525

26-
Without further ado, let’s get started:
26+
To install and run DISKSPD, open PowerShell as an admin on your management PC, and then follow these steps:
2727

28-
1. From your management PC, open PowerShell as an administrator to connect to the target computer that you want to test using DISKSPD, and then type the following command and press Enter.
29-
30-
```powershell
31-
Enter-PSSession -ComputerName <TARGET_COMPUTER_NAME>
32-
```
33-
34-
In this example, we're running a virtual machine (VM) called “node1.”
35-
36-
1. To download the DISKSPD tool, run the following commands:
28+
1. To download and expand the ZIP file for the DISKSPD tool, run the following commands:
3729

3830
```powershell
3931
# Define the ZIP URL and the full path to save the file, including the filename
40-
$zipUrl = "https://github.com/microsoft/diskspd/releases/latest/download/DiskSpd.zip"
41-
$zipPath = "C:\DISKSPD\DiskSpd.zip"
32+
$zipName = "DiskSpd.zip"
33+
$zipPath = "C:\DISKSPD"
34+
$zipFullName = Join-Path $zipPath $zipName
35+
$zipUrl = "https://github.com/microsoft/diskspd/releases/latest/download/" +$zipName
36+
4237
# Ensure the target directory exists, if not then create
43-
if (-Not (Test-Path "C:\DISKSPD")) {
44-
New-Item -Path "C:\DISKSPD" -ItemType Directory
38+
if (-Not (Test-Path $zipPath)) {
39+
New-Item -Path $zipPath -ItemType Directory | Out-Null
4540
}
46-
# Download the ZIP file
47-
Invoke-RestMethod -Uri $zipUrl -OutFile $zipPath
48-
```
49-
50-
1. To unzip the downloaded file, run the following command:
41+
# Download and expand the ZIP file
42+
Invoke-RestMethod -Uri $zipUrl -OutFile $zipFullName
43+
Expand-Archive -Path $zipFullName -DestinationPath $zipPath
44+
45+
1. To add the DISKSPD directory to your `$PATH` environment variable, run the following command:
5146
5247
```powershell
53-
Expand-Archive -Path $zipPath -DestinationPath "C:\DISKSPD"
48+
$diskspdPath = Join-Path $zipPath $env:PROCESSOR_ARCHITECTURE
49+
if ($env:path -split ';' -notcontains $diskspdPath) {
50+
$env:path += ";" + $diskspdPath
51+
}
5452
```
5553
56-
1. Change directory to the DISKSPD directory and locate the appropriate executable file for the Windows operating system that the target computer is running.
57-
58-
In this example, we're using the amd64 version.
59-
60-
> [!NOTE]
61-
> You can also download the DISKSPD tool directly from the [GitHub repository](https://github.com/microsoft/diskspd) that contains the open-source code, and a wiki page that details all the parameters and specifications. In the repository, under **Releases**, select the link to automatically download the ZIP file.
62-
63-
In the ZIP file, you'll see three subfolders: amd64 (64-bit systems), x86 (32-bit systems), and ARM64 (ARM systems). These options enable you to run the tool in every Windows client or server version.
64-
65-
:::image type="content" source="media/diskspd-overview/download-directory.png" alt-text="Directory to download the DISKSPD .zip file." lightbox="media/diskspd-overview/download-directory.png":::
66-
67-
1. Run DISKSPD with the following PowerShell command. Replace everything inside the square brackets, including the brackets themselves with your appropriate settings.
54+
1. Run DISKSPD with the following PowerShell command. Replace square brackets with your appropriate settings.
6855
6956
```powershell
70-
.\[INSERT_DISKSPD_PATH] [INSERT_SET_OF_PARAMETERS] [INSERT_CSV_PATH_FOR_TEST_FILE] > [INSERT_OUTPUT_FILE.txt]
57+
diskspd [INSERT_SET_OF_PARAMETERS] [INSERT_CSV_PATH_FOR_TEST_FILE] > [INSERT_OUTPUT_FILE.txt]
7158
```
7259
7360
Here's an example command that you can run:
7461
7562
```powershell
76-
.\diskspd -t2 -o32 -b4k -r4k -w0 -d120 -Sh -D -L -c5G C:\ClusterStorage\test01\targetfile\IO.dat > test01.txt
63+
diskspd -t2 -o32 -b4k -r4k -w0 -d120 -Sh -D -L -c5G C:\ClusterStorage\test01\targetfile\IO.dat > test01.txt
7764
```
7865
7966
> [!NOTE]
@@ -227,8 +214,8 @@ For a three-node, three-way mirrored situation, write operations always make a n
227214
228215
Here's an example:
229216
230-
- **Running on local node:** .\DiskSpd-2.0.21a\amd64\diskspd.exe -t4 -o32 -b4k -r4k -w0 -Sh -D -L C:\ClusterStorage\test01\targetfile\IO.dat
231-
- **Running on nonlocal node:** .\DiskSpd-2.0.21a\amd64\diskspd.exe -t4 -o32 -b4k -r4k -w0 -Sh -D -L C:\ClusterStorage\test01\targetfile\IO.dat
217+
- **Running on local node:** diskspd.exe -t4 -o32 -b4k -r4k -w0 -Sh -D -L C:\ClusterStorage\test01\targetfile\IO.dat
218+
- **Running on nonlocal node:** diskspd.exe -t4 -o32 -b4k -r4k -w0 -Sh -D -L C:\ClusterStorage\test01\targetfile\IO.dat
232219
233220
From this example, you can clearly see in the results of the following figure that latency decreased, IOPS increased, and throughput increased when the coordinator node owns the CSV.
234221
Binary file not shown.

0 commit comments

Comments
 (0)