mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 09:53:24 +00:00
Add the FIO benchmark
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
defb563541
commit
64b1be2472
@ -48,6 +48,7 @@ RUN git clone https://github.com/kdlucas/byte-unixbench.git
|
||||
RUN git clone https://github.com/asterinas/lmbench.git
|
||||
RUN wget https://www.iozone.org/src/current/iozone3_506.tar
|
||||
RUN tar -x -f iozone3_506.tar
|
||||
RUN git clone -b fio-3.37 https://github.com/axboe/fio.git
|
||||
|
||||
# Build sysbench
|
||||
WORKDIR /root/sysbench-1.0.20
|
||||
@ -84,6 +85,14 @@ WORKDIR /root/iozone3_506/src/current
|
||||
RUN CFLAGS=-static make linux-AMD64 \
|
||||
&& cp iozone /usr/local/benchmark/
|
||||
|
||||
# Build fio
|
||||
WORKDIR /root/fio
|
||||
RUN ./configure --disable-shm --prefix=/usr/local/benchmark/fio \
|
||||
# Remove this when we support syscall timerfd_create and fadvise
|
||||
&& sed -i -e '/#define CONFIG_HAVE_TIMERFD_CREATE/d' -e '/#define CONFIG_POSIX_FADVISE/d' config-host.h \
|
||||
&& make -j \
|
||||
&& make install
|
||||
|
||||
# Clear cached files
|
||||
WORKDIR /root
|
||||
RUN rm -rf sysbench-1.0.20 \
|
||||
@ -92,7 +101,8 @@ RUN rm -rf sysbench-1.0.20 \
|
||||
lmbench \
|
||||
byte-unixbench \
|
||||
iozone3_506.tar \
|
||||
iozone3_506
|
||||
iozone3_506 \
|
||||
fio
|
||||
|
||||
#= Build syscall test =========================================================
|
||||
|
||||
|
Reference in New Issue
Block a user