HomeFreeBSD

Add LBA as secondary sort key for synchronous I/O requests.

Description

Add LBA as secondary sort key for synchronous I/O requests.

On FreeBSD gethrtime() implemented via getnanouptime(), that has 1ms (1/hz)
precision. It makes primary sort key (timestamp) collision very possible.
In such situations sorting by secondary key of LBA is much more reasonable
then by totally meaningless zio pointer value.

With this change on multi-threaded synchronous ZVOL read I've measured 10%
throughput increase and average latency reduction.

MFC after: 2 weeks

Details

Provenance
mavAuthored on
Parents
rS276951: Use .MAKE.LEVEL being defined as a bootstrap aid when providing
Branches
Unknown
Tags
Unknown