mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-24 18:03:25 +00:00
Add the FIO benchmark
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
defb563541
commit
64b1be2472
@ -47,6 +47,7 @@ $(INITRAMFS)/lib/x86_64-linux-gnu: | $(VDSO_LIB)
|
|||||||
@cp -L /lib/x86_64-linux-gnu/libcrypt.so.1 $@
|
@cp -L /lib/x86_64-linux-gnu/libcrypt.so.1 $@
|
||||||
@cp -L /lib/x86_64-linux-gnu/libdl.so.2 $@
|
@cp -L /lib/x86_64-linux-gnu/libdl.so.2 $@
|
||||||
@cp -L /lib/x86_64-linux-gnu/libz.so.1 $@
|
@cp -L /lib/x86_64-linux-gnu/libz.so.1 $@
|
||||||
|
@cp -L /lib/x86_64-linux-gnu/libmvec.so.1 $@
|
||||||
@cp -L /usr/local/benchmark/iperf/lib/libiperf.so.0 $@
|
@cp -L /usr/local/benchmark/iperf/lib/libiperf.so.0 $@
|
||||||
@cp -L $(VDSO_LIB) $@
|
@cp -L $(VDSO_LIB) $@
|
||||||
|
|
||||||
@ -93,6 +94,7 @@ $(INITRAMFS)/benchmark/bin:
|
|||||||
@cp /usr/local/benchmark/iozone $@
|
@cp /usr/local/benchmark/iozone $@
|
||||||
@cp -r /usr/local/benchmark/unixbench $@
|
@cp -r /usr/local/benchmark/unixbench $@
|
||||||
@cp -r /usr/local/benchmark/lmbench $@
|
@cp -r /usr/local/benchmark/lmbench $@
|
||||||
|
@cp /usr/local/benchmark/fio/bin/fio $@
|
||||||
@# Replace the homebrewed getpid with a standard benchmark like UnixBench or LMbench.
|
@# Replace the homebrewed getpid with a standard benchmark like UnixBench or LMbench.
|
||||||
@gcc -O2 $(CUR_DIR)/apps/getpid/getpid.c -o $@/getpid
|
@gcc -O2 $(CUR_DIR)/apps/getpid/getpid.c -o $@/getpid
|
||||||
|
|
||||||
|
@ -48,6 +48,7 @@ RUN git clone https://github.com/kdlucas/byte-unixbench.git
|
|||||||
RUN git clone https://github.com/asterinas/lmbench.git
|
RUN git clone https://github.com/asterinas/lmbench.git
|
||||||
RUN wget https://www.iozone.org/src/current/iozone3_506.tar
|
RUN wget https://www.iozone.org/src/current/iozone3_506.tar
|
||||||
RUN tar -x -f 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
|
# Build sysbench
|
||||||
WORKDIR /root/sysbench-1.0.20
|
WORKDIR /root/sysbench-1.0.20
|
||||||
@ -84,6 +85,14 @@ WORKDIR /root/iozone3_506/src/current
|
|||||||
RUN CFLAGS=-static make linux-AMD64 \
|
RUN CFLAGS=-static make linux-AMD64 \
|
||||||
&& cp iozone /usr/local/benchmark/
|
&& 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
|
# Clear cached files
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
RUN rm -rf sysbench-1.0.20 \
|
RUN rm -rf sysbench-1.0.20 \
|
||||||
@ -92,7 +101,8 @@ RUN rm -rf sysbench-1.0.20 \
|
|||||||
lmbench \
|
lmbench \
|
||||||
byte-unixbench \
|
byte-unixbench \
|
||||||
iozone3_506.tar \
|
iozone3_506.tar \
|
||||||
iozone3_506
|
iozone3_506 \
|
||||||
|
fio
|
||||||
|
|
||||||
#= Build syscall test =========================================================
|
#= Build syscall test =========================================================
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user