Add page fault lmbench

This commit is contained in:
Chen Chengjun
2024-08-16 13:26:02 +08:00
committed by Tate, Hongliang Tian
parent 9c7fd8fef5
commit 803f059493
4 changed files with 33 additions and 0 deletions

View File

@ -43,6 +43,8 @@ jobs:
- lmbench-select-file
- lmbench-fs-create-delete-files-0k
- lmbench-fs-create-delete-files-10k
# Mmap-related benchmarks
- lmbench-pagefault
fail-fast: false
timeout-minutes: 60
container:

View 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."
}

View 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"
}
]

View 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