]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
vfs: track sequential reads and writes separately
authorThomas Munro <tmunro@FreeBSD.org>
Sun, 21 Jun 2020 08:51:24 +0000 (08:51 +0000)
committerThomas Munro <tmunro@FreeBSD.org>
Sun, 21 Jun 2020 08:51:24 +0000 (08:51 +0000)
commitf2706588730a5d3b9a687ba8d4269e386650cc4f
tree6af7a3efa2502ab3e819c7aa522f1fd908696bab
parent03270b59eed68cc33478a731a12269870e5168d2
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
sys/compat/cloudabi/cloudabi_file.c
sys/fs/devfs/devfs_vnops.c
sys/kern/kern_descrip.c
sys/kern/vfs_syscalls.c
sys/kern/vfs_vnops.c
sys/sys/file.h