t/io_uring: don't track IO latencies the first second of runtime
authorJens Axboe <axboe@kernel.dk>
Mon, 4 Oct 2021 22:18:39 +0000 (16:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Oct 2021 22:18:39 +0000 (16:18 -0600)
commit52479d8ba51c9c3461220673cae01b0e57d9050f
treed9dd7e28501dc76099b161c8ed78d8f9bf023d5a
parenta1f171000c21e97ad4e44dcd7c810834507b184f
t/io_uring: don't track IO latencies the first second of runtime

The most variation is usually seen at startup, so don't start tracking
latencies until we've done the first reporting run. Things should be
nice and stable at that point.

To make this cheaper on the fast path, clock_index is only valid if
it's non-zero. This makes checking for stats cheap in the reap path.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/io_uring.c