zvfs: fio file

This commit is contained in:
2026-03-02 08:31:01 +00:00
parent f82e089325
commit 321212826b
8 changed files with 704 additions and 778 deletions

9
fio/readme.md Normal file
View File

@@ -0,0 +1,9 @@
```shell
sudo apt install fio
fio sample.fio
LD_PRELOAD=../zvfs/libzvfs.so fio zvfs.fio
```

14
fio/sample.fio Normal file
View File

@@ -0,0 +1,14 @@
[global]
ioengine=sync # 同步 I/O
direct=0 # 使用内核页缓存,测试系统调用性能
bs=128k # 块大小
size=1G # 每个文件大小
numjobs=2 # 并发线程数
runtime=60 # 测试运行时间,秒
time_based=1
rw=randrw # 随机读写
rwmixread=70 # 70% 读30% 写
group_reporting=1 # 汇总报告
[test_syscall]
filename=/tmp/fio_sample_testfile

14
fio/zvfs.fio Normal file
View File

@@ -0,0 +1,14 @@
[global]
ioengine=sync
direct=0
bs=128k
size=1G
numjobs=2
runtime=60
time_based=1
rw=randrw
rwmixread=70
group_reporting=1
[test_hook]
filename=/zvfs/fio_zvfs_testfile