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() {
|
||||
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
|
||||
}
|
||||
|
||||
|
@ -35,6 +35,7 @@ IO_BATCH_COMPLETE=0
|
||||
FIO_BIN=$CONFIG_FIO_SOURCE_DIR/fio
|
||||
FIO_FNAME_STRATEGY="group"
|
||||
TMP_RESULT_FILE=$testdir/result.json
|
||||
MAIN_CORE=""
|
||||
PLUGIN="nvme"
|
||||
DISKCFG=""
|
||||
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 " GRUB options. You can use 'cpupower frequency-info' and 'cpupower frequency-set' to"
|
||||
echo " check list of available frequencies. Example: --cpu-frequency=1100000."
|
||||
echo " --main-core main (primary) core for DPDK (for bdevperf only)."
|
||||
echo
|
||||
echo "Other options:"
|
||||
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 ;;
|
||||
dpdk-mem-stats) DPDKMEM=true ;;
|
||||
latency-log) LATENCY_LOG=true ;;
|
||||
main-core=*) MAIN_CORE="${OPTARG#*=}" ;;
|
||||
*)
|
||||
usage $0 echo "Invalid argument '$OPTARG'"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user