Add several FIO tests to the benchmark CI

This commit is contained in:
Shaowei Song 2024-11-08 05:28:08 +00:00 committed by Tate, Hongliang Tian
parent 31ebcbf264
commit c7404f8139
15 changed files with 151 additions and 1 deletions

View File

@ -54,6 +54,10 @@ jobs:
- lmbench/ext2_create_delete_files_0k_ops
- lmbench/ext2_create_delete_files_10k_ops
- lmbench/ext2_copy_files_bw
- fio/ext2_seq_write_bw
- fio/ext2_seq_read_bw
- fio/ext2_iommu_seq_write_bw
- fio/ext2_iommu_seq_read_bw
# Network-related benchmark
- lmbench/tcp_loopback_bw_4k
- lmbench/tcp_loopback_bw_64k

View File

@ -0,0 +1,9 @@
{
"alert_threshold": "125%",
"alert_tool": "customBiggerIsBetter",
"search_pattern": "bw=",
"result_index": "2",
"description": "fio -filename=/ext2/fio-test -size=1G -bs=1M -direct=1",
"title": "[Ext2] The bandwidth of sequential reads (IOMMU enabled on Asterinas)",
"aster_scheme": "iommu"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average file read bandwidth on Linux",
"unit": "MB/s",
"value": 0,
"extra": "linux_result"
},
{
"name": "Average file read bandwidth on Asterinas",
"unit": "MB/s",
"value": 0,
"extra": "aster_result"
}
]

View File

@ -0,0 +1,12 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the FIO sequential read test (Ext2) ***"
/benchmark/bin/fio -rw=read -filename=/ext2/fio-test -name=seqread \
-size=1G -bs=1M \
-ioengine=sync -direct=1 -numjobs=1 -fsync_on_close=1 \
-time_based=1 -runtime=60

View File

@ -0,0 +1,9 @@
{
"alert_threshold": "125%",
"alert_tool": "customBiggerIsBetter",
"search_pattern": "bw=",
"result_index": "2",
"description": "fio -filename=/ext2/fio-test -size=1G -bs=1M -direct=1",
"title": "[Ext2] The bandwidth of sequential writes (IOMMU enabled on Asterinas)",
"aster_scheme": "iommu"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average file write bandwidth on Linux",
"unit": "MB/s",
"value": 0,
"extra": "linux_result"
},
{
"name": "Average file write bandwidth on Asterinas",
"unit": "MB/s",
"value": 0,
"extra": "aster_result"
}
]

View File

@ -0,0 +1,12 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the FIO sequential write test (Ext2) ***"
/benchmark/bin/fio -rw=write -filename=/ext2/fio-test -name=seqwrite \
-size=1G -bs=1M \
-ioengine=sync -direct=1 -numjobs=1 -fsync_on_close=1 \
-time_based=1 -runtime=60

View File

@ -0,0 +1,8 @@
{
"alert_threshold": "125%",
"alert_tool": "customBiggerIsBetter",
"search_pattern": "bw=",
"result_index": "2",
"description": "fio -filename=/ext2/fio-test -size=1G -bs=1M -direct=1",
"title": "[Ext2] The bandwidth of sequential reads"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average file read bandwidth on Linux",
"unit": "MB/s",
"value": 0,
"extra": "linux_result"
},
{
"name": "Average file read bandwidth on Asterinas",
"unit": "MB/s",
"value": 0,
"extra": "aster_result"
}
]

View File

@ -0,0 +1,12 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the FIO sequential read test (Ext2) ***"
/benchmark/bin/fio -rw=read -filename=/ext2/fio-test -name=seqread \
-size=1G -bs=1M \
-ioengine=sync -direct=1 -numjobs=1 -fsync_on_close=1 \
-time_based=1 -runtime=60

View File

@ -0,0 +1,8 @@
{
"alert_threshold": "125%",
"alert_tool": "customBiggerIsBetter",
"search_pattern": "bw=",
"result_index": "2",
"description": "fio -filename=/ext2/fio-test -size=1G -bs=1M -direct=1",
"title": "[Ext2] The bandwidth of sequential writes"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average file write bandwidth on Linux",
"unit": "MB/s",
"value": 0,
"extra": "linux_result"
},
{
"name": "Average file write bandwidth on Asterinas",
"unit": "MB/s",
"value": 0,
"extra": "aster_result"
}
]

View File

@ -0,0 +1,12 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running the FIO sequential write test (Ext2) ***"
/benchmark/bin/fio -rw=write -filename=/ext2/fio-test -name=seqwrite \
-size=1G -bs=1M \
-ioengine=sync -direct=1 -numjobs=1 -fsync_on_close=1 \
-time_based=1 -runtime=60

View File

@ -0,0 +1,8 @@
{
"benchmarks": [
"ext2_seq_write_bw",
"ext2_seq_read_bw",
"ext2_iommu_seq_write_bw",
"ext2_iommu_seq_read_bw"
]
}

View File

@ -4,5 +4,5 @@
"search_pattern": "lmdd result:",
"result_index": "8",
"description": "lmdd",
"title": "[EXT2] The bandwidth of copying data between files"
"title": "[Ext2] The bandwidth of copying data between files"
}