mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-29 04:13:24 +00:00
Add page fault lmbench
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
9c7fd8fef5
commit
803f059493
2
.github/workflows/benchmark_asterinas.yml
vendored
2
.github/workflows/benchmark_asterinas.yml
vendored
@ -43,6 +43,8 @@ jobs:
|
|||||||
- lmbench-select-file
|
- lmbench-select-file
|
||||||
- lmbench-fs-create-delete-files-0k
|
- lmbench-fs-create-delete-files-0k
|
||||||
- lmbench-fs-create-delete-files-10k
|
- lmbench-fs-create-delete-files-10k
|
||||||
|
# Mmap-related benchmarks
|
||||||
|
- lmbench-pagefault
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
timeout-minutes: 60
|
timeout-minutes: 60
|
||||||
container:
|
container:
|
||||||
|
7
test/benchmark/lmbench-pagefault/config.json
Normal file
7
test/benchmark/lmbench-pagefault/config.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"alert_threshold": "125%",
|
||||||
|
"alert_tool": "customSmallerIsBetter",
|
||||||
|
"search_pattern": "Pagefaults on ",
|
||||||
|
"result_index": "4",
|
||||||
|
"description": "The latency of handling page fault on a single processor."
|
||||||
|
}
|
14
test/benchmark/lmbench-pagefault/result_template.json
Normal file
14
test/benchmark/lmbench-pagefault/result_template.json
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "Average page fault latency on Linux",
|
||||||
|
"unit": "µs",
|
||||||
|
"value": 0,
|
||||||
|
"extra": "linux_avg"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "Average page fault latency on Asterinas",
|
||||||
|
"unit": "µs",
|
||||||
|
"value": 0,
|
||||||
|
"extra": "aster_avg"
|
||||||
|
}
|
||||||
|
]
|
10
test/benchmark/lmbench-pagefault/run.sh
Normal file
10
test/benchmark/lmbench-pagefault/run.sh
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# SPDX-License-Identifier: MPL-2.0
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
echo "*** Running the LMbench page fault latency test ***"
|
||||||
|
|
||||||
|
dd if=/dev/zero of=/ext2/test_file bs=1M count=256
|
||||||
|
/benchmark/bin/lmbench/lat_pagefault -P 1 /ext2/test_file
|
Reference in New Issue
Block a user