1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/sys/boot/i386/libi386
Mike Smith af1f6e0673 Implement a simple LRU block cache. By default this is initialised to 16k,
and will bypass transfers for more than 8k.  Blocks are invalidated after
2 seconds, so removable media should not confuse the cache.

The 8k threshold is a compromise; all UFS transfers performed by
libstand are 8k or less, so large file reads thrash the cache.
However many filesystem metadata operations are also performed using
8k blocks, so using a lower threshold gives poor performance.

Those of you with an eye for cache algorithms are welcome to tell me
how badly this one sucks; you can start with the 'bcachestats' command
which will print the contents of the cache and access statistics.
1998-11-02 23:28:11 +00:00
..
aout_freebsd.c Remove kernelname setenv, the common code does it. 1998-10-09 23:20:47 +00:00
biosdisk.c Implement a simple LRU block cache. By default this is initialised to 16k, 1998-11-02 23:28:11 +00:00
biosmem.c Fix typos.. The vector for "int 0x12" (get base mem) is not written in 1998-09-30 19:41:07 +00:00
biospci.c PnP enumerator using the PCI BIOS. This is needlessly complex due to the 1998-10-23 22:29:08 +00:00
biospnp.c Remove a debugging copy of offsetof() that snuck in. 1998-10-23 22:30:52 +00:00
bootinfo32.c Get the last used address via a more conservative method, don't depend 1998-10-15 17:06:36 +00:00
bootinfo64.c Get the last used address via a more conservative method, don't depend 1998-10-15 17:06:36 +00:00
bootinfo.c Get the last used address via a more conservative method, don't depend 1998-10-15 17:06:36 +00:00
comconsole.c Fix comconsole mode. The int 0x14 read and status commands were reversed. 1998-10-11 10:05:13 +00:00
devicename.c * Add old UFS compatibility code to alpha/boot1. 1998-09-26 10:51:38 +00:00
elf32_freebsd.c Turn symbol table info passing back on, although it's probably not 1998-10-09 23:22:30 +00:00
elf64_freebsd.c Turn symbol table info passing back on, although it's probably not 1998-10-09 23:22:30 +00:00
elf_freebsd.c Turn symbol table info passing back on, although it's probably not 1998-10-09 23:22:30 +00:00
gatea20.c
i386_copy.c Remove some debugging code. 1998-10-09 07:11:19 +00:00
i386_module.c
libi386.h Consolidate the bootinfo-loading code, greatly simplifying the _exec 1998-10-02 20:53:17 +00:00
Makefile PnP enumerator using the PCI BIOS. This is needlessly complex due to the 1998-10-23 22:29:08 +00:00
pread.c
time.c Fix comment to match code 1998-10-11 09:53:30 +00:00
vidconsole.c - Add a new command 'lsdev' to list devices which might be likely to host 1998-10-31 02:53:12 +00:00