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: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Ben Walker 2016-07-06 10:50:13 -07:00 committed by Benjamin Walker
parent c65e726acd
commit 68eb363be7

View File

@ -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"); fprintf(stderr, "task->buf rte_malloc failed\n");
exit(1); exit(1);
} }
memset(task->buf, id % 8, g_io_size_bytes);
} }
static void io_complete(void *ctx, const struct spdk_nvme_cpl *completion); static void io_complete(void *ctx, const struct spdk_nvme_cpl *completion);