HomeFreeBSD

Fix 32-bit overflow on latency measurements

Description

Fix 32-bit overflow on latency measurements

o Allow I/O scheduler to gather times on 32-bit systems. We do this by shifting

the sbintime_t over by 8 bits and truncating to 32-bits. This gives us 8.24
time. This is sufficient both in range (256 seconds is about 128x what current
users need) and precision (60ns easily meets the 1ms smallest bucket size
measurements). 64-bit systems are unchanged. Centralize all the time math so
it's easy to tweak tha range / precision tradeoffs in the future.

o While I'm here, the I/O scheduler should be using periph_data rather than

sim_data since it is operating on behalf of the periph.

Differential Review: https://reviews.freebsd.org/D12119

Details

Provenance
impAuthored on Aug 24 2017, 10:10 PM
Parents
rGa4658c801e0b: Add a test case for a connection on accept queue that is reset before
Branches
Unknown
Tags
Unknown