Before this change, we bundle the fake IO latencies with the file
open latencies. That's not intended. Add a flag for IO engines to
tell the core to ignore any IO latencies.
Signed-off-by: Jens Axboe <axboe@kernel.dk>
.get_file_size = get_file_size,
.open_file = open_file,
.close_file = generic_close_file,
.get_file_size = get_file_size,
.open_file = open_file,
.close_file = generic_close_file,
- .flags = FIO_DISKLESSIO | FIO_SYNCIO | FIO_FAKEIO,
+ .flags = FIO_DISKLESSIO | FIO_SYNCIO | FIO_FAKEIO |
+ FIO_NOSTATS,
};
static void fio_init fio_filecreate_register(void)
};
static void fio_init fio_filecreate_register(void)
if (td->parent)
td = td->parent;
if (td->parent)
td = td->parent;
+ if (!td->o.stats || td_ioengine_flagged(td, FIO_NOSTATS))
FIO_MEMALIGN = 1 << 9, /* engine wants aligned memory */
FIO_BIT_BASED = 1 << 10, /* engine uses a bit base (e.g. uses Kbit as opposed to KB) */
FIO_FAKEIO = 1 << 11, /* engine pretends to do IO */
FIO_MEMALIGN = 1 << 9, /* engine wants aligned memory */
FIO_BIT_BASED = 1 << 10, /* engine uses a bit base (e.g. uses Kbit as opposed to KB) */
FIO_FAKEIO = 1 << 11, /* engine pretends to do IO */
+ FIO_NOSTATS = 1 << 12, /* don't do IO stats */