sel4bench is a benchmarking applications and support library for seL4.
To get this project, check out the project manifest.
We provide multiple applications for benchmarking different paths in the kernel.
This is the driver application: it launches each benchmark in a separate process and collects, processes, and outputs results.
This is a hot-cache benchmark of the IPC path.
This is a hot-cache benchmark of the IRQ path, measured from inside the kernel. It requires tracepoints to be placed on the IRQ path where the meaurements are to be taken from.
This is a hot-cache benchmark of the IRQ path, measured from user space.
This is a hot-cache benchmark of a scheduling decision. It works by
using a producer/consumer pattern between two notification objects.
This benchmark also measures
This is a hot-cache benchmark of the signal path in the kernel, measured from user space.
This is an intra-core IPC round-trip benchmark to check overhead of kernel synchronization on IPC throughput.
vcpu (AArch64 only)
This benchmark will execute a thread as a VCPU (an EL1 guest kernel) and then obtain numbers for the following actions:
- Privilege escalation from EL1 to EL2 using the
- Privilege de-escalation from EL2 to EL1 using the
- The cost of a null invocation of the EL2 kernel using
- The cost of an
seL4_Call()from an EL1 guest thread to a native seL4 thread.
- The cost of an
seL4_Reply()from an seL4 native thread to an EL1 guest thread.
Note: In order to run this benchmark, you must notify the build system
that you wish to enable this benchmark by passing
-DVCPU=true on the
command line, which will cause the kernel to be compiled to run in EL2.
You must also ensure that you pass
-DHARDWARE=false to disable the
Since this benchmark will cause the kernel image to be an EL2 image, it will have an impact on the observed numbers for the other benchmark applications as well, since they'll be using an unexpected kernel build.