Searched refs:io_test (Results 1 - 2 of 2) sorted by relevance

/freebsd-10.0-release/sbin/nvmecontrol/
H A Dperftest.c47 print_perftest(struct nvme_io_test *io_test, bool perthread) argument
52 for (i = 0; i < io_test->num_threads; i++)
53 io_completed += io_test->io_completed[i];
55 iops = io_completed/io_test->time;
56 mbps = iops * io_test->size / (1024*1024);
59 io_test->num_threads, io_test->size,
60 io_test->opc == NVME_OPC_READ ? "READ" : "WRITE",
61 io_test->time, (uintmax_t)iops, (uintmax_t)mbps);
64 for (i = 0; i < io_test
80 struct nvme_io_test io_test; local
[all...]
/freebsd-10.0-release/sys/dev/nvme/
H A Dnvme_test.c86 struct nvme_io_test_internal *io_test = arg; local
99 buf = malloc(io_test->size, M_NVME, M_WAITOK);
100 idx = atomic_fetchadd_int(&io_test->td_idx, 1);
101 dev = io_test->ns->cdev;
103 offset = idx * 2048 * nvme_ns_get_sector_size(io_test->ns);
110 bio->bio_cmd = (io_test->opc == NVME_OPC_READ) ?
116 bio->bio_bcount = io_test->size;
118 if (io_test->flags & NVME_TEST_FLAG_REFTHREAD) {
133 if (io_test->flags & NVME_TEST_FLAG_REFTHREAD) {
149 timevalsub(&t, &io_test
215 struct nvme_io_test_internal *io_test = arg; local
257 struct nvme_io_test *io_test; local
[all...]

Completed in 169 milliseconds