]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader bcache: Allow readahead up to 256 kB I/Os
authorColin Percival <cperciva@FreeBSD.org>
Sun, 3 Oct 2021 21:55:10 +0000 (14:55 -0700)
committerColin Percival <cperciva@FreeBSD.org>
Sun, 3 Oct 2021 21:55:10 +0000 (14:55 -0700)
commit248682a589159619aa5f2019e415a423e849e327
tree03750dce53c262778dcb22a505151314e58b2e9d
parent04b9b7c507c52daf7b2999329a50825db098151f
loader bcache: Allow readahead up to 256 kB I/Os

Prior to this commit, the loader would perform readaheads of up to
128 kB; when booting on a UFS filesystem this resulted in a series
of 160 kB reads (32 kB request + 128 kB readahead).

This commit allows readaheads to be longer, subject to a total I/O
size limit of 256 kB; i.e. 32 kB read requests will have added
readaheads of up to 224 kB.

In my testing on an EC2 c5.xlarge instance, this change reduces the
boot time by roughly 80 ms.

Reviewed by: tsoome
MFC after: 1 week
Sponsored by: https://www.patreon.com/cperciva
Differential Revision: https://reviews.freebsd.org/D32251
stand/common/bcache.c