Page MenuHomeFreeBSD

loader bcache: Allow readahead up to a maximum I/O size of 256 kB
ClosedPublic

Authored by cperciva on Oct 1 2021, 5:18 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Nov 15, 4:55 AM
Unknown Object (File)
Tue, Nov 5, 3:51 AM
Unknown Object (File)
Oct 9 2024, 8:36 AM
Unknown Object (File)
Oct 9 2024, 8:36 AM
Unknown Object (File)
Oct 9 2024, 8:36 AM
Unknown Object (File)
Oct 9 2024, 8:06 AM
Unknown Object (File)
Sep 26 2024, 3:04 PM
Unknown Object (File)
Sep 24 2024, 4:05 AM
Subscribers

Details

Summary

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.

Test Plan

Patch to be applied on top of D32249 and D32250.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable