Commit 68eb363b authored by Ben Walker's avatar Ben Walker Committed by Benjamin Walker
Browse files

perf: Write a pattern instead of 0.



Writing 0's hits SSD firmware special cases and gives
unrealistically high performance numbers.

Change-Id: I73c72ee52494075e354dcddd067e3ce49c156204
Signed-off-by: default avatarBen Walker <benjamin.walker@intel.com>
parent c65e726a
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -394,6 +394,7 @@ static void task_ctor(struct rte_mempool *mp, void *arg, void *__task, unsigned
		fprintf(stderr, "task->buf rte_malloc failed\n");
		exit(1);
	}
	memset(task->buf, id % 8, g_io_size_bytes);
}

static void io_complete(void *ctx, const struct spdk_nvme_cpl *completion);