1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-24 11:29:10 +00:00
freebsd/sys/boot/userboot
Andrey V. Elsukov f9cd8b07a4 Almost each time when loader opens a file, this leads to calling
disk_open(). Very often this is called several times for one file.
This leads to reading partition table metadata for each call. To
reduce the number of disk I/O we have a simple block cache, but it
is very dumb and more than half of I/O operations related to reading
metadata, misses this cache.

Introduce new cache layer to resolve this problem. It is independent
and doesn't need initialization like bcache, and will work by default
for all loaders which use the new DISK API. A successful disk_open()
call to each new disk or partition produces new entry in the cache.
Even more, when disk was already open, now opening of any nested
partitions does not require reading top level partition table.
So, if without this cache, partition table metadata was read around
20-50 times during boot, now it reads only once. This affects the booting
from GPT and MBR from the UFS.
2012-09-29 16:47:56 +00:00
..
ficl
libstand MFV: Update zlib to 1.2.7. 2012-06-21 21:47:08 +00:00
test Bump USERBOOT_VERSION. 2012-08-05 17:04:58 +00:00
userboot Almost each time when loader opens a file, this leads to calling 2012-09-29 16:47:56 +00:00
Makefile
userboot.h Bump USERBOOT_VERSION. 2012-08-05 17:04:58 +00:00