pg /c database 通过。似乎是pg使用 open/write 写入了某个文件,通过 fopen/fscanf 绕过了hook路径导致的。出现了新的段错误。

This commit is contained in:
2026-03-13 10:49:31 +00:00
parent 544f532bf5
commit 4d350d5aea
28 changed files with 1686 additions and 128 deletions

18
fio_script/bdev.fio Executable file
View File

@@ -0,0 +1,18 @@
[global]
ioengine=spdk_bdev
spdk_json_conf=/home/king/share/zvfs/fio_script/zvfs.json
thread=1
direct=1
time_based
runtime=10
rw=randwrite
bs=16K
zonemode=zbd
max_open_zones=8
initial_zone_reset=1
zone_append=1
iodepth=64
[test]
filename=Zone0
numjobs=1

19
fio_script/io_uring.fio Executable file
View File

@@ -0,0 +1,19 @@
[global]
thread=1
group_reporting=1
direct=1
verify=0
time_based=1
runtime=10
bs=16K
size=16384
iodepth=64
rw=randwrite
filename=kingfs
ioengine=io_uring
[test]
stonewall
description="variable bs"
bs=16K

BIN
fio_script/kingfs Executable file

Binary file not shown.

19
fio_script/libaio.fio Executable file
View File

@@ -0,0 +1,19 @@
[global]
thread=1
group_reporting=1
direct=1
verify=0
time_based=1
runtime=10
bs=16K
size=16384
iodepth=64
rw=randwrite
filename=kingfs
ioengine=libaio
[test]
stonewall
description="variable bs"
bs=16K

18
fio_script/nvme.fio Executable file
View File

@@ -0,0 +1,18 @@
[global]
thread=1
group_reporting=1
direct=1
verify=0
time_based=1
ramp_time=10
runtime=10
bs=16K
size=16384
iodepth=64
rw=randwrite
ioengine=spdk
[test]
numjobs=1
filename=trtype=PCIe traddr=0000.03.00.0 ns=1
bs=16k

20
fio_script/psync.fio Executable file
View File

@@ -0,0 +1,20 @@
[global]
thread=1
group_reporting=1
direct=1
verify=0
time_based=1
runtime=10
bs=16K
size=16384
iodepth=64
rw=randwrite
filename=kingfs
ioengine=psync
[test]
stonewall
description="variable bs"
bs=16K

35
fio_script/zvfs.json Executable file
View File

@@ -0,0 +1,35 @@
{
"subsystems": [
{
"subsystem": "bdev",
"config": [
{
"method": "bdev_nvme_attach_controller",
"params":
{
"trtype": "PCIe",
"name":"Nvme0",
"traddr":"0000:03:00.0"
}
},
{
"method": "bdev_malloc_create",
"params": {
"name": "Malloc0",
"num_blocks": 2097152,
"block_size": 512
}
},
{
"method": "bdev_zone_block_create",
"params": {
"base_bdev": "Malloc0",
"name": "Zone0",
"zone_capacity": 262144,
"optimal_open_zones": 8
}
}
]
}
]
}