opnsense-src/sys/boot/ofw/libofw
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
..
devicename.c Fix panics on attempt to dereference uninitizlized pointer, returned via 2012-09-18 15:38:42 +00:00
elf_freebsd.c Provide a shim layer in loader to condense the Open Firmware device tree to 2015-03-09 02:57:34 +00:00
libofw.h sparc64/zfs boot: take advantage of new libzfsboot capabilities 2012-05-12 20:27:33 +00:00
Makefile Add more .NOMETA missed in r291320 2016-03-11 23:45:51 +00:00
ofw_console.c Backout rev 183181. It appears that I should have been using boot-device 2008-09-19 19:49:58 +00:00
ofw_copy.c Check the real-mode? OF property to find out whether we operate in real or 2010-11-17 19:35:56 +00:00
ofw_disk.c A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
ofw_memory.c Fix some memory management issues discovered when trying to boot the PPC 2010-10-28 23:46:05 +00:00
ofw_module.c
ofw_net.c Replace index() and rindex() calls with strchr() and strrchr(). 2012-01-03 18:51:58 +00:00
ofw_reboot.c
ofw_time.c
openfirm.c Provide a shim layer in loader to condense the Open Firmware device tree to 2015-03-09 02:57:34 +00:00
openfirm.h Provide a shim layer in loader to condense the Open Firmware device tree to 2015-03-09 02:57:34 +00:00
ppc64_elf_freebsd.c Allow loader to load 64-bit ELFv2 PowerPC kernels. 2015-12-01 17:01:27 +00:00