freebsd-dev/stand/libsa
Colin Percival 7457840230 loader: Set twiddle globaldiv to 16 by default
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>
2021-09-28 15:24:02 -07:00
..
amd64
geli
i386
mips
powerpc
x86
zfs loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
__main.c
abort.c
arp.c
assert.c
bcd.c
bootp.c
bootp.h
bootparam.c
bootparam.h
bzipfs.c
cd9660.c loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
cd9660read.c
close.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
closeall.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
crc32_libkern.c
dev.c
dosfs.c loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
dosfs.h
environment.c
ether.c
ext2fs.c libsa: Fix a typo in source code comments 2021-08-29 10:09:58 +02:00
fstat.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
getopt.c
gets.c
globals.c
gpt.c
gpt.h
gzipfs.c
hexdump.c
in_cksum.c
inet_ntoa.c
ioctl.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
iodesc.h loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
ip.c
libsa.3
lseek.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
Makefile loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
Makefile.depend
mount.c loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
net.c
net.h loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
netif.c loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
netif.h
nfs.c
nfsv2.h
nullfs.c
open.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
pager.c
panic.c
pkgfs.c
printf.c loader printf: Profile with TSLOG 2021-09-24 20:23:49 -07:00
random.c
rarp.c
read.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
readdir.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
rpc.c
rpc.h
rpcv2.h
saioctl.h
sbrk.c
smbios.c
smbios.h
splitfs.c
stand.h loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
stat.c
strcasecmp.c
strdup.c
strerror.c
tftp.c loader: tftp client should use server address from rootip 2021-08-02 15:43:54 +03:00
tftp.h
time.c
tslog.c loader tslog: Don't use sprintf 2021-09-24 20:23:37 -07:00
twiddle.c loader: Set twiddle globaldiv to 16 by default 2021-09-28 15:24:02 -07:00
udp.c
ufs.c loader: implement mount/unmount rootfs 2021-09-08 04:01:20 +03:00
ufsread.c
uuid_from_string.c
uuid_to_string.c
write.c loader: open file list should be dynamic 2021-08-10 21:54:32 +03:00
xlocale_private.h
zalloc_defs.h
zalloc_malloc.c
zalloc_mem.h
zalloc_protos.h
zalloc.c