test/nvme_perf: add main core parameter
For Test Case 2: SPDK NVMe BDEV I/O Cores Scaling we need to specify DPDK main (primary) core. Signed-off-by: Pawel Piatek <pawelx.piatek@intel.com> Change-Id: I53d706c4173e16035a3883c29547659a0c7a22fc Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8553 Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
This commit is contained in:
parent
a3d0f42889
commit
d7aa681b6b
@ -408,7 +408,11 @@ function run_nvme_fio() {
|
|||||||
|
|
||||||
function run_bdevperf() {
|
function run_bdevperf() {
|
||||||
echo "** Running bdevperf test, this can take a while, depending on the run-time setting."
|
echo "** Running bdevperf test, this can take a while, depending on the run-time setting."
|
||||||
$bdevperf_dir/bdevperf --json $testdir/bdev.conf -q $IODEPTH -o $BLK_SIZE -w $RW -M $MIX -t $RUNTIME -m "[$CPUS_ALLOWED]" -r /var/tmp/spdk.sock
|
local main_core_param=""
|
||||||
|
if [[ -n $MAIN_CORE ]]; then
|
||||||
|
main_core_param="-p ${MAIN_CORE}"
|
||||||
|
fi
|
||||||
|
$bdevperf_dir/bdevperf --json $testdir/bdev.conf -q $IODEPTH -o $BLK_SIZE -w $RW -M $MIX -t $RUNTIME -m "[$CPUS_ALLOWED]" -r /var/tmp/spdk.sock $main_core_param
|
||||||
sleep 1
|
sleep 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -35,6 +35,7 @@ IO_BATCH_COMPLETE=0
|
|||||||
FIO_BIN=$CONFIG_FIO_SOURCE_DIR/fio
|
FIO_BIN=$CONFIG_FIO_SOURCE_DIR/fio
|
||||||
FIO_FNAME_STRATEGY="group"
|
FIO_FNAME_STRATEGY="group"
|
||||||
TMP_RESULT_FILE=$testdir/result.json
|
TMP_RESULT_FILE=$testdir/result.json
|
||||||
|
MAIN_CORE=""
|
||||||
PLUGIN="nvme"
|
PLUGIN="nvme"
|
||||||
DISKCFG=""
|
DISKCFG=""
|
||||||
BDEV_CACHE=""
|
BDEV_CACHE=""
|
||||||
@ -105,6 +106,7 @@ function usage() {
|
|||||||
echo " --cpu-frequency=INT Run tests with CPUs set to a desired frequency. 'intel_pstate=disable' must be set in"
|
echo " --cpu-frequency=INT Run tests with CPUs set to a desired frequency. 'intel_pstate=disable' must be set in"
|
||||||
echo " GRUB options. You can use 'cpupower frequency-info' and 'cpupower frequency-set' to"
|
echo " GRUB options. You can use 'cpupower frequency-info' and 'cpupower frequency-set' to"
|
||||||
echo " check list of available frequencies. Example: --cpu-frequency=1100000."
|
echo " check list of available frequencies. Example: --cpu-frequency=1100000."
|
||||||
|
echo " --main-core main (primary) core for DPDK (for bdevperf only)."
|
||||||
echo
|
echo
|
||||||
echo "Other options:"
|
echo "Other options:"
|
||||||
echo " --perftop Run perftop measurements on the same CPU cores as specified in --cpu-allowed option."
|
echo " --perftop Run perftop measurements on the same CPU cores as specified in --cpu-allowed option."
|
||||||
@ -162,6 +164,7 @@ while getopts 'h-:' optchar; do
|
|||||||
perftop) PERFTOP=true ;;
|
perftop) PERFTOP=true ;;
|
||||||
dpdk-mem-stats) DPDKMEM=true ;;
|
dpdk-mem-stats) DPDKMEM=true ;;
|
||||||
latency-log) LATENCY_LOG=true ;;
|
latency-log) LATENCY_LOG=true ;;
|
||||||
|
main-core=*) MAIN_CORE="${OPTARG#*=}" ;;
|
||||||
*)
|
*)
|
||||||
usage $0 echo "Invalid argument '$OPTARG'"
|
usage $0 echo "Invalid argument '$OPTARG'"
|
||||||
exit 1
|
exit 1
|
||||||
|
Loading…
Reference in New Issue
Block a user