DiskReadWrite

Description

  • This utility can be used for various debugging purposes.
  • The main purpose is to measure the performance of the hard disk reads to justify backup speeds.
  • We can also use this to read shares and measure the network read performance and network write performance.

Usage

  1. Run the DiskReadWrite utility:

    Navigate to the <software installation path>\Base folder, and then double-click the DiskReadWrite.exe file.

  2. Type DiskReadWrite with the following options:

    DiskReadWrite [-BkRead] [-BkReadWrite][-Read] [-ReadWrite] [Write]
    [-COL <Collect File>] [-DIRLIST <DirList File>]
    [-RANDOM]
    [-READBLOCKSIZE <blockSizeBytes>]
    [-WRITEBLOCKSIZE <blockSizeBytes>]
    [-WRITEBLOCKCOUNT <blockCounts>]
    [-WRITEFILECOUNT <blockCounts>]
    [-WRITEFILEPREFIX <FileNamePrefix>]
    [-PATH <Path>] [-WRITEPATH <Path>]
    [-USER <User Name>] [-DOMAIN <Domain>] [-PASSWORD <Password>]
    [-VERBOSE]

Method Options

Option Description
-BkRead Performing only read test with given items using Backup-Read API
-BkReadWrite Performing read and write test with given items using Backup-Read and Write APIs
-Read Performing only read test with given items using Win32-file-IO API
-ReadWrite Performing read and write test with given items using Win32-file-IO APIs
-Write Performing only write test. Writing given numbers of blocks each with given size into given numbers of file

Read Method

-BkRead and -Read

The following commands are available for  the -BkRead and -Read options.

Command Description
-COL Use the given collect file generated by the software
-PATH Read the directory path recursively
-DIRLIST Use the list of drives given in the file
-READBLOCKSIZE Size in bytes for each read
-RANDOM Read the blocks from Random positions using file-seek

-BkReadWrite and -ReadWrite

The following commands are available for  the -BkReadWrite and -ReadWrite options.

Command Description
-PATH Read the directory path recursively
-WRITEPATH Destination directory to write to
-READBLOCKSIZE Size in bytes for each read
-RANDOM Reading and writing the blocks from/into Random positions using file-seek

-Write

The following commands are available for  the -Write option.

Command Description
-WRITEBLOCKSIZE Bytes used per write call
-WRITEBLOCKCOUNT Number of blocks to write per file
-WRITEFILECOUNT Total number of files to be generated
-WRITEFILEPREFIX Files Name. A counter will be appended to the end of name for each file
-RANDOM Writing the blocks from/into Random positions using file-seek

User Information

Parameter Description
-USER Logon user name
-DOMAIN Domain name
-PASSWORD Logon password

Miscellaneous Information

Command Description
-VERBOSE Verbose mode

Examples

  • This example will read all the files and folders on d:\ using the BackupRead method and it will display only the summary part.

    DiskReadWrite -BkRead -PATH d:\

  • This example would copy from d:\test to \\somemachine\share\test using the BackupRead method and it displays the throughput in verbose mode.

    DiskReadWrite -BkReadWrite -PATH d:\test -WRITEPATH \\somemachine\share\test -VERBOSE