occlum/demos/benchmarks/fio/download_and_build_fio.sh
2022-11-30 21:25:32 +08:00

22 lines
337 B
Bash
Executable File

#!/bin/bash
set -e
SRC=fio_src
# Download FIO
if [ ! -d $SRC ];then
rm -rf $SRC && mkdir $SRC
cd $SRC
git clone https://github.com/axboe/fio.git .
git checkout tags/fio-3.28
git apply ../disable-fadvise.diff
else
cd $SRC
fi
# Build FIO
./configure --disable-shm --cc=occlum-gcc
make
echo "Build FIO success!"