8991773390
Signed-off-by: Maciej Wawryk <maciejx.wawryk@intel.com> Signed-off-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Change-Id: I6a92345e1c3fae1f7f8b77bc68e0f715e7ac9ed9 Signed-off-by: Vitaliy Mysak <vitaliy.mysak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3291 Community-CI: Mellanox Build Bot Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
34 lines
587 B
Bash
34 lines
587 B
Bash
bdevperf=$rootdir/test/bdev/bdevperf/bdevperf
|
|
|
|
function create_job() {
|
|
local job_section=$1
|
|
local rw=$2
|
|
local filename=$3
|
|
|
|
if [[ $job_section == "global" ]]; then
|
|
cat <<- EOF >> "$testdir"/test.conf
|
|
[global]
|
|
filename=${filename}
|
|
EOF
|
|
fi
|
|
job="[${job_section}]"
|
|
echo $global
|
|
cat <<- EOF >> "$testdir"/test.conf
|
|
${job}
|
|
filename=${filename}
|
|
bs=1024
|
|
rwmixread=70
|
|
rw=${rw}
|
|
iodepth=256
|
|
cpumask=0xff
|
|
EOF
|
|
}
|
|
|
|
function get_num_jobs() {
|
|
echo "$1" | grep -oE "Using job config with [0-9]+ jobs" | grep -oE "[0-9]+"
|
|
}
|
|
|
|
function cleanup() {
|
|
rm -f $testdir/test.conf
|
|
}
|