mirror of
https://github.com/opnsense/src.git
synced 2026-03-02 13:20:37 -05:00
Booting FreeBSD on an EC2 c5.xlarge instance, the loader "twiddles" 810 times over the course of 510 ms, a rate of 1.59 kHz. Even accepting that many systems are slower than this particular VM and will take longer to boot (especially if using spinning-rust disks), this seems like an unhelpfully large amount of twiddling when compared to the ~60 Hz frame rate of many displays; printing the twiddles also consumes roughly 10% of the boot time on the aforementioned VM. Setting the default globaldiv to 16 dramatically reduces the time spent printing twiddles to the console while still twiddling at roughly 100 Hz; this should be ample even for systems which take longer to boot and consequently twiddle slower. Note that this can adjusted via the twiddle_divisor variable in loader.conf, but that file is not processed until nearly halfway through the loader's runtime. Reviewed by: allanjude, jrtc27, kevans MFC after: 1 week Sponsored by: https://www.patreon.com/cperciva Differential Revision: <https://reviews.freebsd.org/D32163> |
||
|---|---|---|
| .. | ||
| bcache.c | ||
| boot.c | ||
| bootstrap.h | ||
| commands.c | ||
| console.c | ||
| dev_net.c | ||
| dev_net.h | ||
| devopen.c | ||
| disk.c | ||
| disk.h | ||
| gfx_fb.c | ||
| gfx_fb.h | ||
| help.common | ||
| install.c | ||
| interp.c | ||
| interp_backslash.c | ||
| interp_forth.c | ||
| interp_lua.c | ||
| interp_parse.c | ||
| interp_simple.c | ||
| isapnp.c | ||
| isapnp.h | ||
| load_elf.c | ||
| load_elf32.c | ||
| load_elf32_obj.c | ||
| load_elf64.c | ||
| load_elf64_obj.c | ||
| load_elf_obj.c | ||
| ls.c | ||
| Makefile.depend | ||
| md.c | ||
| merge_help.awk | ||
| metadata.c | ||
| misc.c | ||
| module.c | ||
| newvers.sh | ||
| nvstore.c | ||
| part.c | ||
| part.h | ||
| paths.h | ||
| pnp.c | ||
| rbx.h | ||
| readin.h | ||
| reloc_elf.c | ||
| reloc_elf32.c | ||
| reloc_elf64.c | ||
| self_reloc.c | ||
| tslog.c | ||
| vdisk.c | ||
| zfs_cmd.c | ||