Monday 28 June 2021

Do you want to know how your PC's storage performs? Here's how using the DiskSpd command-line tool for Windows 10.

In Windows 10, DiskSpd is an optional command-line tool that Microsoft has designed to test workload storage performance. Using this tool, you can quickly determine the performance of a drive to confirm if it's as fast as the manufacturer has advertised. Or you can compare the reads and writes of different hard drives to find out which is the fastest for specific workloads. For example, when you are building a server or workstation to host virtual machines, web hosting server, database, or you plan to run heavy input/output operations per second (IOPS) applications.

Whatever the reason might be, the DiskSpd includes many options that can help create a stress test to measure the maximum reads and writes performance a drive can handle, and the tool works on Windows 10 and Windows Server.

In this Windows 10 guide, we will walk you through the steps to get started benchmarking a hard drive performance with the DiskSpd command tool designed by Microsoft.

How to install DiskSpd on Windows 10

To install the DiskSpd command-line tool on Windows 10, use these steps:

  1. Open DiskSpd GitHub download page.
  2. Under the "Releases" section, click the DiskSpd.zip link.

  3. Save the file on the device.
  4. Open the zip folder.
  5. Click the Extract all option from the "Compressed Folder Tools" tab.

  6. Confirm a path to extract the files.

  7. Check the Show extracted files when complete option.
  8. Click the Extract button.

Once you complete the steps, you can start using the tool from Command Prompt.

How to use DiskSpd on Windows 10

Before proceeding with the performance test, it's recommended to close all running applications and ensure that the storage health is in good condition.

To run the DiskSpd tool with Command Prompt on Windows 10, use these steps:

  1. Open Start.
  2. Search for Command Prompt, right-click the top result, and select the Run as administrator option.
  3. Type the following command to navigate to the folder containing the DiskSpd tool and press Enter:

    cd \PATH\TO\TOOL

    In the command, make sure to specify the command to the destination of the DiskSpd.exe file.

    For example, this command opens the tool location inside the "Downloads" folder:

    cd C:\Users\username\Downloads\DiskSpd\amd64

    Quick note: You must use the version of the tool compatible with your installation. If you have a 64-bit version of Windows 10, you need to use the executable inside the "amd64" folder. Otherwise, if you are using the 32-bit version of the OS, then you should use the executable in the "x86" folder. If you do not know the system type of the device, you can check on Settings > System > About, under the "Device specifications" section.

  4. Type the following sample command to run the DiskSpd to test a read and write performance of a local hard drive on Windows 10 and press Enter:

    diskspd -d60 -W15 -C15 -c128M -t4 -o4 -b8k -L -r -Sh -w50 c:\disk-speed-test.dat

    Quick note: This tool is case-sensitive. As a result, you must type each parameter with the correct case for the command to run correctly. See the description below to understand the options we are using in the command. Also, in the command, do not forget to update the path and filename for the target data file as necessary.

  5. (Optional) Type the following command to run the command and export the results to a text file, and press Enter:

    diskspd -d60 -W15 -C15 -c128M -t4 -o4 -b8k -L -r -Sh -w50 c:\disk-speed-test.dat > c:\drive-test-results.txt

    Quick note: In the command, update the path and filename for the target data file and the file to store the benchmark results. Also, consider that when outputting the results to a text file, you won't see any results on the screen. Instead, the test results will be written to the text file.

  6. (Optional) Type the following command to test sequential reads and press Enter:

    diskspd -d60 -c128M -t4 -o4 -b8k -L -Sh -w0 -si c:\disk-speed-test.dat

  7. (Optional) Type the following command to test random reads and press Enter:

    diskspd -d60 -c128M -t4 -o4 -b8k -L -Sh -w0 -r c:\disk-speed-test.dat

  8. (Optional) Type the following command to test sequential writes and press Enter:

    diskspd -d60 -c128M -t4 -o4 -b8k -L -Sh -w100 -si c:\disk-speed-test.dat

  9. (Optional) Type the following command to test random writes and press Enter:

    diskspd -d60 -c128M -t4 -o4 -b8k -L -Sh -w100 -r c:\disk-speed-test.dat

Once you complete the steps, the DiskSpd tool will test the hard drive performance based on the parameters you specified in the command.

