n0derunner

    Microsoft diskspd Part 3. Oddities and FAQ

    Published: (Updated: ) in diskspd, , by .

    Tips and tricks for using diskspd especially useful for those familar with tools like fio

    Tip #1 The default OIO is “2” if no other parameters are specified

    8KB Random IO, no thread or OIO specified
    Resource monitor shows a Disk Q (OIO) of ~2 (1.9)

    Tip #2 The -o parameter is per-disk and per thread.

    8KB Random IO, 32 OIO (no thread count specified)
    Resource monitor shors a Disk Q (OIO) of ~32
    diskpd -o32 -t8

    Tip #3 Threads and OIO are per disk device.

    Using the above (-o32 -t8) with 4 disks will yield 1024 OIO (32*8*4) more than most physical HBA’s can deliver by default

    Tip #4 To keep total OIO constant across disk count use -O and -F

    In the case where we want to keep the total OIO constant at 128 but experiment with different numbers of disks use for example -O32 -F8 rather than -O32 -t8.

    Tip #5 Creating a file with -Zr does not fill the file.

    To create a file with non-null bytes, you will have to do a separate write phase after initial creation.

    Tip #6 The default fill pattern is highly compressible

    Tip #7 “Raw” devices are supported

    diskspd supports writing directly to the drive (e.g. without a filesystem) using the format #<disknum>

    diskspd writing direct to disk device

    Tip #8 Writing to a file/device without a time period will default to 10 seconds

    Anyone coming from e.g. fio might expect the write to fill the entire file.

    diskspd with no time parameter defaults to 10s
    diskspd writes only 3.5GB – not the entire 33GB

    Comments

    Leave a Comment