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)
Sun, Apr 21, 9:53 PM
Unknown Object (File)
Feb 7 2024, 8:39 PM
Unknown Object (File)
Jan 29 2024, 11:19 PM
Unknown Object (File)
Dec 22 2023, 9:22 PM
Unknown Object (File)
Dec 2 2023, 8:04 AM
Unknown Object (File)
Nov 23 2023, 11:43 AM
Unknown Object (File)
Oct 13 2023, 3:58 PM
Unknown Object (File)
Oct 12 2023, 1:42 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