zvfs: 随机写测试
This commit is contained in:
100
README.md
100
README.md
@@ -35,6 +35,8 @@ zvfs的测试结果:
|
||||
1. 大块4K:1460MiB/s
|
||||
2. 小块128K:1266MiB/s
|
||||
|
||||
非对齐情况下,写入性能/2,因为需要read-update-write。
|
||||
|
||||
### spdk_nvme_perf 性能基准测试
|
||||
```shell
|
||||
cd /home/lian/share/10.1-spdk/spdk
|
||||
@@ -164,6 +166,55 @@ READ:
|
||||
=== all tests PASSED ===
|
||||
```
|
||||
|
||||
#### no O_DIRECT 随机 对齐 大块
|
||||
```shell
|
||||
root@ubuntu:/home/lian/share/10.1-spdk/zvfs/zvfs# ./func_test
|
||||
|
||||
=== test_single_file_random_perf ===
|
||||
Path : /tmp/test.dat
|
||||
IO size : 128 KB
|
||||
Range : 2048 MB
|
||||
Duration: 10 sec
|
||||
|
||||
RANDOM WRITE:
|
||||
total : 8930.8 MB
|
||||
time : 10.001 sec
|
||||
IOPS : 7144 ops/sec
|
||||
BW : 893.01 MB/s
|
||||
|
||||
RANDOM READ:
|
||||
total : 8238.9 MB
|
||||
time : 10.000 sec
|
||||
IOPS : 6591 ops/sec
|
||||
BW : 823.89 MB/s
|
||||
|
||||
=== all tests PASSED ===
|
||||
```
|
||||
#### no O_DIRECT 随机 非对齐 大块
|
||||
```shell
|
||||
root@ubuntu:/home/lian/share/10.1-spdk/zvfs/zvfs# ./func_test
|
||||
|
||||
=== test_single_file_random_perf ===
|
||||
Path : /tmp/test.dat
|
||||
IO size : 128 KB
|
||||
Range : 2048 MB
|
||||
Duration: 10 sec
|
||||
|
||||
RANDOM WRITE:
|
||||
total : 5964.4 MB
|
||||
time : 10.000 sec
|
||||
IOPS : 4771 ops/sec
|
||||
BW : 596.43 MB/s
|
||||
|
||||
RANDOM READ:
|
||||
total : 6607.8 MB
|
||||
time : 10.000 sec
|
||||
IOPS : 5286 ops/sec
|
||||
BW : 660.77 MB/s
|
||||
|
||||
=== all tests PASSED ===
|
||||
```
|
||||
|
||||
#### O_DIRECT 小块
|
||||
```shell
|
||||
root@ubuntu:/home/lian/share/10.1-spdk/zvfs# ./func_test
|
||||
@@ -288,6 +339,55 @@ READ:
|
||||
=== all tests PASSED ===
|
||||
```
|
||||
|
||||
#### 对齐随机写(大块)
|
||||
```shell
|
||||
root@ubuntu:/home/lian/share/10.1-spdk/zvfs/zvfs# LD_PRELOAD=./libzvfs.so ./func_test /zvfs
|
||||
|
||||
=== test_single_file_random_perf ===
|
||||
Path : /zvfs/file.dat
|
||||
IO size : 128 KB
|
||||
Range : 2048 MB
|
||||
Duration: 10 sec
|
||||
|
||||
RANDOM WRITE:
|
||||
total : 17461.8 MB
|
||||
time : 10.000 sec
|
||||
IOPS : 13969 ops/sec
|
||||
BW : 1746.17 MB/s
|
||||
|
||||
RANDOM READ:
|
||||
total : 17439.5 MB
|
||||
time : 10.000 sec
|
||||
IOPS : 13952 ops/sec
|
||||
BW : 1743.95 MB/s
|
||||
|
||||
=== all tests PASSED ===
|
||||
```
|
||||
#### 非对齐随机写(大块)
|
||||
```shell
|
||||
root@ubuntu:/home/lian/share/10.1-spdk/zvfs/zvfs# LD_PRELOAD=./libzvfs.so ./func_test /zvfs
|
||||
|
||||
=== test_single_file_random_perf ===
|
||||
Path : /zvfs/file.dat
|
||||
IO size : 128 KB
|
||||
Range : 2048 MB
|
||||
Duration: 10 sec
|
||||
|
||||
RANDOM WRITE:
|
||||
total : 7500.2 MB
|
||||
time : 10.000 sec
|
||||
IOPS : 6000 ops/sec
|
||||
BW : 750.02 MB/s
|
||||
|
||||
RANDOM READ:
|
||||
total : 15143.8 MB
|
||||
time : 10.000 sec
|
||||
IOPS : 12115 ops/sec
|
||||
BW : 1514.35 MB/s
|
||||
|
||||
=== all tests PASSED ===
|
||||
```
|
||||
|
||||
## SPDK
|
||||
1. blob_store: blob仓库,管理多个blob对象。
|
||||
2. blob: 存储对象,逻辑上连续,物理上不一定连续。相当于文件。
|
||||
|
||||
Reference in New Issue
Block a user