コンテンツにスキップ

DiskSpd

https://github.com/microsoft/diskspd

DISKSPD is a storage load generator / performance test tool from the Windows/Windows Server and Cloud Server Infrastructure Engineering teams

Setup

$ sudo apt install -y build-essential libaio-dev
$ git clone https://github.com/microsoft/diskspd-for-linux.git
$ cd diskspd-for-linux/
$ make
$ mkdir ~/bin
$ cp bin/diskspd ~/bin/
$ source ~/.bashrc

Example

以下の例では

Options Description
-c 100MiB Create test file
-w100 Percentage of write requests (100% write, 0% read)
-Sh Disable both software caching and hardware write caching
-d10 Test duration
-L Measure latency statistics
test.dat Test file
$ dd if=/dev/zero of=100MB.dat bs=1MiB count=100
$ diskspd -c100M -w100 -Sh -d10 -L ./test.dat

Command Line: diskspd -c100M -w100 -Sh -d10 -L ./test.dat

System info:
        processor count: 1
        caching options: fua=0

Input parameters:

        job:   1
        ________
        duration: 10s
        warm up time: 5s
        measuring latency
        random seed: 0
        total threads: 1
        path: './test.dat'
                size: 104857600B
                using O_DIRECT
                using O_SYNC
                performing mix test (read/write ratio: 0/100)
                block size: 65536
                using sequential I/O (stride: 65536)
                number of outstanding I/O operations: 2)
                thread stride size: 0
                threads per file: 1
                block device: sda
                device scheduler: cfq

Results for job 1:
test time:         10s
*****************************************************

 CPU  |  Usage  |   User  |  Kernel | IO Wait |   Idle 
-------------------------------------------------------
    0 |   0.70% |   0.10% |   0.60% |  46.33% |  52.96% 
-------------------------------------------------------
 avg:     0.70% |   0.10% |   0.60% |  46.33% |  52.96%

Total IO
thread |           bytes |         I/Os |       MB/s |  I/O per s | AvgLat(ms) | LatStdDev  | file
-------------------------------------------------------------------------------------------------------
     0 |        86245376 |         1316 |       8.22 |     131.60 |      15.191 |       2.670 | ./test.dat (104857600B)
-------------------------------------------------------------------------------------------------------
total:          86245376 |         1316 |       8.22 |     131.60 |      15.191 |       2.670 

Read IO
thread |           bytes |         I/Os |       MB/s |  I/O per s | AvgLat(ms) | LatStdDev  | file
-------------------------------------------------------------------------------------------------------
     0 |               0 |            0 |       0.00 |       0.00 |       0.000 |       N/A | ./test.dat (104857600B)
-------------------------------------------------------------------------------------------------------
total:                 0 |            0 |       0.00 |       0.00 |       0.000 |          N/A 

Write IO
thread |           bytes |         I/Os |       MB/s |  I/O per s | AvgLat(ms) | LatStdDev  | file
-------------------------------------------------------------------------------------------------------
     0 |        86245376 |         1316 |       8.22 |     131.60 |      15.191 |       2.670 | ./test.dat (104857600B)
-------------------------------------------------------------------------------------------------------
total:          86245376 |         1316 |       8.22 |     131.60 |      15.191 |       2.670 


  %-ile |       Read (ms) | Write (ms) | Total (ms)
----------------------------------------------
    min |        N/A |      8.183 |      8.183
   25th |        N/A |     16.202 |     16.202
   50th |        N/A |     16.208 |     16.208
   75th |        N/A |     16.214 |     16.214
   90th |        N/A |     16.221 |     16.221
   95th |        N/A |     16.228 |     16.228
   99th |        N/A |     16.245 |     16.245
3-nines |        N/A |     16.942 |     16.942
4-nines |        N/A |     16.946 |     16.946
5-nines |        N/A |     16.946 |     16.946
6-nines |        N/A |     16.946 |     16.946
7-nines |        N/A |     16.946 |     16.946
8-nines |        N/A |     16.946 |     16.946
9-nines |        N/A |     16.946 |     16.946
    max |        N/A |     16.946 |     16.946

最終更新日: 2021-06-06 09:29:57