Here's a breakdown of the options we used in the first command (see step No. 5):

  • -d60 — Indicates how long the command will stress the hard drive in seconds.
  • -W15 — Set the warm-up time before the test begins.
  • -C15 — Set the cool-down time after the test.
  • -c128M — Customize the size of the file to create for testing.
  • -t4 — Indicates the number of threads to use. Usually, you can use one per available core in the processor.
  • -o4 — Specifies the number of outstanding I/O requests per target per thread.
  • -b8k — Defines the size of the block (default is 64K).
  • -L — Measures latency statistics.
  • -r — Produces random I/O. You can override this with the "-s" option.
  • -Sh — Disables software and hardware write caching.
  • -w50 — Specifies the percentage of write and read requests. Using 100 means that the command will write 100 percent of the time during the test. Using 0 means that the command will only perform 100 percent reads. For example, "-W50" will perform 50 percent writing and 50 percent reading. This is a balanced test, but you can change the number to adjust the test to fit your situation.
  • c:\disk-speed-test.dat — This is the path to store the target file for the test.

We are focusing on showing some of the command examples to get you familiar with the tool. You can always use the diskspd /? command to review all the options available to build a custom command to test the storage based on your situation.

If you plan to use the DiskSpd tool, consider that these are artificial tests, which means that they will never match the real-world workloads. However, the tests will give you a good idea of what to expect. You only need to be aware of the options you choose to match your workload as closely as possible.

How to review DiskSpd results on Windows 10

The time of completion will depend on the parameters you configured in the command. As you execute the command, you won't see any information on the screen until the tool finishes the test.

Once the performance test is complete, the output will print on the screen. The first part includes a summary of the options you specified in the command, including the duration, warm-up and cool-down times, latency statistics, and other details.

Then there's the section that includes the results of the test, which is divided into multiple tables. In the first part of the result, you will find how long the command took to complete the test, the number of threats and processors. The that follows includes a summary of the average processor load during the test.

The "Total IO" table shows the reads and writes per thread. The information offers the average performance in mebibytes per second. Or the operations (reads and writes) that were executed in a given period (second), and the total input/output (IO) also in a given period. Usually, the information of importance would be the total result from the MiB/s, which tells you the average reads and writes in mebibytes per second.

The "Read IO" table shows only the reads statistics per thread. The "Write IO" table shows only the writes statistics per thread. And the table at the bottom of the page includes information about the latency.

While these statistics can help understand how the drive performs, the information will make more sense if you already know what to expect. For example, knowing the reads and writes advertised by the manufacturer, you can determine whether the drive will live to the expectations. Or you can also rerun the DskSpd tool on different drives to determine which is the fastest.

More Windows 10 resources

For more helpful articles, coverage, and answers to common questions about Windows 10, visit the following resources:



0 comments:

Post a Comment

ShortNewsWeb

Blog Archive

Categories

