Add lmbench scripts

This commit is contained in:
Yuke Peng 2024-07-04 16:58:13 +08:00 committed by Tate, Hongliang Tian
parent 8726d858f2
commit b12a5d6770
16 changed files with 153 additions and 1 deletions

View File

@ -11,7 +11,19 @@ jobs:
runs-on: self-hosted
strategy:
matrix:
benchmark: [sysbench-cpu, sysbench-thread, getpid]
benchmark:
- sysbench-cpu
- sysbench-thread
- getpid
- lmbench-getpid
- lmbench-fork
- lmbench-signal
# TODO: The following benchmarks are disabled now for some reasons.
#
# In Linux, lack of /dev/null device
# - lmbench-write
# In Linux, lack of /dev/zero device
# - lmbench-read
fail-fast: false
timeout-minutes: 60
container:

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "Process fork",
"field": "3"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average Fork latency on Linux",
"unit": "ms",
"value": 0,
"extra": "linux_avg"
},
{
"name": "Average Fork latency on Asterinas",
"unit": "ms",
"value": 0,
"extra": "aster_avg"
}
]

View File

@ -0,0 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running lmbench-fork ***"
/benchmark/bin/lmbench/lat_proc -P 1 fork

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "Simple syscall:",
"field": "3"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average syscall latency on Linux",
"unit": "ms",
"value": 0,
"extra": "linux_avg"
},
{
"name": "Average syscall latency on Asterinas",
"unit": "ms",
"value": 0,
"extra": "aster_avg"
}
]

View File

@ -0,0 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running lmbench-getpid ***"
/benchmark/bin/lmbench/lat_syscall -P 1 null

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "150%",
"pattern": "Simple read:",
"field": "3"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average read latency on Linux",
"unit": "ms",
"value": 0,
"extra": "linux_avg"
},
{
"name": "Average read latency on Asterinas",
"unit": "ms",
"value": 0,
"extra": "aster_avg"
}
]

View File

@ -0,0 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running lmbench-syscall-read ***"
/benchmark/bin/lmbench/lat_syscall -P 1 read

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "125%",
"pattern": "Signal handler overhead:",
"field": "4"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average Signal handler overhead on Linux",
"unit": "ms",
"value": 0,
"extra": "linux_avg"
},
{
"name": "Average Signal handler overhead on Asterinas",
"unit": "ms",
"value": 0,
"extra": "aster_avg"
}
]

View File

@ -0,0 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running lmbench-signal catch ***"
/benchmark/bin/lmbench/lat_sig -P 1 catch

View File

@ -0,0 +1,5 @@
{
"alert_threshold": "150%",
"pattern": "Simple write:",
"field": "3"
}

View File

@ -0,0 +1,14 @@
[
{
"name": "Average write latency on Linux",
"unit": "ms",
"value": 0,
"extra": "linux_avg"
},
{
"name": "Average write latency on Asterinas",
"unit": "ms",
"value": 0,
"extra": "aster_avg"
}
]

View File

@ -0,0 +1,9 @@
#!/bin/sh
# SPDX-License-Identifier: MPL-2.0
set -e
echo "*** Running lmbench-syscall-write ***"
/benchmark/bin/lmbench/lat_syscall -P 1 write