Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions fio/fio_run
Original file line number Diff line number Diff line change
Expand Up @@ -827,6 +827,12 @@ execute_test()
fi
perform_jobs=`echo $jobs_list | sed "s/,/ /g"`

# If we're using PCP start logging
if [[ $to_use_pcp -eq 1 ]]; then
echo "Start PCP"
start_pcp ${pcpdir}/ ${test_name} $pcp_cfg
fi

for njobs in ${perform_jobs}; do
disk_used=0
for iodepth in $iodepth_list; do
Expand All @@ -841,6 +847,12 @@ execute_test()
done
done

# If we're using PCP, stop logging
if [[ $to_use_pcp -eq 1 ]]; then
echo "Stop PCP"
stop_pcp
fi

#
# Done testing, process the results.
#
Expand Down Expand Up @@ -1041,6 +1053,11 @@ RESULTSDIR=${curdir}/export_fio_data_$(date "+%Y.%m.%d-%H.%M.%S")
rm export_fio_data
mkdir ${RESULTSDIR}
ln -s ${RESULTSDIR} ${curdir}/export_fio_data
# Make a PCP results directory if we need it
if [[ $to_use_pcp -eq 1 ]]; then
pcpdir=${RESULTSDIR}/pcp
mkdir ${pcpdir}
fi

install_fio
iodepth_list=`echo $iodepth_list | sed "s/,/ /g"`
Expand Down Expand Up @@ -1101,8 +1118,20 @@ else
pdisk_list=`echo ${disks} | sed "s/ /,/g"`
fi

# Get PCP setup if we're using it
if [[ $to_use_pcp -eq 1 ]]; then
source $TOOLS_BIN/pcp/pcp_commands.inc
setup_pcp
pcp_cfg=$TOOLS_BIN/pcp/default.cfg
fi

execute_test

# Shutdown PCP and clean up after ourselves
if [[ $to_use_pcp -eq 1 ]]; then
shutdown_pcp
fi

if [ $file_count -ne 0 ]; then
if [ $lvm_disk -eq 1 ]; then
$TOOLS_BIN/lvm_delete --lvm_vol fio --lvm_grp fio --mount_pnt /perf1
Expand Down
Loading