HomeFreeBSD

vfs: track sequential reads and writes separately

Description

vfs: track sequential reads and writes separately

For software like PostgreSQL and SQLite that sometimes reads sequentially
while also writing sequentially some distance behind with interleaved
syscalls on the same fd, performance is better on UFS if we do
sequential access heuristics separately for reads and writes.

Patch originally by Andrew Gierth in 2008, updated and proposed by me with
his permission.

Reviewed by: mjg, kib, tmunro
Approved by: mjg (mentor)
Obtained from: Andrew Gierth <andrew@tao11.riddles.org.uk>
Differential Revision: https://reviews.freebsd.org/D25024

Details

Provenance
tmunroAuthored on
Reviewer
mjg
Differential Revision
D25024: VFS: Track sequential reads and writes separately
Parents
rS362459: Use zone nomenclature that is consistent with UMA.
Branches
Unknown
Tags
Unknown