Commit 69b4e8b1 authored by wanghailiangx's avatar wanghailiangx Committed by Tomasz Zawadzki
Browse files

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: default avatarwanghailiangx <hailiangx.e.wang@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14533


Community-CI: Mellanox Build Bot
Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarAleksey Marchuk <alexeymar@nvidia.com>
Reviewed-by: default avatarTomasz Zawadzki <tomasz.zawadzki@intel.com>
parent 905e519a
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -457,7 +457,7 @@ usage(char *program_name)
	printf("\t\n");
	printf("\t[-d DPDK huge memory size in MB]\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\t(read, write, randread, randwrite, rw, randrw)]\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);
	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) {
		case 'c':
			g_arbitration.core_mask = optarg;
@@ -699,7 +699,7 @@ parse_args(int argc, char **argv)
			case 'q':
				g_arbitration.queue_depth = val;
				break;
			case 's':
			case 'o':
				g_arbitration.io_size_bytes = val;
				break;
			case 't':
+2 −2
Original line number Diff line number Diff line
@@ -123,7 +123,7 @@ if [ $(uname) = Linux ]; then
	start_stub "-s 4096 -i 0 -m 0xE"
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_perf" nvme_perf
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_reserve" $testdir/reserve/reserve
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_single_aen" $testdir/aer/aer -T -i 0 -L log

+3 −3
Original line number Diff line number Diff line
@@ -461,7 +461,7 @@ usage(char *program_name)
#endif
	printf("\t\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(default: 1)]\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);
	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) {
		case 'h':
			usage(argv[0]);
			exit(0);
			break;
		case 's':
		case 'o':
			val = spdk_strtol(optarg, 10);
			if (val < 0) {
				fprintf(stderr, "Invalid io size\n");
+3 −3
Original line number Diff line number Diff line
@@ -293,7 +293,7 @@ usage(char *program_name)
	printf("%s options", program_name);
	printf("\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\t(read, write, randread, randwrite, rw, randrw)]\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_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') {
			workload_type = optarg;
		} else if (op == '?') {
@@ -369,7 +369,7 @@ parse_args(int argc, char **argv)
			case 'q':
				g_queue_depth = val;
				break;
			case 's':
			case 'o':
				g_io_size_bytes = val;
				break;
			case 't':
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ for i in $(seq 1 $NUM_DEVICES); do
	sleep 1
	$SPDK_EXAMPLE_DIR/hello_world -d 256 -g -r "trtype:$TEST_TRANSPORT traddr:$test_traddr subnqn:$test_subnqn"
	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
	aer_vfio_user $test_traddr $test_subnqn $i
	sleep 1