http://blog.csdn.net/killmice/article/details/42745937
The test tool FIO is read sequentially as an example, with the following commands: fio-name IOPS-RW = Read-bs = 4k-runtime = 60-iodepth 32-filename/dev/sda6-ioengin E Libaio-direct = 1 where rw = read for random reads, BS = 4k for each read 4k, filename specifies the corresponding partition, here I am/dev/sda6, direct = 1 means the cache through Linux Test SATA Hard Drive, SAS hard drive, SSD hard drive sequential read, random read, sequential write, random write speed
Sequential read Test command: fio-name IOPS-RW = Read-bs = 4k-runtime = 60-iodepth 32-filename/dev/sda6-ioengine Rect = 1 SATA jobs:1 (f = 1): [R] [16.4% done] [124.1m/0k/s] [31.3k/0 IOPS] [eta 00m:51s] SAS Jobs : 1 (f = 1): [R] [16.4% done] [190M/0K/S] [41.3k/0 ioPS] [Eta 00m:51s] SSD jobs:1 (f = 1): [R] [100.0% done] [404m/0k/s] [103k/0 IOPS] [ETA 00m:00s] can see continuous read on 4KB packets The case: SSD its speed can reach 404mb/s, ioPS reach 103k/s SAS its speed can reach 190mb/s, ioPS reach 41k/s SATA its speed can reach 124mb/s, ioPS reach 31 k/s Sequential read, SAS Overall performance is 1.3 times times the SATA hard drive, SSD overall performance is SATA hard drive 4 times times.
Random Read Test command fio-name IOPS-RW = Randread-bs = 4k-runtime = 60-iodepth 32-filename/dev/sda6-ioengine Libaio- Direct = 1 SATA jobs:1 (f = 1): [R] [41.0% done] [466K/0K/S] [114/0 ioPS] [Eta 00m:36s] SAS jobs:1 (f = 1): [R] [41.0% done] [1784k/0k/s] [456/0 IOPS] [eta 00m:36s] SSD jobs:1 (f = 1 ): [R] [100.0% done] [505m/0k/s] [129k/0 IOPS] [eta 00m:00s] Random Read, SAS overall performance is 4 times times the SATA hard drive, the overall performance of SSDs is SA Ta hard drive more than 1000 times.
Sequential write Test command: fio-name IOPS-RW = Write-bs = 4k-runtime = 60-iodepth 32-filename/dev/sda6-ioengine Irect = 1 SATA jobs:1 (f = 1): [W] [21.3% done] [0k/124.9m/s] [0/31.3k IOPS] [eta 00m:48s] SAS Jobs : 1 (f = 1): [W] [21.3% done] [0k/190m/s] [0/36.3k ioPS] [Eta 00m:48s] SSD jobs:1 (f = 1): [W] [100.0% done] [0k/592m/s] [0/152k IOPS] [eta 00m:00s] the same 4KB packet sequence is written in the case SSD card results in 592mb/s, IOPS 152K. The local hard drive is only 118mb/s and IOPS is only 30290.
Write Test command randomly: fio-name IOPS-RW = Randwrite-bs = 4k-runtime = 60-iodepth 32-filename/dev/sda6-ioengine Libaio -Direct = 1 SATA jobs:1 (f = 1): [w] [100.0% done] [0K/548K/S] [0/134 ioPS] [Eta 00m:00s] SAS jobs:1 (f = 1): [w] [100.0% done] [0k/2000k/s] [0/512 IOPS] [eta 00m:00s] SSD jobs:1 (f = 1 ): [W] [100.0% done] [0k/549m/s] [0/140k ioPS] [Eta 00m:00s] in the next 4KB packet random write operation, SSD Card demonstrated its superb IO performance, up to 549mb/s random write rate, IOPS up to 140K. By contrast, the local hard disk's random read and write is only 548kb/s, IOPS 134.