Skip to content

RFC Increase accuracy and precision of sampled io_ticks

Josh Snyder linux-block lkml oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Eliminate over- and under-counting of io_ticksblock/blk-core.c+13 -73 replies
2/2Track io_ticks at microsecond granularity.block/blk-core.c block/genhd.c include/linux/genhd.h +1 more+15 -91 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] Increase accuracy and precision of sampled io_ticks

Commit 5b18b5a73760 ("block: delete part_round_stats and switch to less precise counting") introduces a sampling technique for calculating io_ticks. The sampling algorithm introduces bias in the calculation of I/O utilization. In my production system, this bias means that a workload which previously reported 10% I/O utilization now reports 80%. Patch 1 of this series eliminates the bias.

The sampling technique is also subject to statistical noise. Because it infers io_ticks based on only 100 samples per second, io_ticks becomes imprecise, and subject to swings when measuring both random and deterministic workloads. Patch 2 of this series provides increased precision by raising the sampling rate.