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
F103990694: D32251.id96187.diff
Mon, Dec 2, 2:44 AM
F103981608: D32251.diff
Mon, Dec 2, 12:22 AM
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
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