freebsd-dev/sys/boot/i386/libi386
Allan Jude 87ed2b7f5a A new implementation of the loader block cache
The block cache implementation in loader has proven to be almost useless, and in worst case even slowing down the disk reads due to insufficient cache size and extra memory copy.
Also the current cache implementation does not cache reads from CDs, or work with zfs built on top of multiple disks.
Instead of an LRU, this code uses a simple hash (O(1) read from cache), and instead of a single global cache, a separate cache per block device.
The cache also implements limited read-ahead to increase performance.
To simplify read ahead management, the read ahead will not wrap over bcache end, so in worst case, single block physical read will be performed to fill the last block in bcache.

Booting from a virtual CD over IPMI:
0ms latency, before: 27 second, after: 7 seconds
60ms latency, before: over 12 minutes, after: under 5 minutes.

Submitted by:	Toomas Soome <tsoome@me.com>
Reviewed by:	delphij (previous version), emaste (previous version)
Relnotes:	yes
Differential Revision:	https://reviews.freebsd.org/D4713
2016-04-18 23:09:22 +00:00
..
amd64_tramp.S don't set CR4 PSE bit on amd64 2014-07-23 15:53:29 +00:00
biosacpi.c Deprecate using hints.acpi.0.rsdp to communicate the RSDP to the 2016-04-14 04:59:51 +00:00
bioscd.c A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
biosdisk.c A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
biosmem.c A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
biospci.c Add support for calling pcibios routines from the 2014-09-10 21:07:00 +00:00
biospnp.c Make sure that each va_start has one and only one matching va_end, 2012-05-29 01:48:06 +00:00
biossmap.c
bootinfo32.c
bootinfo64.c loader: fix the size of MODINFOMD_MODULEP 2015-01-20 12:28:24 +00:00
bootinfo.c howto_names: unify declaration 2014-03-11 10:13:06 +00:00
comconsole.c Add support for serial and null console to UEFI boot loader. 2014-09-12 17:32:28 +00:00
devicename.c Quiesce some clang warnings while we're here doing stuff. 2013-01-14 15:05:22 +00:00
elf32_freebsd.c
elf64_freebsd.c loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
i386_copy.c
i386_module.c
libi386.h pxeboot: make the tftp loader use the option root-path directive 2015-12-16 17:13:09 +00:00
Makefile Implement (ACFLAGS|CFLAGS|CXXFLAGS).SRC globally. 2016-03-26 03:46:12 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2016-03-21 18:02:26 +00:00
multiboot_tramp.S loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
multiboot.c multiboot: fix error codes 2015-04-01 10:10:20 +00:00
multiboot.h loader: implement multiboot support for Xen Dom0 2015-01-15 16:27:20 +00:00
nullconsole.c
pread.c
pxe.c A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
pxe.h Make pxe device in lsdev really include device name, looking like this: 2012-09-12 21:00:37 +00:00
pxetramp.s
smbios.c Enable warnings in EFI boot code 2016-01-12 02:17:39 +00:00
smbios.h SMBIOS support for EFI. 2015-04-06 06:55:47 +00:00
spinconsole.c Make this compile when TERM_EMU is not defined. 2014-12-22 19:10:11 +00:00
time.c
vidconsole.c