occlum/demos/benchmarks/sysbench
2023-07-13 10:47:29 +08:00
..
dl_and_build.sh Signed-off-by: 景涛 <jingtao3@hust.edu.cn> 2023-04-18 13:12:37 +08:00
prepare_sysbench.sh [demos] Move all the benchmark demos together 2022-11-30 21:25:32 +08:00
README.md [demos] Move all the benchmark demos together 2022-11-30 21:25:32 +08:00
result_template.json [demos] Update iperf3/sysbench for benchmarks 2023-07-13 10:47:29 +08:00
sysbench.sh [demos] Update iperf3/sysbench for benchmarks 2023-07-13 10:47:29 +08:00
sysbench.yaml [demos] Move all the benchmark demos together 2022-11-30 21:25:32 +08:00

Run Linux sysbench

In this demo, we will show how to run the Linux sysbench inside Occlum.

Linux sysbench is a scriptable multi-threaded benchmark tool. Occlum could also run the sysbench for CPU/Threads/Memory/Mutex/... benchmarks.

Please note it is configured with "--without-mysql", so no mysql database benchmark can be done.

Download and build the Linux sysbench from source code

./dl_and_build.sh

Prepare the Occlum instance for sysbench demo

./prepare_sysbench.sh

Run the sysbench demo

For example,

  • CPU benchmark
occlum/demos/sysbench/occlum_instance# occlum run /bin/sysbench cpu  --cpu-max-prime=2000 --threads=2 run
  • threads benchmark
# occlum/demos/sysbench/occlum_instance# occlum run /bin/sysbench threads --threads=200 --thread-yields=100 --thread-locks=4 --time=10 run

More test commands could refer to

# occlum/demos/sysbench/occlum_instance# occlum run /bin/sysbench --help