freebsd-dev/sys/boot/uboot/lib
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
..
api_public.h Enhance the mechanism that lets you configure the ubldr boot device by 2014-03-11 22:02:49 +00:00
console.c
copy.c Go back to using uintptr_t, because code that actually compiles is 2016-01-13 00:22:12 +00:00
devicename.c Use disk_fmtdev() and disk_parsedev() functions from the new DISK API. 2012-09-09 11:32:06 +00:00
disk.c A new implementation of the loader block cache 2016-04-18 23:09:22 +00:00
elf_freebsd.c These changes attempt to put things in order before the introduction of MIPS 2016-02-29 07:27:49 +00:00
glue.c Improve U-Boot API detection 2016-03-09 11:45:48 +00:00
glue.h Improve U-Boot API detection 2016-03-09 11:45:48 +00:00
libuboot.h An ARM kernel can be loaded at any 2MB boundary, make ubldr aware of that. 2015-05-17 19:59:05 +00:00
Makefile Add more .NOMETA missed in r291320 2016-03-11 23:45:51 +00:00
module.c Print error message if autoload fails due to missing DTB blob, otherwise 2015-05-26 20:32:14 +00:00
net.c If the user has set a u-boot env var named rootpath, automatically 2016-02-22 18:53:55 +00:00
reboot.c
time.c