在快速的 NVMe 磁盘上,sysbench fileio 吞吐量怎么只有 6.92MiB/s?

在快速的 NVMe 磁盘上,sysbench fileio 吞吐量怎么只有 6.92MiB/s?

我跟着指导在 HP EliteDesk 800 G2 (i5-6500T) 上对 WD_Black 1TB SN750 SE NVMe 磁盘进行基准测试(读取:3600 MB/s,写入:2830 MB/s)。

$ sysbench fileio --file-total-size=8G prepare
8589934592 bytes written in 7.91 seconds (1035.26 MiB/sec).

$ sysbench fileio --file-total-size=8G --file-test-mode=rndrw run
Throughput:
    read, MiB/s:                  6.92
    written, MiB/s:               4.61

$ sysbench fileio cleanup

$ dd bs=512k count=2048 if=/dev/zero of=/root/data
2048+0 records in
2048+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.817983 s, 1.3 GB/s

$ sysctl -w vm.drop_caches=3

$ dd bs=512k count=2048 if=/root/data of=/dev/zero
2048+0 records in
2048+0 records out
1073741824 bytes (1.1 GB, 1.0 GiB) copied, 0.497434 s, 2.2 GB/s

为什么 NVMe 磁盘速度这么快,但吞吐量却这么慢呢?

相关内容