aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2021-09-28 18:39:59 +0000
committerColin Percival <cperciva@FreeBSD.org>2021-09-28 22:24:02 +0000
commit7457840230c5a470ee5df8abed6ab59c4d008a45 (patch)
tree1fe3dc51e079c1edca3c5cf3fcf7e90d3fa1a83c /sys/netinet
parent667ea7385d9ce45c376260e9c2c893c51514e25e (diff)
downloadsrc-7457840230c5a470ee5df8abed6ab59c4d008a45.tar.gz
src-7457840230c5a470ee5df8abed6ab59c4d008a45.zip
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>
Diffstat (limited to 'sys/netinet')
0 files changed, 0 insertions, 0 deletions