freebsd-nq/sys/boot/powerpc/kboot
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
..
conf.c Relocate kernel to high address space (a static + 64 MB for now) to avoid 2015-01-31 19:42:08 +00:00
help.kboot
host_syscall.h Allow this to work with disks greater than 4 GB and with names not beginning 2015-02-01 02:02:50 +00:00
host_syscall.S Allow this to work with disks greater than 4 GB and with names not beginning 2015-02-01 02:02:50 +00:00
hostcons.c
hostdisk.c A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
kbootfdt.c
kerneltramp.S Relocate kernel to high address space (a static + 64 MB for now) to avoid 2015-01-31 19:42:08 +00:00
ldscript.powerpc
main.c Relocate kernel to high address space (a static + 64 MB for now) to avoid 2015-01-31 19:42:08 +00:00
Makefile The Linux kexec boot loader doesn't need a font built in to it. This got 2015-11-19 01:57:23 +00:00
metadata.c
ppc64_elf_freebsd.c Allow loader to load 64-bit ELFv2 PowerPC kernels. 2015-12-01 17:01:27 +00:00
version