test/nvme: Replace -s with -o for "io size in bytes"

For most of apps, -o is for "io size in bytes",
-s("io size in bytes") was changed to -o a long time ago.
-s is now for "memory size in MB for DPDK".

Change-Id: I0977d4a7bc30a4f2e135707ff6e77b6254240fb9
Signed-off-by: wanghailiangx <hailiangx.e.wang@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14533
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
wanghailiangx 2022-09-15 23:36:44 -04:00 committed by Tomasz Zawadzki
parent 905e519adc
commit 69b4e8b17f
5 changed files with 12 additions and 12 deletions

View File

@ -457,7 +457,7 @@ usage(char *program_name)
printf("\t\n"); printf("\t\n");
printf("\t[-d DPDK huge memory size in MB]\n"); printf("\t[-d DPDK huge memory size in MB]\n");
printf("\t[-q io depth]\n"); printf("\t[-q io depth]\n");
printf("\t[-s io size in bytes]\n"); printf("\t[-o io size in bytes]\n");
printf("\t[-w io pattern type, must be one of\n"); printf("\t[-w io pattern type, must be one of\n");
printf("\t\t(read, write, randread, randwrite, rw, randrw)]\n"); printf("\t\t(read, write, randread, randwrite, rw, randrw)]\n");
printf("\t[-M rwmixread (100 for reads, 0 for writes)]\n"); printf("\t[-M rwmixread (100 for reads, 0 for writes)]\n");
@ -641,7 +641,7 @@ parse_args(int argc, char **argv)
spdk_nvme_trid_populate_transport(&g_trid, SPDK_NVME_TRANSPORT_PCIE); spdk_nvme_trid_populate_transport(&g_trid, SPDK_NVME_TRANSPORT_PCIE);
snprintf(g_trid.subnqn, sizeof(g_trid.subnqn), "%s", SPDK_NVMF_DISCOVERY_NQN); snprintf(g_trid.subnqn, sizeof(g_trid.subnqn), "%s", SPDK_NVMF_DISCOVERY_NQN);
while ((op = getopt(argc, argv, "a:b:c:d:ghi:l:m:n:q:r:s:t:w:M:L:")) != -1) { while ((op = getopt(argc, argv, "a:b:c:d:ghi:l:m:n:o:q:r:t:w:M:L:")) != -1) {
switch (op) { switch (op) {
case 'c': case 'c':
g_arbitration.core_mask = optarg; g_arbitration.core_mask = optarg;
@ -699,7 +699,7 @@ parse_args(int argc, char **argv)
case 'q': case 'q':
g_arbitration.queue_depth = val; g_arbitration.queue_depth = val;
break; break;
case 's': case 'o':
g_arbitration.io_size_bytes = val; g_arbitration.io_size_bytes = val;
break; break;
case 't': case 't':

View File

@ -123,7 +123,7 @@ if [ $(uname) = Linux ]; then
start_stub "-s 4096 -i 0 -m 0xE" start_stub "-s 4096 -i 0 -m 0xE"
fi fi
run_test "nvme_reset" $testdir/reset/reset -q 64 -w write -s 4096 -t 5 run_test "nvme_reset" $testdir/reset/reset -q 64 -w write -o 4096 -t 5
run_test "nvme_identify" nvme_identify run_test "nvme_identify" nvme_identify
run_test "nvme_perf" nvme_perf run_test "nvme_perf" nvme_perf
run_test "nvme_hello_world" $SPDK_EXAMPLE_DIR/hello_world -i 0 run_test "nvme_hello_world" $SPDK_EXAMPLE_DIR/hello_world -i 0
@ -131,7 +131,7 @@ run_test "nvme_sgl" $testdir/sgl/sgl
run_test "nvme_e2edp" $testdir/e2edp/nvme_dp run_test "nvme_e2edp" $testdir/e2edp/nvme_dp
run_test "nvme_reserve" $testdir/reserve/reserve run_test "nvme_reserve" $testdir/reserve/reserve
run_test "nvme_err_injection" $testdir/err_injection/err_injection run_test "nvme_err_injection" $testdir/err_injection/err_injection
run_test "nvme_overhead" $testdir/overhead/overhead -s 4096 -t 1 -H -i 0 run_test "nvme_overhead" $testdir/overhead/overhead -o 4096 -t 1 -H -i 0
run_test "nvme_arbitration" $SPDK_EXAMPLE_DIR/arbitration -t 3 -i 0 run_test "nvme_arbitration" $SPDK_EXAMPLE_DIR/arbitration -t 3 -i 0
run_test "nvme_single_aen" $testdir/aer/aer -T -i 0 -L log run_test "nvme_single_aen" $testdir/aer/aer -T -i 0 -L log

View File

@ -461,7 +461,7 @@ usage(char *program_name)
#endif #endif
printf("\t\n"); printf("\t\n");
printf("\t[-d DPDK huge memory size in MB]\n"); printf("\t[-d DPDK huge memory size in MB]\n");
printf("\t[-s io size in bytes]\n"); printf("\t[-o io size in bytes]\n");
printf("\t[-t time in seconds]\n"); printf("\t[-t time in seconds]\n");
printf("\t\t(default: 1)]\n"); printf("\t\t(default: 1)]\n");
printf("\t[-H enable histograms]\n"); printf("\t[-H enable histograms]\n");
@ -540,13 +540,13 @@ parse_args(int argc, char **argv, struct spdk_env_opts *env_opts)
spdk_nvme_trid_populate_transport(&g_trid, SPDK_NVME_TRANSPORT_PCIE); spdk_nvme_trid_populate_transport(&g_trid, SPDK_NVME_TRANSPORT_PCIE);
snprintf(g_trid.subnqn, sizeof(g_trid.subnqn), "%s", SPDK_NVMF_DISCOVERY_NQN); snprintf(g_trid.subnqn, sizeof(g_trid.subnqn), "%s", SPDK_NVMF_DISCOVERY_NQN);
while ((op = getopt(argc, argv, "d:ghi:r:s:t:HL:")) != -1) { while ((op = getopt(argc, argv, "d:ghi:o:r:t:HL:")) != -1) {
switch (op) { switch (op) {
case 'h': case 'h':
usage(argv[0]); usage(argv[0]);
exit(0); exit(0);
break; break;
case 's': case 'o':
val = spdk_strtol(optarg, 10); val = spdk_strtol(optarg, 10);
if (val < 0) { if (val < 0) {
fprintf(stderr, "Invalid io size\n"); fprintf(stderr, "Invalid io size\n");

View File

@ -293,7 +293,7 @@ usage(char *program_name)
printf("%s options", program_name); printf("%s options", program_name);
printf("\n"); printf("\n");
printf("\t[-q io depth]\n"); printf("\t[-q io depth]\n");
printf("\t[-s io size in bytes]\n"); printf("\t[-o io size in bytes]\n");
printf("\t[-w io pattern type, must be one of\n"); printf("\t[-w io pattern type, must be one of\n");
printf("\t\t(read, write, randread, randwrite, rw, randrw)]\n"); printf("\t\t(read, write, randread, randwrite, rw, randrw)]\n");
printf("\t[-M rwmixread (100 for reads, 0 for writes)]\n"); printf("\t[-M rwmixread (100 for reads, 0 for writes)]\n");
@ -353,7 +353,7 @@ parse_args(int argc, char **argv)
g_time_in_sec = 0; g_time_in_sec = 0;
g_rw_percentage = -1; g_rw_percentage = -1;
while ((op = getopt(argc, argv, "q:s:t:w:M:")) != -1) { while ((op = getopt(argc, argv, "o:q:t:w:M:")) != -1) {
if (op == 'w') { if (op == 'w') {
workload_type = optarg; workload_type = optarg;
} else if (op == '?') { } else if (op == '?') {
@ -369,7 +369,7 @@ parse_args(int argc, char **argv)
case 'q': case 'q':
g_queue_depth = val; g_queue_depth = val;
break; break;
case 's': case 'o':
g_io_size_bytes = val; g_io_size_bytes = val;
break; break;
case 't': case 't':

View File

@ -81,7 +81,7 @@ for i in $(seq 1 $NUM_DEVICES); do
sleep 1 sleep 1
$SPDK_EXAMPLE_DIR/hello_world -d 256 -g -r "trtype:$TEST_TRANSPORT traddr:$test_traddr subnqn:$test_subnqn" $SPDK_EXAMPLE_DIR/hello_world -d 256 -g -r "trtype:$TEST_TRANSPORT traddr:$test_traddr subnqn:$test_subnqn"
sleep 1 sleep 1
$nvmeappdir/overhead/overhead -s 4096 -t 1 -H -g -d 256 -r "trtype:$TEST_TRANSPORT traddr:$test_traddr subnqn:$test_subnqn" $nvmeappdir/overhead/overhead -o 4096 -t 1 -H -g -d 256 -r "trtype:$TEST_TRANSPORT traddr:$test_traddr subnqn:$test_subnqn"
sleep 1 sleep 1
aer_vfio_user $test_traddr $test_subnqn $i aer_vfio_user $test_traddr $test_subnqn $i
sleep 1 sleep 1