'The Woks of Life' Reminded Me to Cook With All the Flavors I Love (1) 13 of the Best Spooky Episodes From (Mostly) Un-Spooky Shows (1) 1Password Now Generates QR Codes to Share Wifi Passwords (1) 2024 (15) 30 Movies and TV Shows That Are Basically 'Competence Porn' (1) 30 of the Most Obscenely Patriotic Movies Ever (1) 31 Spooky Movies to Watch Throughout October (1) 40 Netflix Original Series You Should Watch (1) Active Directory (1) Adobe's AI Video Generator Might Be as Good as OpenAI's (1) AIX (1) and Max Bundle Isn't a Terrible Deal (1) Apache (2) Apple Intelligence Is Running Late (1) Apple Intelligence's Instructions Reveal How Apple Is Directing Its New AI (1) August 18 (1) August 4 (1) August 5 (1) Backup & Restore (2) best practices (1) bleepingcomputer (45) Blink Security Cameras Are up to 68% Off Ahead of Prime Day (1) CentOS (1) Configure PowerPath on Solaris (1) Documents (2) Don't Rely on a 'Monte Carlo' Retirement Analysis (1) Eight Cleaning Products TikTok Absolutely Loves (1) Eight of the Best Methods for Studying so You Actually Retain the Information (1) Eight Unexpected Ways a Restaurant Can Mislead You (1) Elevate Your Boring Store-Bought Pretzels With This Simple Seasoning Technique (1) Everything Announced at Apple's iPhone 16 Event (1) file system (6) Find (1) Five Red Flags to Look for in Any Restaurant (1) Flappy Bird's Creator Has Nothing to Do With Its 'Remake' (1) Four Reasons to Walk Out of a Job Interview (1) Four Signs Thieves Are Casing Your House (1) gaming (1) Hackers Now Have Access to 10 Billion Stolen Passwords (1) How I Finally Organized My Closet With a Digital Inventory System (1) How to Cancel Your Amazon Prime Membership After Prime Day Is Over (1) How to Choose the Best Weightlifting Straps for Your Workout (1) How to Keep Squirrels Off Your Bird Feeders (1) How to Set Up Your Bedroom Like a Hotel Room (and Why You Should) (1) How to Take a Screenshot on a Mac (1) How to Take Full Control of Your Notifications on a Chromebook (1) Hulu (1) If You Got a Package You Didn't Order (1) If You Hate Running (1) Important Questions (17) Install and Configure PowerPath (1) interview questions for linux (2) Is ‘Ultra-Processed’ Food Really That Bad for You? (1) Is Amazon Prime Really Worth It? (1) It Might Be a Scam (1) July 14 (1) July 21 (1) July 28 (1) July 7 (1) June 30 (1) LifeHacker (99) Linux (36) Meta Releases Largest Open-Source AI Model Yet (1) Monitoring (3) music (688) My Favorite 14TB Hard Drive Is 25% Off Right Now (1) My Favorite Amazon Deal of the Day: Apple AirPods Max (2) My Favorite Amazon Deal of the Day: Google Nest Mesh WiFi Router (1) My Favorite Amazon Deal of the Day: Google Pixel 8 (1) My Favorite Amazon Deal of the Day: SHOKZ OpenMove Bone Conduction Headphones (1) My Favorite Tools for Managing Cords and Cables (1) Nagios (2) Newtorking (1) NFS (1) OMG! Ubuntu! (688) Oracle Linux (1) oracleasm (3) osnews (21) Password less communication (1) Patching (2) Poaching Is the Secret to Perfect Corn on the Cob (1) powerpath (1) Prioritize Your To-Do List By Imagining Rocks in a Jar (1) Red Hat Exam (1) register (44) Rsync (1) Safari’s ‘Distraction Control’ Will Help You Banish (Some) Pop Ups (1) Samba (1) Scrcpy (1) September 1 (1) September 15 (1) September 2 (1) September 22 (1) September 23 (1) September 30 (1) September 8 (1) Seven Home 'Upgrades' That Aren’t Worth the Money (1) ssh (1) Swift Shift Is the Window Management Tool Apple Should Have Built (1) System hardening (1) Target’s Answer to Prime Day Starts July 7 (1) Tech (9533) Tech CENTRAL (15) Technical stories (100) technpina (6) The 30 Best Movies of the 2020s so Far (and Where to Watch Them) (1) The 30 Best Sports Movies You Can Stream Right Now (1) The Best Deals on Robot Vacuums for Amazon’s Early Prime Day Sale (2) The Best Deals on Ryobi Tools During Home Depot's Labor Day Sale (1) The Best Early Prime Day Sales on Power Tools (1) The Best Movies and TV Shows to Watch on Netflix This Month (1) The Best Places to Go When You Don't Want to Be Around Kids (1) The Best Strategies for Lowering Your Credit Card Interest Rate (1) The Best Ways to Store All Your Bags and Purses (1) The Latest watchOS Beta Is Breaking Apple Watches (1) The New Disney+ (1) The Two Best Times of Year to Look for a New Job (1) These Meatball Shots Are My Favorite Football Season Snack (1) These Milwaukee Tools Are up to 69% off Right Now (1) This Google Nest Pro Is 30% Off for Prime Day (1) This Peanut Butter Latte Isn’t As Weird As It Sounds (1) This Tech Brand Will Get the Biggest Discounts During Prime Day (1) Three Quick Ways to Shorten a Necklace (1) Today’s Wordle Hints (and Answer) for Monday (4) Today’s Wordle Hints (and Answer) for Sunday (11) Try 'Pile Cleaning' When Your Mess Is Overwhelming (1) Try 'Rucking' (1) Ubuntu News (345) Ubuntu! (1) Unix (1) Use This App to Sync Apple Reminders With Your iPhone Calendar (1) veritas (2) Videos (1) Was ChatGPT Really Starting Conversations With Users? (1) Watch Out for These Red Flags in a Realtor Contract (1) Wayfair Is Having a '72-Hour Closeout' Sale to Compete With Prime Day (1) We Now Know When Google Will Roll Out Android 15 (1) What Is the 'Die With Zero' Movement (and Is It Right for You)? (1) What Not to Do When Training for a Marathon (1) What's New on Prime Video and Freevee in September 2024 (1) Windows (5) You Can Easily Add Words to Your Mac's Dictionary (1) You Can Get 'World War Z' on Sale for $19 Right Now (1) You Can Get a Membership to BJ's for Practically Free Right Now (1) You Can Get Beats Studio Buds+ on Sale for $100 Right Now (1) You Can Get Microsoft Visio 2021 Pro on Sale for $20 Right Now (1) You Can Get This 12-Port USB-C Hub on Sale for $90 Right Now (1) You Can Get This Roomba E5 Robot Vacuum on Sale for $170 Right Now (1) You Can Hire Your Own Personal HR Department (1) You Can Set Different Scrolling Directions for Your Mac’s Mouse and Trackpad (1)

Recent Comments

Popular Posts

Translate

My Blog List

Popular

System Admin Share

Total Pageviews